public CreateCustomerGatewayRequest withType(GatewayType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of VPN connection that this customer gateway supports (<code>ipsec.1</code>).
</p>

@param type
       The type of VPN connection that this customer gateway supports (<code>ipsec.1</code>).
@return Returns a reference to this object so that method calls can be chained together.
@see GatewayType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateCustomerGatewayRequest.java