public ProfileDetail withSessionPolicy(String sessionPolicy) {
        setSessionPolicy(sessionPolicy);
        return this;
    }
<p>
A session policy that applies to the trust boundary of the vended session credentials.
</p>

@param sessionPolicy
       A session policy that applies to the trust boundary of the vended session credentials.
@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