Interface SupplyChainPolicyException.Builder

  • Method Details

    • name

      Customer-chosen display name.

      Parameters:
      name - Customer-chosen display name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyArn

      The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.

      Parameters:
      policyArn - The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleIds

      The IDs of the rules in that policy to suppress.

      Parameters:
      ruleIds - The IDs of the rules in that policy to suppress.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleIds

      The IDs of the rules in that policy to suppress.

      Parameters:
      ruleIds - The IDs of the rules in that policy to suppress.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • packageValue

      The package that the exception applies to. Rules are suppressed only for packages that match this identity.

      Parameters:
      packageValue - The package that the exception applies to. Rules are suppressed only for packages that match this identity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • packageValue

      The package that the exception applies to. Rules are suppressed only for packages that match this identity.

      This is a convenience method that creates an instance of the PackageIdentity.Builder avoiding the need to create one manually via PackageIdentity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to packageValue(PackageIdentity).

      Parameters:
      packageValue - a consumer that will call methods on PackageIdentity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • justification

      SupplyChainPolicyException.Builder justification(String justification)

      Why the exception is needed.

      Parameters:
      justification - Why the exception is needed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expiresAt

      Must be in the future and no later than 365 days after the exception was originally created.

      Parameters:
      expiresAt - Must be in the future and no later than 365 days after the exception was originally created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.