Interface PutSinkPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutSinkPolicyRequest.Builder,
,PutSinkPolicyRequest> OamRequest.Builder
,SdkBuilder<PutSinkPolicyRequest.Builder,
,PutSinkPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutSinkPolicyRequest
@Mutable
@NotThreadSafe
public static interface PutSinkPolicyRequest.Builder
extends OamRequest.Builder, SdkPojo, CopyableBuilder<PutSinkPolicyRequest.Builder,PutSinkPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The JSON policy to use.sinkIdentifier
(String sinkIdentifier) The ARN of the sink to attach this policy to.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.oam.model.OamRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policy
The JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.
The policy must be in JSON string format with quotation marks escaped and no newlines.
For examples of different types of policies, see the Examples section on this page.
- Parameters:
policy
- The JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.The policy must be in JSON string format with quotation marks escaped and no newlines.
For examples of different types of policies, see the Examples section on this page.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sinkIdentifier
The ARN of the sink to attach this policy to.
- Parameters:
sinkIdentifier
- The ARN of the sink to attach this policy to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutSinkPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutSinkPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-