public class CreateCustomerGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateCustomerGatewayRequest>
Contains the parameters for CreateCustomerGateway.
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()
Creates a shallow clone of this request.
|
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). |
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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).GatewayTypepublic String getType()
The type of VPN connection that this customer gateway supports (
ipsec.1).
ipsec.1).GatewayTypepublic 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).GatewayTypepublic 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).GatewayTypepublic 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).GatewayTypepublic 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 ObjectObject.toString()public CreateCustomerGatewayRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.