@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
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 ). |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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 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 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 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 Request<CreateCustomerGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateCustomerGatewayRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateCustomerGatewayRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.