Interface SupplyChainPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SupplyChainPolicy.Builder,,SupplyChainPolicy> SdkBuilder<SupplyChainPolicy.Builder,,SupplyChainPolicy> SdkPojo
- Enclosing class:
SupplyChainPolicy
@Mutable
@NotThreadSafe
public static interface SupplyChainPolicy.Builder
extends SdkPojo, CopyableBuilder<SupplyChainPolicy.Builder,SupplyChainPolicy>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the policy.The display name of the policy.rules(Collection<Rule> rules) The deny rules of the policy, from 1 to 5.rules(Consumer<Rule.Builder>... rules) The deny rules of the policy, from 1 to 5.The deny rules of the policy, from 1 to 5.Methods 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
-
name
The display name of the policy.
- Parameters:
name- The display name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the policy.
- Parameters:
description- A description of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The deny rules of the policy, from 1 to 5.
- Parameters:
rules- The deny rules of the policy, from 1 to 5.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The deny rules of the policy, from 1 to 5.
- Parameters:
rules- The deny rules of the policy, from 1 to 5.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The deny rules of the policy, from 1 to 5.
This is a convenience method that creates an instance of theRule.Builderavoiding the need to create one manually viaRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<Rule>).- Parameters:
rules- a consumer that will call methods onRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-