@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() |
boolean |
equals(Object obj) |
Integer |
getBgpAsn()
For devices that support BGP, the customer gateway's BGP ASN.
|
String |
getCertificateArn()
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
String |
getDeviceName()
A name for the customer gateway device.
|
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.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the customer gateway.
|
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 |
setCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
void |
setDeviceName(String deviceName)
A name for the customer gateway device.
|
void |
setPublicIp(String publicIp)
The Internet-routable IP address for the customer gateway's outside interface.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
|
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.
|
CreateCustomerGatewayRequest |
withBgpAsn(Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
|
CreateCustomerGatewayRequest |
withCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
|
CreateCustomerGatewayRequest |
withDeviceName(String deviceName)
A name for the customer gateway device.
|
CreateCustomerGatewayRequest |
withPublicIp(String publicIp)
The Internet-routable IP address for the customer gateway's outside interface.
|
CreateCustomerGatewayRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
|
CreateCustomerGatewayRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the customer gateway.
|
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, copyBaseTo, 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 setCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
certificateArn
- The Amazon Resource Name (ARN) for the customer gateway certificate.public String getCertificateArn()
The Amazon Resource Name (ARN) for the customer gateway certificate.
public CreateCustomerGatewayRequest withCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) for the customer gateway certificate.
certificateArn
- The Amazon Resource Name (ARN) for the customer gateway certificate.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 List<TagSpecification> getTagSpecifications()
The tags to apply to the customer gateway.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
tagSpecifications
- The tags to apply to the customer gateway.public CreateCustomerGatewayRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the customer gateway.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the customer gateway.public CreateCustomerGatewayRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the customer gateway.
tagSpecifications
- The tags to apply to the customer gateway.public void setDeviceName(String deviceName)
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
deviceName
- A name for the customer gateway device.
Length Constraints: Up to 255 characters.
public String getDeviceName()
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
Length Constraints: Up to 255 characters.
public CreateCustomerGatewayRequest withDeviceName(String deviceName)
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
deviceName
- A name for the customer gateway device.
Length Constraints: Up to 255 characters.
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 © 2020. All rights reserved.