Interface UpdateSupplyChainPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContinuumRequest.Builder,CopyableBuilder<UpdateSupplyChainPolicyRequest.Builder,,UpdateSupplyChainPolicyRequest> SdkBuilder<UpdateSupplyChainPolicyRequest.Builder,,UpdateSupplyChainPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateSupplyChainPolicyRequest
@Mutable
@NotThreadSafe
public static interface UpdateSupplyChainPolicyRequest.Builder
extends ContinuumRequest.Builder, SdkPojo, CopyableBuilder<UpdateSupplyChainPolicyRequest.Builder,UpdateSupplyChainPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the policy to update.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 updated policy.policy(SupplyChainPolicy policy) The updated policy.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
-
id
The ID of the policy to update.
- Parameters:
id- The ID of the policy to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The updated policy. The name must match the existing name, and the rules must include every existing rule ID.
- Parameters:
policy- The updated policy. The name must match the existing name, and the rules must include every existing rule ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The updated policy. The name must match the existing name, and the rules must include every existing rule ID.
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:
-
overrideConfiguration
UpdateSupplyChainPolicyRequest.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
UpdateSupplyChainPolicyRequest.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.
-