@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 operations:
Constructor and Description |
---|
InstanceProfile() |
Modifier and Type | Method and 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.
|
List<Tag> |
getTags()
A list of tags that are attached to 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.
|
void |
setTags(Collection<Tag> tags)
A list of tags that are attached to the instance profile.
|
String |
toString()
Returns a string representation of this object.
|
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(Collection<Role> roles)
The role associated with the instance profile.
|
InstanceProfile |
withRoles(Role... roles)
The role associated with the instance profile.
|
InstanceProfile |
withTags(Collection<Tag> tags)
A list of tags that are attached to the instance profile.
|
InstanceProfile |
withTags(Tag... tags)
A list of tags that are attached to the instance profile.
|
public void setPath(String path)
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the instance profile. For more information about paths, see IAM identifiers in the
IAM User Guide.public String getPath()
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
public InstanceProfile withPath(String path)
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the instance profile. For more information about paths, see IAM identifiers in the
IAM User Guide.public void setInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.
instanceProfileName
- The name identifying the instance profile.public String getInstanceProfileName()
The name identifying the instance profile.
public InstanceProfile withInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.
instanceProfileName
- The name identifying the instance profile.public void setInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
instanceProfileId
- The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the
IAM User Guide.public String getInstanceProfileId()
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
public InstanceProfile withInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
instanceProfileId
- The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the
IAM User Guide.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 IAM User 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
IAM User Guide.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 IAM User Guide.
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 IAM User 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
IAM User Guide.public void setCreateDate(Date createDate)
The date when the instance profile was created.
createDate
- The date when the instance profile was created.public Date getCreateDate()
The date when the instance profile was created.
public InstanceProfile withCreateDate(Date createDate)
The date when the instance profile was created.
createDate
- The date when the instance profile was created.public List<Role> getRoles()
The role associated with the instance profile.
public void setRoles(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(Collection<Role> roles)
The role associated with the instance profile.
roles
- The role associated with the instance profile.public List<Tag> getTags()
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
public void setTags(Collection<Tag> tags)
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public InstanceProfile withTags(Tag... tags)
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public InstanceProfile withTags(Collection<Tag> tags)
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public String toString()
toString
in class Object
Object.toString()
public InstanceProfile clone()