Class DescribeResourcePolicyResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.comprehend.model.ComprehendResponse
-
- software.amazon.awssdk.services.comprehend.model.DescribeResourcePolicyResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeResourcePolicyResponse.Builder,DescribeResourcePolicyResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeResourcePolicyResponse extends ComprehendResponse 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()InstantcreationTime()The time at which the policy was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastModifiedTime()The time at which the policy was last modified.StringpolicyRevisionId()The revision ID of the policy.StringresourcePolicy()The JSON body of the resource-based 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.comprehend.model.ComprehendResponse
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
-
resourcePolicy
public final String resourcePolicy()
The JSON body of the resource-based policy.
- Returns:
- The JSON body of the resource-based policy.
-
creationTime
public final Instant creationTime()
The time at which the policy was created.
- Returns:
- The time at which the policy was created.
-
lastModifiedTime
public final Instant lastModifiedTime()
The time at which the policy was last modified.
- Returns:
- The time at which the policy was last modified.
-
policyRevisionId
public final String policyRevisionId()
The revision ID of the policy. Each time you modify a policy, Amazon Comprehend assigns a new revision ID, and it deletes the prior version of the policy.
- Returns:
- The revision ID of the policy. Each time you modify a policy, Amazon Comprehend assigns a new revision ID, and it deletes the prior version of the policy.
-
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
-
-