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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PutDeliveryDestinationPolicyResponse.Builder
policy(Consumer<Policy.Builder> policy)
The contents of the policy that you just created.PutDeliveryDestinationPolicyResponse.Builder
policy(Policy policy)
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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
policy
PutDeliveryDestinationPolicyResponse.Builder policy(Policy 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
default PutDeliveryDestinationPolicyResponse.Builder policy(Consumer<Policy.Builder> 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:
policy(Policy)
-
-