public ResourcePolicy withPolicyName(String policyName) {
        setPolicyName(policyName);
        return this;
    }
<p>
The name of the resource policy.
</p>

@param policyName
       The name of the resource policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/ResourcePolicy.java