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.Builder
properties
(Consumer<GeneratedPolicyProperties.Builder> properties) AGeneratedPolicyProperties
object that contains properties of the generated policy.properties
(GeneratedPolicyProperties properties) AGeneratedPolicyProperties
object that contains properties of the generated policy.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
-
properties
A
GeneratedPolicyProperties
object that contains properties of the generated policy.- Parameters:
properties
- AGeneratedPolicyProperties
object 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 theGeneratedPolicyProperties
object that contains properties of the generated policy.GeneratedPolicyProperties.Builder
avoiding the need to create one manually viaGeneratedPolicyProperties.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaGeneratedPolicy.builder()
.When the
Consumer
completes,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:
-