Interface GetPolicyVersionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetPolicyVersionResponse.Builder,,GetPolicyVersionResponse> MpaResponse.Builder,SdkBuilder<GetPolicyVersionResponse.Builder,,GetPolicyVersionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPolicyVersionResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetPolicyVersionResponse.BuilderpolicyVersion(Consumer<PolicyVersion.Builder> policyVersion) APolicyVersionobject.policyVersion(PolicyVersion policyVersion) APolicyVersionobject.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mpa.model.MpaResponse.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
PolicyVersionobject. Contains details for the version of the policy. Policies define the permissions for team resources.The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
- Parameters:
policyVersion- APolicyVersionobject. Contains details for the version of the policy. Policies define the permissions for team resources.The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
- 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
PolicyVersionobject. Contains details for the version of the policy. Policies define the permissions for team resources.The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
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:
-