@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsIamInstanceProfileRole extends Object implements Serializable, Cloneable, StructuredPojo
Information about a role associated with an instance profile.
Constructor and Description |
---|
AwsIamInstanceProfileRole() |
Modifier and Type | Method and Description |
---|---|
AwsIamInstanceProfileRole |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the role.
|
String |
getAssumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
|
String |
getCreateDate()
Indicates when the role was created.
|
String |
getPath()
The path to the role.
|
String |
getRoleId()
The identifier of the role.
|
String |
getRoleName()
The name of the role.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the role.
|
void |
setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
|
void |
setCreateDate(String createDate)
Indicates when the role was created.
|
void |
setPath(String path)
The path to the role.
|
void |
setRoleId(String roleId)
The identifier of the role.
|
void |
setRoleName(String roleName)
The name of the role.
|
String |
toString()
Returns a string representation of this object.
|
AwsIamInstanceProfileRole |
withArn(String arn)
The ARN of the role.
|
AwsIamInstanceProfileRole |
withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
|
AwsIamInstanceProfileRole |
withCreateDate(String createDate)
Indicates when the role was created.
|
AwsIamInstanceProfileRole |
withPath(String path)
The path to the role.
|
AwsIamInstanceProfileRole |
withRoleId(String roleId)
The identifier of the role.
|
AwsIamInstanceProfileRole |
withRoleName(String roleName)
The name of the role.
|
public void setArn(String arn)
The ARN of the role.
arn
- The ARN of the role.public String getArn()
The ARN of the role.
public AwsIamInstanceProfileRole withArn(String arn)
The ARN of the role.
arn
- The ARN of the role.public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.public String getAssumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
public AwsIamInstanceProfileRole withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.public void setCreateDate(String createDate)
Indicates when the role 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 role 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 role 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 AwsIamInstanceProfileRole withCreateDate(String createDate)
Indicates when the role 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 role 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 setPath(String path)
The path to the role.
path
- The path to the role.public String getPath()
The path to the role.
public AwsIamInstanceProfileRole withPath(String path)
The path to the role.
path
- The path to the role.public void setRoleId(String roleId)
The identifier of the role.
roleId
- The identifier of the role.public String getRoleId()
The identifier of the role.
public AwsIamInstanceProfileRole withRoleId(String roleId)
The identifier of the role.
roleId
- The identifier of the role.public void setRoleName(String roleName)
The name of the role.
roleName
- The name of the role.public String getRoleName()
The name of the role.
public AwsIamInstanceProfileRole withRoleName(String roleName)
The name of the role.
roleName
- The name of the role.public String toString()
toString
in class Object
Object.toString()
public AwsIamInstanceProfileRole clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.