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.Builder
policyVersion
(Consumer<PolicyVersion.Builder> policyVersion) APolicyVersion
object.policyVersion
(PolicyVersion policyVersion) APolicyVersion
object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.mpa.model.MpaResponse.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyVersion
A
PolicyVersion
object. 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
- APolicyVersion
object. 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
PolicyVersion
object. 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.Builder
avoiding the need to create one manually viaPolicyVersion.builder()
.When the
Consumer
completes,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:
-