Interface DescribePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribePolicyResponse.Builder,
,DescribePolicyResponse> OrganizationsResponse.Builder
,SdkBuilder<DescribePolicyResponse.Builder,
,DescribePolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribePolicyResponse
public static interface DescribePolicyResponse.Builder
extends OrganizationsResponse.Builder, SdkPojo, CopyableBuilder<DescribePolicyResponse.Builder,DescribePolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DescribePolicyResponse.Builder
policy
(Consumer<Policy.Builder> policy) A structure that contains details about the specified policy.A structure that contains details about the specified policy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.organizations.model.OrganizationsResponse.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 Details
-
policy
A structure that contains details about the specified policy.
- Parameters:
policy
- A structure that contains details about the specified policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
A structure that contains details about the specified policy.
This is a convenience method that creates an instance of thePolicy.Builder
avoiding the need to create one manually viaPolicy.builder()
.When the
Consumer
completes,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:
-