@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsIamPolicyDetails extends Object implements Serializable, Cloneable, StructuredPojo
Represents an IAM permissions policy.
Constructor and Description |
---|
AwsIamPolicyDetails() |
Modifier and Type | Method and Description |
---|---|
AwsIamPolicyDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getAttachmentCount()
The number of users, groups, and roles that the policy is attached to.
|
String |
getCreateDate()
When the policy was created.
|
String |
getDefaultVersionId()
The identifier of the default version of the policy.
|
String |
getDescription()
A description of the policy.
|
Boolean |
getIsAttachable()
Whether the policy can be attached to a user, group, or role.
|
String |
getPath()
The path to the policy.
|
Integer |
getPermissionsBoundaryUsageCount()
The number of users and roles that use the policy to set the permissions boundary.
|
String |
getPolicyId()
The unique identifier of the policy.
|
String |
getPolicyName()
The name of the policy.
|
List<AwsIamPolicyVersion> |
getPolicyVersionList()
List of versions of the policy.
|
String |
getUpdateDate()
When the policy was most recently updated.
|
int |
hashCode() |
Boolean |
isAttachable()
Whether the policy can be attached to a user, group, or role.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttachmentCount(Integer attachmentCount)
The number of users, groups, and roles that the policy is attached to.
|
void |
setCreateDate(String createDate)
When the policy was created.
|
void |
setDefaultVersionId(String defaultVersionId)
The identifier of the default version of the policy.
|
void |
setDescription(String description)
A description of the policy.
|
void |
setIsAttachable(Boolean isAttachable)
Whether the policy can be attached to a user, group, or role.
|
void |
setPath(String path)
The path to the policy.
|
void |
setPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of users and roles that use the policy to set the permissions boundary.
|
void |
setPolicyId(String policyId)
The unique identifier of the policy.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
void |
setPolicyVersionList(Collection<AwsIamPolicyVersion> policyVersionList)
List of versions of the policy.
|
void |
setUpdateDate(String updateDate)
When the policy was most recently updated.
|
String |
toString()
Returns a string representation of this object.
|
AwsIamPolicyDetails |
withAttachmentCount(Integer attachmentCount)
The number of users, groups, and roles that the policy is attached to.
|
AwsIamPolicyDetails |
withCreateDate(String createDate)
When the policy was created.
|
AwsIamPolicyDetails |
withDefaultVersionId(String defaultVersionId)
The identifier of the default version of the policy.
|
AwsIamPolicyDetails |
withDescription(String description)
A description of the policy.
|
AwsIamPolicyDetails |
withIsAttachable(Boolean isAttachable)
Whether the policy can be attached to a user, group, or role.
|
AwsIamPolicyDetails |
withPath(String path)
The path to the policy.
|
AwsIamPolicyDetails |
withPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of users and roles that use the policy to set the permissions boundary.
|
AwsIamPolicyDetails |
withPolicyId(String policyId)
The unique identifier of the policy.
|
AwsIamPolicyDetails |
withPolicyName(String policyName)
The name of the policy.
|
AwsIamPolicyDetails |
withPolicyVersionList(AwsIamPolicyVersion... policyVersionList)
List of versions of the policy.
|
AwsIamPolicyDetails |
withPolicyVersionList(Collection<AwsIamPolicyVersion> policyVersionList)
List of versions of the policy.
|
AwsIamPolicyDetails |
withUpdateDate(String updateDate)
When the policy was most recently updated.
|
public void setAttachmentCount(Integer attachmentCount)
The number of users, groups, and roles that the policy is attached to.
attachmentCount
- The number of users, groups, and roles that the policy is attached to.public Integer getAttachmentCount()
The number of users, groups, and roles that the policy is attached to.
public AwsIamPolicyDetails withAttachmentCount(Integer attachmentCount)
The number of users, groups, and roles that the policy is attached to.
attachmentCount
- The number of users, groups, and roles that the policy is attached to.public void setCreateDate(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. For example,
2020-03-22T13:22:13.933Z
.
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. For example, 2020-03-22T13:22:13.933Z
.
public String getCreateDate()
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. 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. For example, 2020-03-22T13:22:13.933Z
.
public AwsIamPolicyDetails withCreateDate(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. For example,
2020-03-22T13:22:13.933Z
.
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. For example, 2020-03-22T13:22:13.933Z
.
public void setDefaultVersionId(String defaultVersionId)
The identifier of the default version of the policy.
defaultVersionId
- The identifier of the default version of the policy.public String getDefaultVersionId()
The identifier of the default version of the policy.
public AwsIamPolicyDetails withDefaultVersionId(String defaultVersionId)
The identifier of the default version of the policy.
defaultVersionId
- The identifier of the default version of the policy.public void setDescription(String description)
A description of the policy.
description
- A description of the policy.public String getDescription()
A description of the policy.
public AwsIamPolicyDetails withDescription(String description)
A description of the policy.
description
- A description of the policy.public void setIsAttachable(Boolean isAttachable)
Whether the policy can be attached to a user, group, or role.
isAttachable
- Whether the policy can be attached to a user, group, or role.public Boolean getIsAttachable()
Whether the policy can be attached to a user, group, or role.
public AwsIamPolicyDetails withIsAttachable(Boolean isAttachable)
Whether the policy can be attached to a user, group, or role.
isAttachable
- Whether the policy can be attached to a user, group, or role.public Boolean isAttachable()
Whether the policy can be attached to a user, group, or role.
public void setPath(String path)
The path to the policy.
path
- The path to the policy.public String getPath()
The path to the policy.
public AwsIamPolicyDetails withPath(String path)
The path to the policy.
path
- The path to the policy.public void setPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of users and roles that use the policy to set the permissions boundary.
permissionsBoundaryUsageCount
- The number of users and roles that use the policy to set the permissions boundary.public Integer getPermissionsBoundaryUsageCount()
The number of users and roles that use the policy to set the permissions boundary.
public AwsIamPolicyDetails withPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of users and roles that use the policy to set the permissions boundary.
permissionsBoundaryUsageCount
- The number of users and roles that use the policy to set the permissions boundary.public void setPolicyId(String policyId)
The unique identifier of the policy.
policyId
- The unique identifier of the policy.public String getPolicyId()
The unique identifier of the policy.
public AwsIamPolicyDetails withPolicyId(String policyId)
The unique identifier of the policy.
policyId
- The unique identifier of the policy.public void setPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public String getPolicyName()
The name of the policy.
public AwsIamPolicyDetails withPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public List<AwsIamPolicyVersion> getPolicyVersionList()
List of versions of the policy.
public void setPolicyVersionList(Collection<AwsIamPolicyVersion> policyVersionList)
List of versions of the policy.
policyVersionList
- List of versions of the policy.public AwsIamPolicyDetails withPolicyVersionList(AwsIamPolicyVersion... policyVersionList)
List of versions of the policy.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyVersionList(java.util.Collection)
or withPolicyVersionList(java.util.Collection)
if
you want to override the existing values.
policyVersionList
- List of versions of the policy.public AwsIamPolicyDetails withPolicyVersionList(Collection<AwsIamPolicyVersion> policyVersionList)
List of versions of the policy.
policyVersionList
- List of versions of the policy.public void setUpdateDate(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. For example,
2020-03-22T13:22:13.933Z
.
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. For example, 2020-03-22T13:22:13.933Z
.
public String getUpdateDate()
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. 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. For example, 2020-03-22T13:22:13.933Z
.
public AwsIamPolicyDetails withUpdateDate(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. For example,
2020-03-22T13:22:13.933Z
.
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. For example, 2020-03-22T13:22:13.933Z
.
public String toString()
toString
in class Object
Object.toString()
public AwsIamPolicyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.