public CreatePolicyResult withResource(EntityIdentifier resource) {
        setResource(resource);
        return this;
    }
<p>
The resource specified in the new policy's scope. This response element isn't present when the
<code>resource</code> isn't specified in the policy content.
</p>

@param resource
       The resource specified in the new policy's scope. This response element isn't present when the
       <code>resource</code> isn't specified in the policy content.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-verifiedpermissions/src/main/java/com/amazonaws/services/verifiedpermissions/model/CreatePolicyResult.java