Interface PutAccountPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<PutAccountPolicyResponse.Builder,
,PutAccountPolicyResponse> SdkBuilder<PutAccountPolicyResponse.Builder,
,PutAccountPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PutAccountPolicyResponse
public static interface PutAccountPolicyResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<PutAccountPolicyResponse.Builder,PutAccountPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutAccountPolicyResponse.Builder
accountPolicy
(Consumer<AccountPolicy.Builder> accountPolicy) The account policy that you created.accountPolicy
(AccountPolicy accountPolicy) The account policy that you created.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
accountPolicy
The account policy that you created.
- Parameters:
accountPolicy
- The account policy that you created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountPolicy
default PutAccountPolicyResponse.Builder accountPolicy(Consumer<AccountPolicy.Builder> accountPolicy) The account policy that you created.
This is a convenience method that creates an instance of theAccountPolicy.Builder
avoiding the need to create one manually viaAccountPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccountPolicy(AccountPolicy)
.- Parameters:
accountPolicy
- a consumer that will call methods onAccountPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-