Interface CreatePolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>,IamResponse.Builder,SdkBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreatePolicyResponse
public static interface CreatePolicyResponse.Builder extends IamResponse.Builder, SdkPojo, CopyableBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreatePolicyResponse.Builderpolicy(Consumer<Policy.Builder> policy)A structure containing details about the new policy.CreatePolicyResponse.Builderpolicy(Policy policy)A structure containing details about the new policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
policy
CreatePolicyResponse.Builder policy(Policy policy)
A structure containing details about the new policy.
- Parameters:
policy- A structure containing details about the new policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
default CreatePolicyResponse.Builder policy(Consumer<Policy.Builder> policy)
A structure containing details about the new policy.
This is a convenience method that creates an instance of thePolicy.Builderavoiding the need to create one manually viaPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(Policy).- Parameters:
policy- a consumer that will call methods onPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
policy(Policy)
-
-