Interface CreateSupplyChainPolicyExceptionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContinuumRequest.Builder,CopyableBuilder<CreateSupplyChainPolicyExceptionRequest.Builder,,CreateSupplyChainPolicyExceptionRequest> SdkBuilder<CreateSupplyChainPolicyExceptionRequest.Builder,,CreateSupplyChainPolicyExceptionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSupplyChainPolicyExceptionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token.exception(Consumer<SupplyChainPolicyException.Builder> exception) The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.exception(SupplyChainPolicyException exception) The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Tags to add to the policy exception when it's created.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.continuum.model.ContinuumRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
exception
The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.
- Parameters:
exception- The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exception
default CreateSupplyChainPolicyExceptionRequest.Builder exception(Consumer<SupplyChainPolicyException.Builder> exception) The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.
This is a convenience method that creates an instance of theSupplyChainPolicyException.Builderavoiding the need to create one manually viaSupplyChainPolicyException.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexception(SupplyChainPolicyException).- Parameters:
exception- a consumer that will call methods onSupplyChainPolicyException.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Tags to add to the policy exception when it's created.
- Parameters:
tags- Tags to add to the policy exception when it's created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same exception returns the exception it created. The same token with a different exception, or after that exception was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the exception's tags unchanged.
- Parameters:
clientToken- Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same exception returns the exception it created. The same token with a different exception, or after that exception was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the exception's tags unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSupplyChainPolicyExceptionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSupplyChainPolicyExceptionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-