@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.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
createDate
- Indicates when the instance profile was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public String getCreateDate()
Indicates when the instance profile was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public AwsIamInstanceProfile withCreateDate(String createDate)
Indicates when the instance profile was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
createDate
- Indicates when the instance profile was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
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.