@Generated(value="software.amazon.awssdk:codegen") public final class AwsIamPolicyDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsIamPolicyDetails.Builder,AwsIamPolicyDetails>
Represents an IAM permissions policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsIamPolicyDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
attachmentCount()
The number of users, groups, and roles that the policy is attached to.
|
static AwsIamPolicyDetails.Builder |
builder() |
String |
createDate()
When the policy was created.
|
String |
defaultVersionId()
The identifier of the default version of the policy.
|
String |
description()
A description of the policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasPolicyVersionList()
For responses, this returns true if the service returned a value for the PolicyVersionList property.
|
Boolean |
isAttachable()
Whether the policy can be attached to a user, group, or role.
|
String |
path()
The path to the policy.
|
Integer |
permissionsBoundaryUsageCount()
The number of users and roles that use the policy to set the permissions boundary.
|
String |
policyId()
The unique identifier of the policy.
|
String |
policyName()
The name of the policy.
|
List<AwsIamPolicyVersion> |
policyVersionList()
List of versions of the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsIamPolicyDetails.Builder> |
serializableBuilderClass() |
AwsIamPolicyDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
updateDate()
When the policy was most recently updated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer attachmentCount()
The number of users, groups, and roles that the policy is attached to.
public final String createDate()
When the policy was created.
Uses the date-time format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
separated by T. For example, 2020-03-22T13:22:13.933Z.
Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces, and date and time should be separated by T. For
example, 2020-03-22T13:22:13.933Z.
public final String defaultVersionId()
The identifier of the default version of the policy.
public final String description()
A description of the policy.
public final Boolean isAttachable()
Whether the policy can be attached to a user, group, or role.
public final String path()
The path to the policy.
public final Integer permissionsBoundaryUsageCount()
The number of users and roles that use the policy to set the permissions boundary.
public final String policyId()
The unique identifier of the policy.
public final String policyName()
The name of the policy.
public final boolean hasPolicyVersionList()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsIamPolicyVersion> policyVersionList()
List of versions of the policy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPolicyVersionList() method.
public final String updateDate()
When the policy was most recently updated.
Uses the date-time format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
separated by T. For example, 2020-03-22T13:22:13.933Z.
Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces, and date and time should be separated by T. For
example, 2020-03-22T13:22:13.933Z.
public AwsIamPolicyDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsIamPolicyDetails.Builder,AwsIamPolicyDetails>public static AwsIamPolicyDetails.Builder builder()
public static Class<? extends AwsIamPolicyDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.