public CustomerGateway withIpAddress(String ipAddress) {
        setIpAddress(ipAddress);
        return this;
    }
<p>
IPv4 address for the customer gateway device's outside interface. The address must be static. If
<code>OutsideIpAddressType</code> in your VPN connection options is set to <code>PrivateIpv4</code>, you can use
an RFC6598 or RFC1918 private IPv4 address. If <code>OutsideIpAddressType</code> is set to
<code>PublicIpv4</code>, you can use a public IPv4 address.
</p>

@param ipAddress
       IPv4 address for the customer gateway device's outside interface. The address must be static. If
       <code>OutsideIpAddressType</code> in your VPN connection options is set to <code>PrivateIpv4</code>, you
       can use an RFC6598 or RFC1918 private IPv4 address. If <code>OutsideIpAddressType</code> is set to
       <code>PublicIpv4</code>, you can use a public IPv4 address.
@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/CustomerGateway.java