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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PutAccountPolicyResponse.BuilderaccountPolicy(Consumer<AccountPolicy.Builder> accountPolicy)The account policy that you created.PutAccountPolicyResponse.BuilderaccountPolicy(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 Detail
-
accountPolicy
PutAccountPolicyResponse.Builder accountPolicy(AccountPolicy 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:
accountPolicy(AccountPolicy)
-
-