Interface GeneratedPolicyResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GeneratedPolicyResult.Builder,,GeneratedPolicyResult> SdkBuilder<GeneratedPolicyResult.Builder,,GeneratedPolicyResult> SdkPojo
- Enclosing class:
GeneratedPolicyResult
-
Method Summary
Modifier and TypeMethodDescriptiongeneratedPolicies(Collection<GeneratedPolicy> generatedPolicies) The text to use as the content for the new policy.generatedPolicies(Consumer<GeneratedPolicy.Builder>... generatedPolicies) The text to use as the content for the new policy.generatedPolicies(GeneratedPolicy... generatedPolicies) The text to use as the content for the new policy.default GeneratedPolicyResult.Builderproperties(Consumer<GeneratedPolicyProperties.Builder> properties) AGeneratedPolicyPropertiesobject that contains properties of the generated policy.properties(GeneratedPolicyProperties properties) AGeneratedPolicyPropertiesobject that contains properties of the generated policy.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, sdkFields
-
Method Details
-
properties
A
GeneratedPolicyPropertiesobject that contains properties of the generated policy.- Parameters:
properties- AGeneratedPolicyPropertiesobject that contains properties of the generated policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
default GeneratedPolicyResult.Builder properties(Consumer<GeneratedPolicyProperties.Builder> properties) A
This is a convenience method that creates an instance of theGeneratedPolicyPropertiesobject that contains properties of the generated policy.GeneratedPolicyProperties.Builderavoiding the need to create one manually viaGeneratedPolicyProperties.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproperties(GeneratedPolicyProperties).- Parameters:
properties- a consumer that will call methods onGeneratedPolicyProperties.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generatedPolicies
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
- Parameters:
generatedPolicies- The text to use as the content for the new policy. The policy is created using the CreatePolicy action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generatedPolicies
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
- Parameters:
generatedPolicies- The text to use as the content for the new policy. The policy is created using the CreatePolicy action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generatedPolicies
GeneratedPolicyResult.Builder generatedPolicies(Consumer<GeneratedPolicy.Builder>... generatedPolicies) The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
This is a convenience method that creates an instance of theGeneratedPolicy.Builderavoiding the need to create one manually viaGeneratedPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togeneratedPolicies(List<GeneratedPolicy>).- Parameters:
generatedPolicies- a consumer that will call methods onGeneratedPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-