Interface PutDeliveryDestinationPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<PutDeliveryDestinationPolicyResponse.Builder,
,PutDeliveryDestinationPolicyResponse> SdkBuilder<PutDeliveryDestinationPolicyResponse.Builder,
,PutDeliveryDestinationPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PutDeliveryDestinationPolicyResponse
public static interface PutDeliveryDestinationPolicyResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<PutDeliveryDestinationPolicyResponse.Builder,PutDeliveryDestinationPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicy
(Consumer<Policy.Builder> policy) The contents of the policy that you just created.The contents of the policy that you just 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
-
policy
The contents of the policy that you just created.
- Parameters:
policy
- The contents of the policy that you just created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The contents of the policy that you just created.
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:
-