public Subnet withMapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch) {
        setMapPublicIpOnLaunch(mapPublicIpOnLaunch);
        return this;
    }
<p>
Indicates whether instances launched in this subnet receive a public IPv4 address.
</p>
<p>
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with
running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the
<a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.
</p>

@param mapPublicIpOnLaunch
       Indicates whether instances launched in this subnet receive a public IPv4 address.</p>
       <p>
       Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with
       running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab
       on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/Subnet.java