public GetRoleResult withRole(Role role) {
        setRole(role);
        return this;
    }
<p>
A structure containing details about the IAM role.
</p>

@param role
       A structure containing details about the IAM role.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/GetRoleResult.java