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