@Generated(value="software.amazon.awssdk:codegen") public final class PolicyItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyItem.Builder,PolicyItem>
Contains information about a policy.
This data type is used as a response parameter for the ListPolicies operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PolicyItem.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PolicyItem.Builder |
builder() |
Instant |
createdDate()
The date and time the policy was created.
|
PolicyDefinitionItem |
definition()
The policy definition of an item in the list of policies returned.
|
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 most recently updated.
|
String |
policyId()
The identifier of the policy you want information about.
|
String |
policyStoreId()
The identifier of the PolicyStore where the policy you want information about is stored.
|
PolicyType |
policyType()
The type of the policy.
|
String |
policyTypeAsString()
The type of the policy.
|
EntityIdentifier |
principal()
The principal associated with the policy.
|
EntityIdentifier |
resource()
The resource associated with the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicyItem.Builder> |
serializableBuilderClass() |
PolicyItem.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String policyStoreId()
The identifier of the PolicyStore where the policy you want information about is stored.
public final String policyId()
The identifier of the policy you want information about.
public final PolicyType policyType()
The type of the policy. This is one of the following values:
static
templateLinked
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().
static
templateLinked
PolicyTypepublic final String policyTypeAsString()
The type of the policy. This is one of the following values:
static
templateLinked
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().
static
templateLinked
PolicyTypepublic final EntityIdentifier principal()
The principal associated with the policy.
public final EntityIdentifier resource()
The resource associated with the policy.
public final PolicyDefinitionItem definition()
The policy definition of an item in the list of policies returned.
public final Instant createdDate()
The date and time the policy was created.
public final Instant lastUpdatedDate()
The date and time the policy was most recently updated.
public PolicyItem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PolicyItem.Builder,PolicyItem>public static PolicyItem.Builder builder()
public static Class<? extends PolicyItem.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.