Class GroupDetail
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.GroupDetail
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GroupDetail extends Object implements Serializable, Cloneable
Contains information about an IAM group, including all of the group's policies.
This data type is used as a response element in the GetAccountAuthorizationDetails action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupDetailclone()booleanequals(Object obj)StringgetArn()List<AttachedPolicy>getAttachedManagedPolicies()A list of the managed policies attached to the group.DategetCreateDate()The date and time, in ISO 8601 date-time format, when the group was created.StringgetGroupId()The stable and unique string identifying the group.StringgetGroupName()The friendly name that identifies the group.List<PolicyDetail>getGroupPolicyList()A list of the inline policies embedded in the group.StringgetPath()The path to the group.inthashCode()voidsetArn(String arn)voidsetAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)A list of the managed policies attached to the group.voidsetCreateDate(Date createDate)The date and time, in ISO 8601 date-time format, when the group was created.voidsetGroupId(String groupId)The stable and unique string identifying the group.voidsetGroupName(String groupName)The friendly name that identifies the group.voidsetGroupPolicyList(Collection<PolicyDetail> groupPolicyList)A list of the inline policies embedded in the group.voidsetPath(String path)The path to the group.StringtoString()Returns a string representation of this object; useful for testing and debugging.GroupDetailwithArn(String arn)GroupDetailwithAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)A list of the managed policies attached to the group.GroupDetailwithAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)A list of the managed policies attached to the group.GroupDetailwithCreateDate(Date createDate)The date and time, in ISO 8601 date-time format, when the group was created.GroupDetailwithGroupId(String groupId)The stable and unique string identifying the group.GroupDetailwithGroupName(String groupName)The friendly name that identifies the group.GroupDetailwithGroupPolicyList(PolicyDetail... groupPolicyList)A list of the inline policies embedded in the group.GroupDetailwithGroupPolicyList(Collection<PolicyDetail> groupPolicyList)A list of the inline policies embedded in the group.GroupDetailwithPath(String path)The path to the group.
-
-
-
Method Detail
-
setPath
public void setPath(String path)
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Parameters:
path- The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
-
getPath
public String getPath()
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Returns:
- The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
-
withPath
public GroupDetail withPath(String path)
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Parameters:
path- The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupName
public void setGroupName(String groupName)
The friendly name that identifies the group.
- Parameters:
groupName- The friendly name that identifies the group.
-
getGroupName
public String getGroupName()
The friendly name that identifies the group.
- Returns:
- The friendly name that identifies the group.
-
withGroupName
public GroupDetail withGroupName(String groupName)
The friendly name that identifies the group.
- Parameters:
groupName- The friendly name that identifies the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupId
public void setGroupId(String groupId)
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Parameters:
groupId- The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
-
getGroupId
public String getGroupId()
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Returns:
- The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
-
withGroupId
public GroupDetail withGroupId(String groupId)
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Parameters:
groupId- The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
public void setArn(String arn)
- Parameters:
arn-
-
getArn
public String getArn()
- Returns:
-
withArn
public GroupDetail withArn(String arn)
- Parameters:
arn-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
public void setCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the group was created.
- Parameters:
createDate- The date and time, in ISO 8601 date-time format, when the group was created.
-
getCreateDate
public Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the group was created.
- Returns:
- The date and time, in ISO 8601 date-time format, when the group was created.
-
withCreateDate
public GroupDetail withCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the group was created.
- Parameters:
createDate- The date and time, in ISO 8601 date-time format, when the group was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGroupPolicyList
public List<PolicyDetail> getGroupPolicyList()
A list of the inline policies embedded in the group.
- Returns:
- A list of the inline policies embedded in the group.
-
setGroupPolicyList
public void setGroupPolicyList(Collection<PolicyDetail> groupPolicyList)
A list of the inline policies embedded in the group.
- Parameters:
groupPolicyList- A list of the inline policies embedded in the group.
-
withGroupPolicyList
public GroupDetail withGroupPolicyList(PolicyDetail... groupPolicyList)
A list of the inline policies embedded in the group.
NOTE: This method appends the values to the existing list (if any). Use
setGroupPolicyList(java.util.Collection)orwithGroupPolicyList(java.util.Collection)if you want to override the existing values.- Parameters:
groupPolicyList- A list of the inline policies embedded in the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroupPolicyList
public GroupDetail withGroupPolicyList(Collection<PolicyDetail> groupPolicyList)
A list of the inline policies embedded in the group.
- Parameters:
groupPolicyList- A list of the inline policies embedded in the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttachedManagedPolicies
public List<AttachedPolicy> getAttachedManagedPolicies()
A list of the managed policies attached to the group.
- Returns:
- A list of the managed policies attached to the group.
-
setAttachedManagedPolicies
public void setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the group.
- Parameters:
attachedManagedPolicies- A list of the managed policies attached to the group.
-
withAttachedManagedPolicies
public GroupDetail withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of the managed policies attached to the group.
NOTE: This method appends the values to the existing list (if any). Use
setAttachedManagedPolicies(java.util.Collection)orwithAttachedManagedPolicies(java.util.Collection)if you want to override the existing values.- Parameters:
attachedManagedPolicies- A list of the managed policies attached to the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttachedManagedPolicies
public GroupDetail withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the group.
- Parameters:
attachedManagedPolicies- A list of the managed policies attached to the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GroupDetail clone()
-
-