Class CreateCustomerGatewayRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateCustomerGatewayRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateCustomerGatewayRequest>
,Serializable
,Cloneable
public class CreateCustomerGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateCustomerGatewayRequest>
Contains the parameters for CreateCustomerGateway.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
).-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Constructor Detail
-
CreateCustomerGatewayRequest
public CreateCustomerGatewayRequest()
Default constructor for CreateCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
CreateCustomerGatewayRequest
public CreateCustomerGatewayRequest(String type, String publicIp, Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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
-
CreateCustomerGatewayRequest
public CreateCustomerGatewayRequest(GatewayType type, String publicIp, Integer bgpAsn)
Constructs a new CreateCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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
-
-
Method Detail
-
setType
public void setType(String type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).- Parameters:
type
- The type of VPN connection that this customer gateway supports (ipsec.1
).- See Also:
GatewayType
-
getType
public String getType()
The type of VPN connection that this customer gateway supports (
ipsec.1
).- Returns:
- The type of VPN connection that this customer gateway supports (
ipsec.1
). - See Also:
GatewayType
-
withType
public CreateCustomerGatewayRequest withType(String type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).- Parameters:
type
- The type of VPN connection that this customer gateway supports (ipsec.1
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GatewayType
-
setType
public void setType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).- Parameters:
type
- The type of VPN connection that this customer gateway supports (ipsec.1
).- See Also:
GatewayType
-
withType
public CreateCustomerGatewayRequest withType(GatewayType type)
The type of VPN connection that this customer gateway supports (
ipsec.1
).- Parameters:
type
- The type of VPN connection that this customer gateway supports (ipsec.1
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GatewayType
-
setPublicIp
public void setPublicIp(String publicIp)
The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
- Parameters:
publicIp
- The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
-
getPublicIp
public String getPublicIp()
The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
- Returns:
- The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
-
withPublicIp
public CreateCustomerGatewayRequest withPublicIp(String publicIp)
The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
- Parameters:
publicIp
- The Internet-routable IP address for the customer gateway's outside interface. The address must be static.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBgpAsn
public void setBgpAsn(Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
- Parameters:
bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.Default: 65000
-
getBgpAsn
public Integer getBgpAsn()
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
- Returns:
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
-
withBgpAsn
public CreateCustomerGatewayRequest withBgpAsn(Integer bgpAsn)
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
- Parameters:
bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.Default: 65000
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<CreateCustomerGatewayRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateCustomerGatewayRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateCustomerGatewayRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-