@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ManagedPolicyDetail extends Object implements Serializable, Cloneable
Contains information about a managed policy, including the policy's ARN, versions, and the number of principal entities (users, groups, and roles) that the policy is attached to.
This data type is used as a response element in the GetAccountAuthorizationDetails operation.
For more information about managed policies, see Managed policies and inline policies in the IAM User Guide.
Constructor and Description |
---|
ManagedPolicyDetail() |
Modifier and Type | Method and Description |
---|---|
ManagedPolicyDetail |
clone() |
boolean |
equals(Object obj) |
String |
getArn() |
Integer |
getAttachmentCount()
The number of principal entities (users, groups, and roles) that the policy is attached to.
|
Date |
getCreateDate()
The date and time, in ISO 8601 date-time format, when the policy was
created.
|
String |
getDefaultVersionId()
The identifier for the version of the policy that is set as the default (operative) version.
|
String |
getDescription()
A friendly description of the policy.
|
Boolean |
getIsAttachable()
Specifies whether the policy can be attached to an IAM user, group, or role.
|
String |
getPath()
The path to the policy.
|
Integer |
getPermissionsBoundaryUsageCount()
The number of entities (users and roles) for which the policy is used as the permissions boundary.
|
String |
getPolicyId()
The stable and unique string identifying the policy.
|
String |
getPolicyName()
The friendly name (not ARN) identifying the policy.
|
List<PolicyVersion> |
getPolicyVersionList()
A list containing information about the versions of the policy.
|
Date |
getUpdateDate()
The date and time, in ISO 8601 date-time format, when the policy was
last updated.
|
int |
hashCode() |
Boolean |
isAttachable()
Specifies whether the policy can be attached to an IAM user, group, or role.
|
void |
setArn(String arn) |
void |
setAttachmentCount(Integer attachmentCount)
The number of principal entities (users, groups, and roles) that the policy is attached to.
|
void |
setCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the policy was
created.
|
void |
setDefaultVersionId(String defaultVersionId)
The identifier for the version of the policy that is set as the default (operative) version.
|
void |
setDescription(String description)
A friendly description of the policy.
|
void |
setIsAttachable(Boolean isAttachable)
Specifies whether the policy can be attached to an IAM user, group, or role.
|
void |
setPath(String path)
The path to the policy.
|
void |
setPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of entities (users and roles) for which the policy is used as the permissions boundary.
|
void |
setPolicyId(String policyId)
The stable and unique string identifying the policy.
|
void |
setPolicyName(String policyName)
The friendly name (not ARN) identifying the policy.
|
void |
setPolicyVersionList(Collection<PolicyVersion> policyVersionList)
A list containing information about the versions of the policy.
|
void |
setUpdateDate(Date updateDate)
The date and time, in ISO 8601 date-time format, when the policy was
last updated.
|
String |
toString()
Returns a string representation of this object.
|
ManagedPolicyDetail |
withArn(String arn) |
ManagedPolicyDetail |
withAttachmentCount(Integer attachmentCount)
The number of principal entities (users, groups, and roles) that the policy is attached to.
|
ManagedPolicyDetail |
withCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the policy was
created.
|
ManagedPolicyDetail |
withDefaultVersionId(String defaultVersionId)
The identifier for the version of the policy that is set as the default (operative) version.
|
ManagedPolicyDetail |
withDescription(String description)
A friendly description of the policy.
|
ManagedPolicyDetail |
withIsAttachable(Boolean isAttachable)
Specifies whether the policy can be attached to an IAM user, group, or role.
|
ManagedPolicyDetail |
withPath(String path)
The path to the policy.
|
ManagedPolicyDetail |
withPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of entities (users and roles) for which the policy is used as the permissions boundary.
|
ManagedPolicyDetail |
withPolicyId(String policyId)
The stable and unique string identifying the policy.
|
ManagedPolicyDetail |
withPolicyName(String policyName)
The friendly name (not ARN) identifying the policy.
|
ManagedPolicyDetail |
withPolicyVersionList(Collection<PolicyVersion> policyVersionList)
A list containing information about the versions of the policy.
|
ManagedPolicyDetail |
withPolicyVersionList(PolicyVersion... policyVersionList)
A list containing information about the versions of the policy.
|
ManagedPolicyDetail |
withUpdateDate(Date updateDate)
The date and time, in ISO 8601 date-time format, when the policy was
last updated.
|
public void setPolicyName(String policyName)
The friendly name (not ARN) identifying the policy.
policyName
- The friendly name (not ARN) identifying the policy.public String getPolicyName()
The friendly name (not ARN) identifying the policy.
public ManagedPolicyDetail withPolicyName(String policyName)
The friendly name (not ARN) identifying the policy.
policyName
- The friendly name (not ARN) identifying the policy.public void setPolicyId(String policyId)
The stable and unique string identifying the policy.
For more information about IDs, see IAM identifiers in the IAM User Guide.
policyId
- The stable and unique string identifying the policy.
For more information about IDs, see IAM identifiers in the IAM User Guide.
public String getPolicyId()
The stable and unique string identifying the policy.
For more information about IDs, see IAM identifiers in the IAM User Guide.
For more information about IDs, see IAM identifiers in the IAM User Guide.
public ManagedPolicyDetail withPolicyId(String policyId)
The stable and unique string identifying the policy.
For more information about IDs, see IAM identifiers in the IAM User Guide.
policyId
- The stable and unique string identifying the policy.
For more information about IDs, see IAM identifiers in the IAM User Guide.
public void setArn(String arn)
arn
- public String getArn()
public ManagedPolicyDetail withArn(String arn)
arn
- public void setPath(String path)
The path to the policy.
For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the policy.
For more information about paths, see IAM identifiers in the IAM User Guide.
public String getPath()
The path to the policy.
For more information about paths, see IAM identifiers in the IAM User Guide.
For more information about paths, see IAM identifiers in the IAM User Guide.
public ManagedPolicyDetail withPath(String path)
The path to the policy.
For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the policy.
For more information about paths, see IAM identifiers in the IAM User Guide.
public void setDefaultVersionId(String defaultVersionId)
The identifier for the version of the policy that is set as the default (operative) version.
For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
defaultVersionId
- The identifier for the version of the policy that is set as the default (operative) version.
For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
public String getDefaultVersionId()
The identifier for the version of the policy that is set as the default (operative) version.
For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
public ManagedPolicyDetail withDefaultVersionId(String defaultVersionId)
The identifier for the version of the policy that is set as the default (operative) version.
For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
defaultVersionId
- The identifier for the version of the policy that is set as the default (operative) version.
For more information about policy versions, see Versioning for managed policies in the IAM User Guide.
public void setAttachmentCount(Integer attachmentCount)
The number of principal entities (users, groups, and roles) that the policy is attached to.
attachmentCount
- The number of principal entities (users, groups, and roles) that the policy is attached to.public Integer getAttachmentCount()
The number of principal entities (users, groups, and roles) that the policy is attached to.
public ManagedPolicyDetail withAttachmentCount(Integer attachmentCount)
The number of principal entities (users, groups, and roles) that the policy is attached to.
attachmentCount
- The number of principal entities (users, groups, and roles) that the policy is attached to.public void setPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of entities (users and roles) for which the policy is used as the permissions boundary.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
permissionsBoundaryUsageCount
- The number of entities (users and roles) for which the policy is used as the permissions boundary.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public Integer getPermissionsBoundaryUsageCount()
The number of entities (users and roles) for which the policy is used as the permissions boundary.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public ManagedPolicyDetail withPermissionsBoundaryUsageCount(Integer permissionsBoundaryUsageCount)
The number of entities (users and roles) for which the policy is used as the permissions boundary.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
permissionsBoundaryUsageCount
- The number of entities (users and roles) for which the policy is used as the permissions boundary.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public void setIsAttachable(Boolean isAttachable)
Specifies whether the policy can be attached to an IAM user, group, or role.
isAttachable
- Specifies whether the policy can be attached to an IAM user, group, or role.public Boolean getIsAttachable()
Specifies whether the policy can be attached to an IAM user, group, or role.
public ManagedPolicyDetail withIsAttachable(Boolean isAttachable)
Specifies whether the policy can be attached to an IAM user, group, or role.
isAttachable
- Specifies whether the policy can be attached to an IAM user, group, or role.public Boolean isAttachable()
Specifies whether the policy can be attached to an IAM user, group, or role.
public void setDescription(String description)
A friendly description of the policy.
description
- A friendly description of the policy.public String getDescription()
A friendly description of the policy.
public ManagedPolicyDetail withDescription(String description)
A friendly description of the policy.
description
- A friendly description of the policy.public void setCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the policy was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
policy was created.public Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the policy was created.
public ManagedPolicyDetail withCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the policy was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
policy was created.public void setUpdateDate(Date updateDate)
The date and time, in ISO 8601 date-time format, when the policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
updateDate
- The date and time, in ISO 8601 date-time format, when the
policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
public Date getUpdateDate()
The date and time, in ISO 8601 date-time format, when the policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
public ManagedPolicyDetail withUpdateDate(Date updateDate)
The date and time, in ISO 8601 date-time format, when the policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
updateDate
- The date and time, in ISO 8601 date-time format, when the
policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
public List<PolicyVersion> getPolicyVersionList()
A list containing information about the versions of the policy.
public void setPolicyVersionList(Collection<PolicyVersion> policyVersionList)
A list containing information about the versions of the policy.
policyVersionList
- A list containing information about the versions of the policy.public ManagedPolicyDetail withPolicyVersionList(PolicyVersion... policyVersionList)
A list containing information about the 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
- A list containing information about the versions of the policy.public ManagedPolicyDetail withPolicyVersionList(Collection<PolicyVersion> policyVersionList)
A list containing information about the versions of the policy.
policyVersionList
- A list containing information about the versions of the policy.public String toString()
toString
in class Object
Object.toString()
public ManagedPolicyDetail clone()