Class PolicyItem
- java.lang.Object
-
- software.amazon.awssdk.services.verifiedpermissions.model.PolicyItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyItem.Builder,PolicyItem>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyItem.Builderbuilder()InstantcreatedDate()The date and time the policy was created.PolicyDefinitionItemdefinition()The policy definition of an item in the list of policies returned.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastUpdatedDate()The date and time the policy was most recently updated.StringpolicyId()The identifier of the policy you want information about.StringpolicyStoreId()The identifier of the PolicyStore where the policy you want information about is stored.PolicyTypepolicyType()The type of the policy.StringpolicyTypeAsString()The type of the policy.EntityIdentifierprincipal()The principal associated with the policy.EntityIdentifierresource()The resource associated with the policy.List<SdkField<?>>sdkFields()static Class<? extends PolicyItem.Builder>serializableBuilderClass()PolicyItem.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
policyStoreId
public final String policyStoreId()
The identifier of the PolicyStore where the policy you want information about is stored.
- Returns:
- The identifier of the PolicyStore where the policy you want information about is stored.
-
policyId
public final String policyId()
The identifier of the policy you want information about.
- Returns:
- The identifier of the policy you want information about.
-
policyType
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,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of the policy. This is one of the following values:
-
static -
templateLinked
-
- See Also:
PolicyType
-
-
policyTypeAsString
public 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,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of the policy. This is one of the following values:
-
static -
templateLinked
-
- See Also:
PolicyType
-
-
principal
public final EntityIdentifier principal()
The principal associated with the policy.
- Returns:
- The principal associated with the policy.
-
resource
public final EntityIdentifier resource()
The resource associated with the policy.
- Returns:
- The resource associated with the policy.
-
definition
public final PolicyDefinitionItem definition()
The policy definition of an item in the list of policies returned.
- Returns:
- The policy definition of an item in the list of policies returned.
-
createdDate
public final Instant createdDate()
The date and time the policy was created.
- Returns:
- The date and time the policy was created.
-
lastUpdatedDate
public final Instant lastUpdatedDate()
The date and time the policy was most recently updated.
- Returns:
- The date and time the policy was most recently updated.
-
toBuilder
public PolicyItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyItem.Builder,PolicyItem>
-
builder
public static PolicyItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyItem.Builder> serializableBuilderClass()
-
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.
-
-