Class DescribeResourcePolicyResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Response
-
- software.amazon.awssdk.services.lexmodelsv2.model.DescribeResourcePolicyResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeResourcePolicyResponse.Builder,DescribeResourcePolicyResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeResourcePolicyResponse extends LexModelsV2Response implements ToCopyableBuilder<DescribeResourcePolicyResponse.Builder,DescribeResourcePolicyResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeResourcePolicyResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescribeResourcePolicyResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringpolicy()The JSON structure that contains the resource policy.StringresourceArn()The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.StringrevisionId()The current revision of the resource policy.List<SdkField<?>>sdkFields()static Class<? extends DescribeResourcePolicyResponse.Builder>serializableBuilderClass()DescribeResourcePolicyResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Response
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
resourceArn
public final String resourceArn()
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
- Returns:
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
-
policy
public final String policy()
The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
- Returns:
- The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
-
revisionId
public final String revisionId()
The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.
- Returns:
- The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.
-
toBuilder
public DescribeResourcePolicyResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeResourcePolicyResponse.Builder,DescribeResourcePolicyResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeResourcePolicyResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeResourcePolicyResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-