/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.CreateClientVpnRouteRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateClientVpnRouteRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* The ID of the Client VPN endpoint to which to add the route.
*
* The IPv4 address range, in CIDR notation, of the route destination. For example:
*
* To add a route for Internet access, enter
* To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
*
* To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's IPv4 CIDR
* range
*
* To add a route for the local network, enter the client CIDR range
*
* The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target
* network of the Client VPN endpoint.
*
* Alternatively, if you're adding a route for the local network, specify
* A brief description of the route.
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
* information, see How to ensure
* idempotency.
*
* The ID of the Client VPN endpoint to which to add the route.
*
* The ID of the Client VPN endpoint to which to add the route.
*
* The ID of the Client VPN endpoint to which to add the route.
*
* The IPv4 address range, in CIDR notation, of the route destination. For example:
*
* To add a route for Internet access, enter
* To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
*
* To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's IPv4 CIDR
* range
*
* To add a route for the local network, enter the client CIDR range
*
*
*/
private String destinationCidrBlock;
/**
* 0.0.0.0/0
* local
.
*
*
*
* @param destinationCidrBlock
* The IPv4 address range, in CIDR notation, of the route destination. For example:0.0.0.0/0
*
* To add a route for Internet access, enter 0.0.0.0/0
*
* To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range *
** To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's * IPv4 CIDR range *
** To add a route for the local network, enter the client CIDR range *
** The IPv4 address range, in CIDR notation, of the route destination. For example: *
*
* To add a route for Internet access, enter 0.0.0.0/0
*
* To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range *
** To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's IPv4 CIDR * range *
** To add a route for the local network, enter the client CIDR range *
*
* To add a route for Internet access, enter 0.0.0.0/0
*
* To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range *
** To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's * IPv4 CIDR range *
** To add a route for the local network, enter the client CIDR range *
** The IPv4 address range, in CIDR notation, of the route destination. For example: *
*
* To add a route for Internet access, enter 0.0.0.0/0
*
* To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range *
** To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's IPv4 CIDR * range *
** To add a route for the local network, enter the client CIDR range *
*
* To add a route for Internet access, enter 0.0.0.0/0
*
* To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range *
** To add a route for an on-premises network, enter the Amazon Web Services Site-to-Site VPN connection's * IPv4 CIDR range *
** To add a route for the local network, enter the client CIDR range *
** The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target * network of the Client VPN endpoint. *
*
* Alternatively, if you're adding a route for the local network, specify local
.
*
* Alternatively, if you're adding a route for the local network, specify local
.
*/
public void setTargetVpcSubnetId(String targetVpcSubnetId) {
this.targetVpcSubnetId = targetVpcSubnetId;
}
/**
*
* The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target * network of the Client VPN endpoint. *
*
* Alternatively, if you're adding a route for the local network, specify local
.
*
* Alternatively, if you're adding a route for the local network, specify local
.
*/
public String getTargetVpcSubnetId() {
return this.targetVpcSubnetId;
}
/**
*
* The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target * network of the Client VPN endpoint. *
*
* Alternatively, if you're adding a route for the local network, specify local
.
*
* Alternatively, if you're adding a route for the local network, specify local
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateClientVpnRouteRequest withTargetVpcSubnetId(String targetVpcSubnetId) {
setTargetVpcSubnetId(targetVpcSubnetId);
return this;
}
/**
*
* A brief description of the route. *
* * @param description * A brief description of the route. */ public void setDescription(String description) { this.description = description; } /** ** A brief description of the route. *
* * @return A brief description of the route. */ public String getDescription() { return this.description; } /** ** A brief description of the route. *
* * @param description * A brief description of the route. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateClientVpnRouteRequest withDescription(String description) { setDescription(description); return this; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. *
* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. *
* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. */ public String getClientToken() { return this.clientToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. *
* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateClientVpnRouteRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request