Class InstanceProfile
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.InstanceProfile
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceProfile extends Object implements Serializable, Cloneable
Contains information about an instance profile.
This data type is used as a response element in the following actions:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceProfile
clone()
boolean
equals(Object obj)
String
getArn()
The Amazon Resource Name (ARN) specifying the instance profile.Date
getCreateDate()
The date when the instance profile was created.String
getInstanceProfileId()
The stable and unique string identifying the instance profile.String
getInstanceProfileName()
The name identifying the instance profile.String
getPath()
The path to the instance profile.List<Role>
getRoles()
The role associated with the instance profile.int
hashCode()
void
setArn(String arn)
The Amazon Resource Name (ARN) specifying the instance profile.void
setCreateDate(Date createDate)
The date when the instance profile was created.void
setInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile.void
setInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.void
setPath(String path)
The path to the instance profile.void
setRoles(Collection<Role> roles)
The role associated with the instance profile.String
toString()
Returns a string representation of this object; useful for testing and debugging.InstanceProfile
withArn(String arn)
The Amazon Resource Name (ARN) specifying the instance profile.InstanceProfile
withCreateDate(Date createDate)
The date when the instance profile was created.InstanceProfile
withInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile.InstanceProfile
withInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.InstanceProfile
withPath(String path)
The path to the instance profile.InstanceProfile
withRoles(Role... roles)
The role associated with the instance profile.InstanceProfile
withRoles(Collection<Role> roles)
The role associated with the instance profile.
-
-
-
Method Detail
-
setPath
public void setPath(String path)
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Parameters:
path
- The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
-
getPath
public String getPath()
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Returns:
- The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
-
withPath
public InstanceProfile withPath(String path)
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Parameters:
path
- The path to the instance profile. 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.
-
setInstanceProfileName
public void setInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.
- Parameters:
instanceProfileName
- The name identifying the instance profile.
-
getInstanceProfileName
public String getInstanceProfileName()
The name identifying the instance profile.
- Returns:
- The name identifying the instance profile.
-
withInstanceProfileName
public InstanceProfile withInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.
- Parameters:
instanceProfileName
- The name identifying the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceProfileId
public void setInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Parameters:
instanceProfileId
- The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
-
getInstanceProfileId
public String getInstanceProfileId()
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Returns:
- The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
-
withInstanceProfileId
public InstanceProfile withInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Parameters:
instanceProfileId
- The stable and unique string identifying the instance profile. 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)
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
- Parameters:
arn
- The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
-
getArn
public String getArn()
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
- Returns:
- The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
-
withArn
public InstanceProfile withArn(String arn)
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
- Parameters:
arn
- The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
public void setCreateDate(Date createDate)
The date when the instance profile was created.
- Parameters:
createDate
- The date when the instance profile was created.
-
getCreateDate
public Date getCreateDate()
The date when the instance profile was created.
- Returns:
- The date when the instance profile was created.
-
withCreateDate
public InstanceProfile withCreateDate(Date createDate)
The date when the instance profile was created.
- Parameters:
createDate
- The date when the instance profile was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRoles
public List<Role> getRoles()
The role associated with the instance profile.
- Returns:
- The role associated with the instance profile.
-
setRoles
public void setRoles(Collection<Role> roles)
The role associated with the instance profile.
- Parameters:
roles
- The role associated with the instance profile.
-
withRoles
public InstanceProfile withRoles(Role... roles)
The role associated with the instance profile.
NOTE: This method appends the values to the existing list (if any). Use
setRoles(java.util.Collection)
orwithRoles(java.util.Collection)
if you want to override the existing values.- Parameters:
roles
- The role associated with the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRoles
public InstanceProfile withRoles(Collection<Role> roles)
The role associated with the instance profile.
- Parameters:
roles
- The role associated with the instance profile.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceProfile clone()
-
-