Interface CreateSupplyChainPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContinuumRequest.Builder,CopyableBuilder<CreateSupplyChainPolicyRequest.Builder,,CreateSupplyChainPolicyRequest> SdkBuilder<CreateSupplyChainPolicyRequest.Builder,,CreateSupplyChainPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSupplyChainPolicyRequest
@Mutable
@NotThreadSafe
public static interface CreateSupplyChainPolicyRequest.Builder
extends ContinuumRequest.Builder, SdkPojo, CopyableBuilder<CreateSupplyChainPolicyRequest.Builder,CreateSupplyChainPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policy(Consumer<SupplyChainPolicy.Builder> policy) The policy to create: its name, description, and rules.policy(SupplyChainPolicy policy) The policy to create: its name, description, and rules.Tags to add to the policy 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
-
policy
The policy to create: its name, description, and rules.
- Parameters:
policy- The policy to create: its name, description, and rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The policy to create: its name, description, and rules.
This is a convenience method that creates an instance of theSupplyChainPolicy.Builderavoiding the need to create one manually viaSupplyChainPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(SupplyChainPolicy).- Parameters:
policy- a consumer that will call methods onSupplyChainPolicy.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 when it's created.
- Parameters:
tags- Tags to add to the policy 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 policy returns the policy it created. The same token with a different policy, or after that policy was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the policy's tags unchanged.
- Parameters:
clientToken- Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same policy returns the policy it created. The same token with a different policy, or after that policy was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the policy's tags unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSupplyChainPolicyRequest.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
CreateSupplyChainPolicyRequest.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.
-