Interface GeneratedPolicyResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GeneratedPolicyResult.Builder,GeneratedPolicyResult>,SdkBuilder<GeneratedPolicyResult.Builder,GeneratedPolicyResult>,SdkPojo
- Enclosing class:
- GeneratedPolicyResult
public static interface GeneratedPolicyResult.Builder extends SdkPojo, CopyableBuilder<GeneratedPolicyResult.Builder,GeneratedPolicyResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GeneratedPolicyResult.BuildergeneratedPolicies(Collection<GeneratedPolicy> generatedPolicies)The text to use as the content for the new policy.GeneratedPolicyResult.BuildergeneratedPolicies(Consumer<GeneratedPolicy.Builder>... generatedPolicies)The text to use as the content for the new policy.GeneratedPolicyResult.BuildergeneratedPolicies(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.GeneratedPolicyResult.Builderproperties(GeneratedPolicyProperties properties)AGeneratedPolicyPropertiesobject 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 Detail
-
properties
GeneratedPolicyResult.Builder properties(GeneratedPolicyProperties 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:
properties(GeneratedPolicyProperties)
-
generatedPolicies
GeneratedPolicyResult.Builder generatedPolicies(Collection<GeneratedPolicy> 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(GeneratedPolicy... 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 to#generatedPolicies(List.) - 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:
#generatedPolicies(java.util.Collection)
-
-