public void setModelPolicy(String modelPolicy) {
        this.modelPolicy = modelPolicy;
    }
<p>
The JSON resource-based policy to attach to your custom entity recognizer model. You can use this policy to allow
another Amazon Web Services account to import your custom model.
</p>
<p>
Provide your JSON as a UTF-8 encoded string without line breaks. To provide valid JSON for your policy, enclose
the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you
must escape the double quotes that are inside the policy:
</p>
<p>
<code>"{\"attribute\": \"value\", \"attribute\": [\"value\"]}"</code>
</p>
<p>
To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON
names and values:
</p>
<p>
<code>'{"attribute": "value", "attribute": ["value"]}'</code>
</p>

@param modelPolicy
       The JSON resource-based policy to attach to your custom entity recognizer model. You can use this policy
       to allow another Amazon Web Services account to import your custom model.</p>
       <p>
       Provide your JSON as a UTF-8 encoded string without line breaks. To provide valid JSON for your policy,
       enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double
       quotes, then you must escape the double quotes that are inside the policy:
       </p>
       <p>
       <code>"{\"attribute\": \"value\", \"attribute\": [\"value\"]}"</code>
       </p>
       <p>
       To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the
       JSON names and values:
       </p>
       <p>
       <code>'{"attribute": "value", "attribute": ["value"]}'</code>
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEntityRecognizerRequest.java