@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRoleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a successful GetRole request.
| Constructor and Description | 
|---|
GetRoleResult()  | 
| Modifier and Type | Method and Description | 
|---|---|
GetRoleResult | 
clone()  | 
boolean | 
equals(Object obj)  | 
Role | 
getRole()
 A structure containing details about the IAM role. 
 | 
int | 
hashCode()  | 
void | 
setRole(Role role)
 A structure containing details about the IAM role. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
GetRoleResult | 
withRole(Role role)
 A structure containing details about the IAM role. 
 | 
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setRole(Role role)
A structure containing details about the IAM role.
role - A structure containing details about the IAM role.public Role getRole()
A structure containing details about the IAM role.
public GetRoleResult withRole(Role role)
A structure containing details about the IAM role.
role - A structure containing details about the IAM role.public String toString()
toString in class ObjectObject.toString()public GetRoleResult clone()