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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetDeliveryDestinationPolicyResponse.Builder
policy(Consumer<Policy.Builder> policy)
The IAM policy for this delivery destination.GetDeliveryDestinationPolicyResponse.Builder
policy(Policy policy)
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 Detail
-
policy
GetDeliveryDestinationPolicyResponse.Builder policy(Policy 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
default GetDeliveryDestinationPolicyResponse.Builder policy(Consumer<Policy.Builder> 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:
policy(Policy)
-
-