public class CreateCustomerGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateCustomerGatewayRequest>
Contains the parameters for CreateCustomerGateway.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
bgpAsn
For devices that support BGP, the customer gateway's BGP ASN.
|
private java.lang.String |
publicIp
The Internet-routable IP address for the customer gateway's outside
interface.
|
private java.lang.String |
type
The type of VPN connection that this customer gateway supports (
ipsec.1 ). |
NOOP
Constructor and Description |
---|
CreateCustomerGatewayRequest()
Default constructor for CreateCustomerGatewayRequest object.
|
CreateCustomerGatewayRequest(GatewayType type,
java.lang.String publicIp,
java.lang.Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object.
|
CreateCustomerGatewayRequest(java.lang.String type,
java.lang.String publicIp,
java.lang.Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateCustomerGatewayRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getBgpAsn()
For devices that support BGP, the customer gateway's BGP ASN.
|
Request<CreateCustomerGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getPublicIp()
The Internet-routable IP address for the customer gateway's outside
interface.
|
java.lang.String |
getType()
The type of VPN connection that this customer gateway supports (
ipsec.1 ). |
int |
hashCode() |
void |
setBgpAsn(java.lang.Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
|
void |
setPublicIp(java.lang.String publicIp)
The Internet-routable IP address for the customer gateway's outside
interface.
|
void |
setType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1 ). |
void |
setType(java.lang.String type)
The type of VPN connection that this customer gateway supports (
ipsec.1 ). |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCustomerGatewayRequest |
withBgpAsn(java.lang.Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
|
CreateCustomerGatewayRequest |
withPublicIp(java.lang.String publicIp)
The Internet-routable IP address for the customer gateway's outside
interface.
|
CreateCustomerGatewayRequest |
withType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1 ). |
CreateCustomerGatewayRequest |
withType(java.lang.String type)
The type of VPN connection that this customer gateway supports (
ipsec.1 ). |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String type
The type of VPN connection that this customer gateway supports (
ipsec.1
).
private java.lang.String publicIp
The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
private java.lang.Integer bgpAsn
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
public CreateCustomerGatewayRequest()
public CreateCustomerGatewayRequest(java.lang.String type, java.lang.String publicIp, java.lang.Integer bgpAsn)
type
- The type of VPN connection that this customer gateway supports (
ipsec.1
).publicIp
- The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
public CreateCustomerGatewayRequest(GatewayType type, java.lang.String publicIp, java.lang.Integer bgpAsn)
type
- The type of VPN connection that this customer gateway supports (
ipsec.1
).publicIp
- The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
public void setType(java.lang.String type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).
type
- The type of VPN connection that this customer gateway supports (
ipsec.1
).GatewayType
public java.lang.String getType()
The type of VPN connection that this customer gateway supports (
ipsec.1
).
ipsec.1
).GatewayType
public CreateCustomerGatewayRequest withType(java.lang.String type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).
type
- The type of VPN connection that this customer gateway supports (
ipsec.1
).GatewayType
public void setType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).
type
- The type of VPN connection that this customer gateway supports (
ipsec.1
).GatewayType
public CreateCustomerGatewayRequest withType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).
type
- The type of VPN connection that this customer gateway supports (
ipsec.1
).GatewayType
public void setPublicIp(java.lang.String publicIp)
The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
publicIp
- The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.public java.lang.String getPublicIp()
The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
public CreateCustomerGatewayRequest withPublicIp(java.lang.String publicIp)
The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
publicIp
- The Internet-routable IP address for the customer gateway's
outside interface. The address must be static.public void setBgpAsn(java.lang.Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
public java.lang.Integer getBgpAsn()
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
Default: 65000
public CreateCustomerGatewayRequest withBgpAsn(java.lang.Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
public Request<CreateCustomerGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateCustomerGatewayRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateCustomerGatewayRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()