public CreateNatGatewayRequest withConnectivityType(ConnectivityType connectivityType) {
        this.connectivityType = connectivityType.toString();
        return this;
    }
<p>
Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.
</p>

@param connectivityType
       Indicates whether the NAT gateway supports public or private connectivity. The default is public
       connectivity.
@return Returns a reference to this object so that method calls can be chained together.
@see ConnectivityType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateNatGatewayRequest.java