@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RoleInfo extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the role that is assigned to the user.
Constructor and Description |
---|
RoleInfo() |
Modifier and Type | Method and Description |
---|---|
RoleInfo |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The identifier of the AWS account assigned to the user.
|
String |
getRoleName()
The friendly name of the role that is assigned to the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The identifier of the AWS account assigned to the user.
|
void |
setRoleName(String roleName)
The friendly name of the role that is assigned to the user.
|
String |
toString()
Returns a string representation of this object.
|
RoleInfo |
withAccountId(String accountId)
The identifier of the AWS account assigned to the user.
|
RoleInfo |
withRoleName(String roleName)
The friendly name of the role that is assigned to the user.
|
public void setRoleName(String roleName)
The friendly name of the role that is assigned to the user.
roleName
- The friendly name of the role that is assigned to the user.public String getRoleName()
The friendly name of the role that is assigned to the user.
public RoleInfo withRoleName(String roleName)
The friendly name of the role that is assigned to the user.
roleName
- The friendly name of the role that is assigned to the user.public void setAccountId(String accountId)
The identifier of the AWS account assigned to the user.
accountId
- The identifier of the AWS account assigned to the user.public String getAccountId()
The identifier of the AWS account assigned to the user.
public RoleInfo withAccountId(String accountId)
The identifier of the AWS account assigned to the user.
accountId
- The identifier of the AWS account assigned to the user.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.