@Generated(value="software.amazon.awssdk:codegen") public final class CreatePolicyResponse extends VerifiedPermissionsResponse implements ToCopyableBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreatePolicyResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreatePolicyResponse.Builder |
builder() |
Instant |
createdDate()
The date and time the policy was originally created.
|
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 the policy was last updated.
|
String |
policyId()
The unique ID of the new policy.
|
String |
policyStoreId()
The ID of the policy store that contains the new policy.
|
PolicyType |
policyType()
The policy type of the new policy.
|
String |
policyTypeAsString()
The policy type of the new policy.
|
EntityIdentifier |
principal()
The principal specified in the new policy's scope.
|
EntityIdentifier |
resource()
The resource specified in the new policy's scope.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreatePolicyResponse.Builder> |
serializableBuilderClass() |
CreatePolicyResponse.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 new policy.
public final String policyId()
The unique ID of the new policy.
public final PolicyType policyType()
The policy type of the new 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 policy type of the new 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 new policy's scope. This response element isn't present when
principal isn't specified in the policy content.
principal isn't specified in the policy content.public final EntityIdentifier resource()
The resource specified in the new policy's scope. This response element isn't present when the
resource isn't specified in the policy content.
resource isn't specified in the policy content.public final Instant createdDate()
The date and time the policy was originally created.
public final Instant lastUpdatedDate()
The date and time the policy was last updated.
public CreatePolicyResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>toBuilder in class AwsResponsepublic static CreatePolicyResponse.Builder builder()
public static Class<? extends CreatePolicyResponse.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.