public void setDnsPolicy(String dnsPolicy) {
        this.dnsPolicy = dnsPolicy;
    }
<p>
The DNS policy for the pod. The default value is <code>ClusterFirst</code>. If the <code>hostNetwork</code>
parameter is not specified, the default is <code>ClusterFirstWithHostNet</code>. <code>ClusterFirst</code>
indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the
upstream nameserver inherited from the node. If no value was specified for <code>dnsPolicy</code> in the <a
href="https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html"
>RegisterJobDefinition</a> API operation, then no value will be returned for <code>dnsPolicy</code> by either of
<a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html">
DescribeJobDefinitions</a> or <a
href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html">DescribeJobs</a> API
operations. The pod spec setting will contain either <code>ClusterFirst</code> or
<code>ClusterFirstWithHostNet</code>, depending on the value of the <code>hostNetwork</code> parameter. For more
information, see <a
href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy">Pod's DNS
policy</a> in the <i>Kubernetes documentation</i>.
</p>
<p>
Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code>
</p>

@param dnsPolicy
       The DNS policy for the pod. The default value is <code>ClusterFirst</code>. If the
       <code>hostNetwork</code> parameter is not specified, the default is <code>ClusterFirstWithHostNet</code>.
       <code>ClusterFirst</code> indicates that any DNS query that does not match the configured cluster domain
       suffix is forwarded to the upstream nameserver inherited from the node. If no value was specified for
       <code>dnsPolicy</code> in the <a
       href="https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html"
       >RegisterJobDefinition</a> API operation, then no value will be returned for <code>dnsPolicy</code> by
       either of <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html">
       DescribeJobDefinitions</a> or <a
       href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html">DescribeJobs</a> API
       operations. The pod spec setting will contain either <code>ClusterFirst</code> or
       <code>ClusterFirstWithHostNet</code>, depending on the value of the <code>hostNetwork</code> parameter.
       For more information, see <a
       href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy">Pod's DNS
       policy</a> in the <i>Kubernetes documentation</i>.</p>
       <p>
       Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code>
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/EksPodPropertiesDetail.java