public void setDnsName(String dnsName) {
        this.dnsName = dnsName;
    }
<p>
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
</p>
<ul>
<li>
<p>
TLS-enabled fleets: <code>&lt;unique identifier&gt;.&lt;region identifier&gt;.amazongamelift.com</code>.
</p>
</li>
<li>
<p>
Non-TLS-enabled fleets: <code>ec2-&lt;unique identifier&gt;.compute.amazonaws.com</code>. (See <a href=
"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#concepts-public-addresses"
>Amazon EC2 Instance IP Addressing</a>.)
</p>
</li>
</ul>
<p>
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP
address.
</p>

@param dnsName
       The DNS identifier assigned to the instance that is running the game session. Values have the following
       format:</p>
       <ul>
       <li>
       <p>
       TLS-enabled fleets: <code>&lt;unique identifier&gt;.&lt;region identifier&gt;.amazongamelift.com</code>.
       </p>
       </li>
       <li>
       <p>
       Non-TLS-enabled fleets: <code>ec2-&lt;unique identifier&gt;.compute.amazonaws.com</code>. (See <a href=
       "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#concepts-public-addresses"
       >Amazon EC2 Instance IP Addressing</a>.)
       </p>
       </li>
       </ul>
       <p>
       When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not
       the IP address.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/GameSessionConnectionInfo.java