public DescribedAccess withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
A session policy for your user so that you can use the same Identity and Access Management (IAM) role across
multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket. Variables that you
can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and
<code>${Transfer:HomeBucket}</code>.
</p>

@param policy
       A session policy for your user so that you can use the same Identity and Access Management (IAM) role
       across multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket.
       Variables that you can use inside this policy include <code>${Transfer:UserName}</code>,
       <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/DescribedAccess.java