public GetResourcePolicyResult withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
An IAM policy.
</p>

@param policy
       An IAM policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/GetResourcePolicyResult.java