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.BuilderaccountPolicy(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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaAccountPolicy.builder().When the
Consumercompletes,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:
-