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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutSinkPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutSinkPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutSinkPolicyRequest.Builderpolicy(String policy)The JSON policy to use.PutSinkPolicyRequest.BuildersinkIdentifier(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 Detail
-
policy
PutSinkPolicyRequest.Builder policy(String 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
PutSinkPolicyRequest.Builder sinkIdentifier(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutSinkPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-