@Generated(value="software.amazon.awssdk:codegen") public final class PutSinkPolicyRequest extends OamRequest implements ToCopyableBuilder<PutSinkPolicyRequest.Builder,PutSinkPolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutSinkPolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PutSinkPolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policy()
The JSON policy to use.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutSinkPolicyRequest.Builder> |
serializableBuilderClass() |
String |
sinkIdentifier()
The ARN of the sink to attach this policy to.
|
PutSinkPolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String sinkIdentifier()
The ARN of the sink to attach this policy to.
public final 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.
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.
public PutSinkPolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutSinkPolicyRequest.Builder,PutSinkPolicyRequest>toBuilder in class OamRequestpublic static PutSinkPolicyRequest.Builder builder()
public static Class<? extends PutSinkPolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.