Interface PolicyDescription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PolicyDescription.Builder,
,PolicyDescription> SdkBuilder<PolicyDescription.Builder,
,PolicyDescription> SdkPojo
- Enclosing class:
PolicyDescription
public static interface PolicyDescription.Builder
extends SdkPojo, CopyableBuilder<PolicyDescription.Builder,PolicyDescription>
-
Method Summary
Modifier and TypeMethodDescriptionpolicyAttributeDescriptions
(Collection<PolicyAttributeDescription> policyAttributeDescriptions) The policy attributes.policyAttributeDescriptions
(Consumer<PolicyAttributeDescription.Builder>... policyAttributeDescriptions) The policy attributes.policyAttributeDescriptions
(PolicyAttributeDescription... policyAttributeDescriptions) The policy attributes.policyName
(String policyName) The name of the policy.policyTypeName
(String policyTypeName) The name of the policy type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
policyName
The name of the policy.
- Parameters:
policyName
- The name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyTypeName
The name of the policy type.
- Parameters:
policyTypeName
- The name of the policy type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyAttributeDescriptions
PolicyDescription.Builder policyAttributeDescriptions(Collection<PolicyAttributeDescription> policyAttributeDescriptions) The policy attributes.
- Parameters:
policyAttributeDescriptions
- The policy attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyAttributeDescriptions
PolicyDescription.Builder policyAttributeDescriptions(PolicyAttributeDescription... policyAttributeDescriptions) The policy attributes.
- Parameters:
policyAttributeDescriptions
- The policy attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyAttributeDescriptions
PolicyDescription.Builder policyAttributeDescriptions(Consumer<PolicyAttributeDescription.Builder>... policyAttributeDescriptions) The policy attributes.
This is a convenience method that creates an instance of thePolicyAttributeDescription.Builder
avoiding the need to create one manually viaPolicyAttributeDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicyAttributeDescriptions(List<PolicyAttributeDescription>)
.- Parameters:
policyAttributeDescriptions
- a consumer that will call methods onPolicyAttributeDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-