@Generated(value="software.amazon.awssdk:codegen") public final class UpdateResourcePolicyRequest extends LexModelsV2Request implements ToCopyableBuilder<UpdateResourcePolicyRequest.Builder,UpdateResourcePolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateResourcePolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UpdateResourcePolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
expectedRevisionId()
The identifier of the revision of the policy to update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policy()
A resource policy to add to the resource.
|
String |
resourceArn()
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateResourcePolicyRequest.Builder> |
serializableBuilderClass() |
UpdateResourcePolicyRequest.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 bot or bot alias that the resource policy is attached to.
public final String policy()
A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
If the policy isn't valid, Amazon Lex returns a validation exception.
If the policy isn't valid, Amazon Lex returns a validation exception.
public final String expectedRevisionId()
The identifier of the revision of the policy to update. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
public UpdateResourcePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateResourcePolicyRequest.Builder,UpdateResourcePolicyRequest>toBuilder in class LexModelsV2Requestpublic static UpdateResourcePolicyRequest.Builder builder()
public static Class<? extends UpdateResourcePolicyRequest.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 © 2022. All rights reserved.