@Generated(value="software.amazon.awssdk:codegen") public final class PutResourcePolicyRequest extends ComprehendRequest implements ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutResourcePolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PutResourcePolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyRevisionId()
The revision ID that Amazon Comprehend assigned to the policy that you are updating.
|
String |
resourceArn()
The Amazon Resource Name (ARN) of the custom model to attach the policy to.
|
String |
resourcePolicy()
The JSON resource-based policy to attach to your custom model.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutResourcePolicyRequest.Builder> |
serializableBuilderClass() |
PutResourcePolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String resourceArn()
The Amazon Resource Name (ARN) of the custom model to attach the policy to.
public final String resourcePolicy()
The JSON resource-based policy to attach to your custom model. Provide your JSON as a UTF-8 encoded string without line breaks. To provide valid JSON for your policy, enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you must escape the double quotes that are inside the policy:
"{\"attribute\": \"value\", \"attribute\": [\"value\"]}"
To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values:
'{"attribute": "value", "attribute": ["value"]}'
"{\"attribute\": \"value\", \"attribute\": [\"value\"]}"
To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values:
'{"attribute": "value", "attribute": ["value"]}'
public final String policyRevisionId()
The revision ID that Amazon Comprehend assigned to the policy that you are updating. If you are creating a new policy that has no prior version, don't use this parameter. Amazon Comprehend creates the revision ID for you.
public PutResourcePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>toBuilder in class ComprehendRequestpublic static PutResourcePolicyRequest.Builder builder()
public static Class<? extends PutResourcePolicyRequest.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.