Interface GetDeliveryDestinationPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchLogsResponse.Builder,CopyableBuilder<GetDeliveryDestinationPolicyResponse.Builder,,GetDeliveryDestinationPolicyResponse> SdkBuilder<GetDeliveryDestinationPolicyResponse.Builder,,GetDeliveryDestinationPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetDeliveryDestinationPolicyResponse
public static interface GetDeliveryDestinationPolicyResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<GetDeliveryDestinationPolicyResponse.Builder,GetDeliveryDestinationPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicy(Consumer<Policy.Builder> policy) The IAM policy for this delivery destination.The IAM policy for this delivery destination.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
-
policy
The IAM policy for this delivery destination.
- Parameters:
policy- The IAM policy for this delivery destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The IAM policy for this delivery destination.
This is a convenience method that creates an instance of thePolicy.Builderavoiding the need to create one manually viaPolicy.builder().When the
Consumercompletes,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:
-