Interface DescribeEffectivePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeEffectivePolicyResponse.Builder,
,DescribeEffectivePolicyResponse> OrganizationsResponse.Builder
,SdkBuilder<DescribeEffectivePolicyResponse.Builder,
,DescribeEffectivePolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeEffectivePolicyResponse
public static interface DescribeEffectivePolicyResponse.Builder
extends OrganizationsResponse.Builder, SdkPojo, CopyableBuilder<DescribeEffectivePolicyResponse.Builder,DescribeEffectivePolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptioneffectivePolicy
(Consumer<EffectivePolicy.Builder> effectivePolicy) The contents of the effective policy.effectivePolicy
(EffectivePolicy effectivePolicy) The contents of the effective 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
-
effectivePolicy
The contents of the effective policy.
- Parameters:
effectivePolicy
- The contents of the effective policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectivePolicy
default DescribeEffectivePolicyResponse.Builder effectivePolicy(Consumer<EffectivePolicy.Builder> effectivePolicy) The contents of the effective policy.
This is a convenience method that creates an instance of theEffectivePolicy.Builder
avoiding the need to create one manually viaEffectivePolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeffectivePolicy(EffectivePolicy)
.- Parameters:
effectivePolicy
- a consumer that will call methods onEffectivePolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-