Interface GetPolicyVersionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetPolicyVersionResponse.Builder,,GetPolicyVersionResponse> IamResponse.Builder,SdkBuilder<GetPolicyVersionResponse.Builder,,GetPolicyVersionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPolicyVersionResponse
@Mutable
@NotThreadSafe
public static interface GetPolicyVersionResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<GetPolicyVersionResponse.Builder,GetPolicyVersionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetPolicyVersionResponse.BuilderpolicyVersion(Consumer<PolicyVersion.Builder> policyVersion) A structure containing details about the policy version.policyVersion(PolicyVersion policyVersion) A structure containing details about the policy version.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyVersion
A structure containing details about the policy version.
- Parameters:
policyVersion- A structure containing details about the policy version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVersion
default GetPolicyVersionResponse.Builder policyVersion(Consumer<PolicyVersion.Builder> policyVersion) A structure containing details about the policy version.
This is a convenience method that creates an instance of thePolicyVersion.Builderavoiding the need to create one manually viaPolicyVersion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyVersion(PolicyVersion).- Parameters:
policyVersion- a consumer that will call methods onPolicyVersion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-