Class InstanceProfile
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about an instance profile.
This data type is used as a response element in the following actions:
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The Amazon Resource Name (ARN) specifying the instance profile.The date when the instance profile was created.The stable and unique string identifying the instance profile.The name identifying the instance profile.getPath()
The path to the instance profile.getRoles()
The role associated with the instance profile.int
hashCode()
void
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
The path to the instance profile.void
setRoles
(Collection<Role> roles) The role associated with the instance profile.toString()
Returns a string representation of this object; useful for testing and debugging.The Amazon Resource Name (ARN) specifying the instance profile.withCreateDate
(Date createDate) The date when the instance profile was created.withInstanceProfileId
(String instanceProfileId) The stable and unique string identifying the instance profile.withInstanceProfileName
(String instanceProfileName) The name identifying the instance profile.The path to the instance profile.The role associated with the instance profile.withRoles
(Collection<Role> roles) The role associated with the instance profile.
-
Constructor Details
-
InstanceProfile
public InstanceProfile()
-
-
Method Details
-
setPath
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
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
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
The name identifying the instance profile.
- Parameters:
instanceProfileName
- The name identifying the instance profile.
-
getInstanceProfileName
The name identifying the instance profile.
- Returns:
- The name identifying the instance profile.
-
withInstanceProfileName
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
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
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
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
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
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
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
The date when the instance profile was created.
- Parameters:
createDate
- The date when the instance profile was created.
-
getCreateDate
The date when the instance profile was created.
- Returns:
- The date when the instance profile was created.
-
withCreateDate
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
The role associated with the instance profile.
- Returns:
- The role associated with the instance profile.
-
setRoles
The role associated with the instance profile.
- Parameters:
roles
- The role associated with the instance profile.
-
withRoles
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-