public ProfileDetail withAcceptRoleSessionName(Boolean acceptRoleSessionName) {
        setAcceptRoleSessionName(acceptRoleSessionName);
        return this;
    }
<p>
Used to determine if a custom role session name will be accepted in a temporary credential request.
</p>

@param acceptRoleSessionName
       Used to determine if a custom role session name will be accepted in a temporary credential request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iamrolesanywhere/src/main/java/com/amazonaws/services/iamrolesanywhere/model/ProfileDetail.java