Interface GetDeliveryDestinationPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<GetDeliveryDestinationPolicyResponse.Builder,
,GetDeliveryDestinationPolicyResponse> SdkBuilder<GetDeliveryDestinationPolicyResponse.Builder,
,GetDeliveryDestinationPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetDeliveryDestinationPolicyResponse
@Mutable
@NotThreadSafe
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, 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, sdkFieldNameToField, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaPolicy.builder()
.When the
Consumer
completes,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:
-