public java.util.Map<String, java.util.Map<String, String>> getCondition() {
        return condition;
    }
<p>
Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you
must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global
condition key.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html">IAM JSON
policy elements: Condition </a>.
</p>

@return Specifies a condition when the policy is in effect. If the principal of the policy is a service
        principal, you must provide two condition blocks, one with a SourceAccount global condition key and one
        with a SourceArn global condition key.</p>
        <p>
        For more information, see <a
        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html">IAM
        JSON policy elements: Condition </a>.
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/CreateResourcePolicyStatementRequest.java