public class InstanceProfile
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an instance profile.
This data type is used as a response element in the following actions:
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) specifying the instance profile.
|
private java.util.Date |
createDate
The date when the instance profile was created.
|
private java.lang.String |
instanceProfileId
The stable and unique string identifying the instance profile.
|
private java.lang.String |
instanceProfileName
The name identifying the instance profile.
|
private java.lang.String |
path
The path to the instance profile.
|
private SdkInternalList<Role> |
roles
The role associated with the instance profile.
|
Constructor and Description |
---|
InstanceProfile() |
Modifier and Type | Method and Description |
---|---|
InstanceProfile |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) specifying the instance profile.
|
java.util.Date |
getCreateDate()
The date when the instance profile was created.
|
java.lang.String |
getInstanceProfileId()
The stable and unique string identifying the instance profile.
|
java.lang.String |
getInstanceProfileName()
The name identifying the instance profile.
|
java.lang.String |
getPath()
The path to the instance profile.
|
java.util.List<Role> |
getRoles()
The role associated with the instance profile.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) specifying the instance profile.
|
void |
setCreateDate(java.util.Date createDate)
The date when the instance profile was created.
|
void |
setInstanceProfileId(java.lang.String instanceProfileId)
The stable and unique string identifying the instance profile.
|
void |
setInstanceProfileName(java.lang.String instanceProfileName)
The name identifying the instance profile.
|
void |
setPath(java.lang.String path)
The path to the instance profile.
|
void |
setRoles(java.util.Collection<Role> roles)
The role associated with the instance profile.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceProfile |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) specifying the instance profile.
|
InstanceProfile |
withCreateDate(java.util.Date createDate)
The date when the instance profile was created.
|
InstanceProfile |
withInstanceProfileId(java.lang.String instanceProfileId)
The stable and unique string identifying the instance profile.
|
InstanceProfile |
withInstanceProfileName(java.lang.String instanceProfileName)
The name identifying the instance profile.
|
InstanceProfile |
withPath(java.lang.String path)
The path to the instance profile.
|
InstanceProfile |
withRoles(java.util.Collection<Role> roles)
The role associated with the instance profile.
|
InstanceProfile |
withRoles(Role... roles)
The role associated with the instance profile.
|
private java.lang.String path
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
private java.lang.String instanceProfileName
The name identifying the instance profile.
private java.lang.String instanceProfileId
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
private java.lang.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.
private java.util.Date createDate
The date when the instance profile was created.
private SdkInternalList<Role> roles
The role associated with the instance profile.
public void setPath(java.lang.String path)
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the instance profile. For more information about
paths, see IAM Identifiers in the Using IAM guide.public java.lang.String getPath()
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
public InstanceProfile withPath(java.lang.String path)
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the instance profile. For more information about
paths, see IAM Identifiers in the Using IAM guide.public void setInstanceProfileName(java.lang.String instanceProfileName)
The name identifying the instance profile.
instanceProfileName
- The name identifying the instance profile.public java.lang.String getInstanceProfileName()
The name identifying the instance profile.
public InstanceProfile withInstanceProfileName(java.lang.String instanceProfileName)
The name identifying the instance profile.
instanceProfileName
- The name identifying the instance profile.public void setInstanceProfileId(java.lang.String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
instanceProfileId
- The stable and unique string identifying the instance profile. For
more information about IDs, see IAM Identifiers in the Using IAM guide.public java.lang.String getInstanceProfileId()
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
public InstanceProfile withInstanceProfileId(java.lang.String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
instanceProfileId
- The stable and unique string identifying the instance profile. For
more information about IDs, see IAM Identifiers in the Using IAM guide.public void setArn(java.lang.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.
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.public java.lang.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.
public InstanceProfile withArn(java.lang.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.
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.public void setCreateDate(java.util.Date createDate)
The date when the instance profile was created.
createDate
- The date when the instance profile was created.public java.util.Date getCreateDate()
The date when the instance profile was created.
public InstanceProfile withCreateDate(java.util.Date createDate)
The date when the instance profile was created.
createDate
- The date when the instance profile was created.public java.util.List<Role> getRoles()
The role associated with the instance profile.
public void setRoles(java.util.Collection<Role> roles)
The role associated with the instance profile.
roles
- The role associated with the instance profile.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)
or
withRoles(java.util.Collection)
if you want to override the
existing values.
roles
- The role associated with the instance profile.public InstanceProfile withRoles(java.util.Collection<Role> roles)
The role associated with the instance profile.
roles
- The role associated with the instance profile.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceProfile clone()
clone
in class java.lang.Object