Interface PutSinkPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutSinkPolicyRequest.Builder,,PutSinkPolicyRequest> OamRequest.Builder,SdkBuilder<PutSinkPolicyRequest.Builder,,PutSinkPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutSinkPolicyRequest
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.oam.model.OamRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-