public PutContainerPolicyRequest withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
The contents of the policy, which includes the following:
</p>
<ul>
<li>
<p>
One <code>Version</code> tag
</p>
</li>
<li>
<p>
One <code>Statement</code> tag that contains the standard tags for the policy.
</p>
</li>
</ul>

@param policy
       The contents of the policy, which includes the following: </p>
       <ul>
       <li>
       <p>
       One <code>Version</code> tag
       </p>
       </li>
       <li>
       <p>
       One <code>Statement</code> tag that contains the standard tags for the policy.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediastore/src/main/java/com/amazonaws/services/mediastore/model/PutContainerPolicyRequest.java