@Generated(value="software.amazon.awssdk:codegen") public final class GetPolicyResponse extends VerifiedPermissionsResponse implements ToCopyableBuilder<GetPolicyResponse.Builder,GetPolicyResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetPolicyResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetPolicyResponse.Builder |
builder() |
Instant |
createdDate()
The date and time that the policy was originally created.
|
PolicyDefinitionDetail |
definition()
The definition of the requested policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedDate()
The date and time that the policy was last updated.
|
String |
policyId()
The unique ID of the policy that you want information about.
|
String |
policyStoreId()
The ID of the policy store that contains the policy that you want information about.
|
PolicyType |
policyType()
The type of the policy.
|
String |
policyTypeAsString()
The type of the policy.
|
EntityIdentifier |
principal()
The principal specified in the policy's scope.
|
EntityIdentifier |
resource()
The resource specified in the policy's scope.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetPolicyResponse.Builder> |
serializableBuilderClass() |
GetPolicyResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String policyStoreId()
The ID of the policy store that contains the policy that you want information about.
public final String policyId()
The unique ID of the policy that you want information about.
public final PolicyType policyType()
The type of the policy.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final String policyTypeAsString()
The type of the policy.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final EntityIdentifier principal()
The principal specified in the policy's scope. This element isn't included in the response when
Principal isn't present in the policy content.
Principal isn't present in the policy content.public final EntityIdentifier resource()
The resource specified in the policy's scope. This element isn't included in the response when
Resource isn't present in the policy content.
Resource isn't present in the policy content.public final PolicyDefinitionDetail definition()
The definition of the requested policy.
public final Instant createdDate()
The date and time that the policy was originally created.
public final Instant lastUpdatedDate()
The date and time that the policy was last updated.
public GetPolicyResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetPolicyResponse.Builder,GetPolicyResponse>toBuilder in class AwsResponsepublic static GetPolicyResponse.Builder builder()
public static Class<? extends GetPolicyResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic 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 SdkResponseCopyright © 2023. All rights reserved.