@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 actions:
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.
|
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(Collection<Role> roles)
The role associated with the instance profile.
|
InstanceProfile |
withRoles(Role... roles)
The role associated with the instance profile.
|
public void setPath(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 String getPath()
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
public InstanceProfile withPath(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(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 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 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(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(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 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(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(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 String toString()
toString
in class Object
Object.toString()
public InstanceProfile clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.