@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsIamInstanceProfile extends Object implements Serializable, Cloneable, StructuredPojo
Information about an instance profile.
Constructor and Description |
---|
AwsIamInstanceProfile() |
Modifier and Type | Method and Description |
---|---|
AwsIamInstanceProfile |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the instance profile.
|
String |
getCreateDate()
Indicates when the instance profile was created.
|
String |
getInstanceProfileId()
The identifier of the instance profile.
|
String |
getInstanceProfileName()
The name of the instance profile.
|
String |
getPath()
The path to the instance profile.
|
List<AwsIamInstanceProfileRole> |
getRoles()
The roles associated with the instance profile.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the instance profile.
|
void |
setCreateDate(String createDate)
Indicates when the instance profile was created.
|
void |
setInstanceProfileId(String instanceProfileId)
The identifier of the instance profile.
|
void |
setInstanceProfileName(String instanceProfileName)
The name of the instance profile.
|
void |
setPath(String path)
The path to the instance profile.
|
void |
setRoles(Collection<AwsIamInstanceProfileRole> roles)
The roles associated with the instance profile.
|
String |
toString()
Returns a string representation of this object.
|
AwsIamInstanceProfile |
withArn(String arn)
The ARN of the instance profile.
|
AwsIamInstanceProfile |
withCreateDate(String createDate)
Indicates when the instance profile was created.
|
AwsIamInstanceProfile |
withInstanceProfileId(String instanceProfileId)
The identifier of the instance profile.
|
AwsIamInstanceProfile |
withInstanceProfileName(String instanceProfileName)
The name of the instance profile.
|
AwsIamInstanceProfile |
withPath(String path)
The path to the instance profile.
|
AwsIamInstanceProfile |
withRoles(AwsIamInstanceProfileRole... roles)
The roles associated with the instance profile.
|
AwsIamInstanceProfile |
withRoles(Collection<AwsIamInstanceProfileRole> roles)
The roles associated with the instance profile.
|
public void setArn(String arn)
The ARN of the instance profile.
arn
- The ARN of the instance profile.public String getArn()
The ARN of the instance profile.
public AwsIamInstanceProfile withArn(String arn)
The ARN of the instance profile.
arn
- The ARN of the instance profile.public void setCreateDate(String createDate)
Indicates when the instance profile was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
createDate
- Indicates when the instance profile was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public String getCreateDate()
Indicates when the instance profile was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public AwsIamInstanceProfile withCreateDate(String createDate)
Indicates when the instance profile was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
createDate
- Indicates when the instance profile was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public void setInstanceProfileId(String instanceProfileId)
The identifier of the instance profile.
instanceProfileId
- The identifier of the instance profile.public String getInstanceProfileId()
The identifier of the instance profile.
public AwsIamInstanceProfile withInstanceProfileId(String instanceProfileId)
The identifier of the instance profile.
instanceProfileId
- The identifier of the instance profile.public void setInstanceProfileName(String instanceProfileName)
The name of the instance profile.
instanceProfileName
- The name of the instance profile.public String getInstanceProfileName()
The name of the instance profile.
public AwsIamInstanceProfile withInstanceProfileName(String instanceProfileName)
The name of the instance profile.
instanceProfileName
- The name of the instance profile.public void setPath(String path)
The path to the instance profile.
path
- The path to the instance profile.public String getPath()
The path to the instance profile.
public AwsIamInstanceProfile withPath(String path)
The path to the instance profile.
path
- The path to the instance profile.public List<AwsIamInstanceProfileRole> getRoles()
The roles associated with the instance profile.
public void setRoles(Collection<AwsIamInstanceProfileRole> roles)
The roles associated with the instance profile.
roles
- The roles associated with the instance profile.public AwsIamInstanceProfile withRoles(AwsIamInstanceProfileRole... roles)
The roles 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 roles associated with the instance profile.public AwsIamInstanceProfile withRoles(Collection<AwsIamInstanceProfileRole> roles)
The roles associated with the instance profile.
roles
- The roles associated with the instance profile.public String toString()
toString
in class Object
Object.toString()
public AwsIamInstanceProfile clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.