/*
 * Copyright 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.
 */
/*
 * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model.
 */
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.EC2.Model
{
    /// 
    /// Container for the parameters to the CreateRoute operation.
    /// Creates a route in a route table within a VPC.
    /// 
    ///  
    /// 
    /// You must specify either a destination CIDR block or a prefix list ID. You must also
    /// specify exactly one of the resources from the parameter list.
    /// 
    ///  
    /// 
    /// When determining how to route traffic, we use the route with the most specific match.
    /// For example, traffic is destined for the IPv4 address 192.0.2.3, and
    /// the route table includes the following two IPv4 routes:
    /// 
    ///   -  
    /// 
    ///  
192.0.2.0/24 (goes to some target A)
    /// 
    ///    -  
    /// 
    ///  
192.0.2.0/28 (goes to some target B)
    /// 
    ///    
 
    /// 
    /// Both routes apply to the traffic destined for 192.0.2.3. However, the
    /// second route in the list covers a smaller number of IP addresses and is therefore
    /// more specific, so we use that route to determine where to target the traffic.
    /// 
    ///  
    /// 
    /// For more information about route tables, see Route
    /// tables in the Amazon VPC User Guide.
    /// 
    /// 
    public partial class CreateRouteRequest : AmazonEC2Request
    {
        private string _carrierGatewayId;
        private string _coreNetworkArn;
        private string _destinationCidrBlock;
        private string _destinationIpv6CidrBlock;
        private string _destinationPrefixListId;
        private string _egressOnlyInternetGatewayId;
        private string _gatewayId;
        private string _instanceId;
        private string _localGatewayId;
        private string _natGatewayId;
        private string _networkInterfaceId;
        private string _routeTableId;
        private string _transitGatewayId;
        private string _vpcEndpointId;
        private string _vpcPeeringConnectionId;
        /// 
        /// Gets and sets the property CarrierGatewayId. 
        /// 
        /// The ID of the carrier gateway.
        /// 
        ///  
        /// 
        /// You can only use this option when the VPC contains a subnet which is associated with
        /// a Wavelength Zone.
        /// 
        /// 
        public string CarrierGatewayId
        {
            get { return this._carrierGatewayId; }
            set { this._carrierGatewayId = value; }
        }
        // Check to see if CarrierGatewayId property is set
        internal bool IsSetCarrierGatewayId()
        {
            return this._carrierGatewayId != null;
        }
        /// 
        /// Gets and sets the property CoreNetworkArn. 
        /// 
        /// The Amazon Resource Name (ARN) of the core network.
        /// 
        /// 
        public string CoreNetworkArn
        {
            get { return this._coreNetworkArn; }
            set { this._coreNetworkArn = value; }
        }
        // Check to see if CoreNetworkArn property is set
        internal bool IsSetCoreNetworkArn()
        {
            return this._coreNetworkArn != null;
        }
        /// 
        /// Gets and sets the property DestinationCidrBlock. 
        /// 
        /// The IPv4 CIDR address block used for the destination match. Routing decisions are
        /// based on the most specific match. We modify the specified CIDR block to its canonical
        /// form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
        /// 
        /// 
        public string DestinationCidrBlock
        {
            get { return this._destinationCidrBlock; }
            set { this._destinationCidrBlock = value; }
        }
        // Check to see if DestinationCidrBlock property is set
        internal bool IsSetDestinationCidrBlock()
        {
            return this._destinationCidrBlock != null;
        }
        /// 
        /// Gets and sets the property DestinationIpv6CidrBlock. 
        /// 
        /// The IPv6 CIDR block used for the destination match. Routing decisions are based on
        /// the most specific match.
        /// 
        /// 
        public string DestinationIpv6CidrBlock
        {
            get { return this._destinationIpv6CidrBlock; }
            set { this._destinationIpv6CidrBlock = value; }
        }
        // Check to see if DestinationIpv6CidrBlock property is set
        internal bool IsSetDestinationIpv6CidrBlock()
        {
            return this._destinationIpv6CidrBlock != null;
        }
        /// 
        /// Gets and sets the property DestinationPrefixListId. 
        /// 
        /// The ID of a prefix list used for the destination match.
        /// 
        /// 
        public string DestinationPrefixListId
        {
            get { return this._destinationPrefixListId; }
            set { this._destinationPrefixListId = value; }
        }
        // Check to see if DestinationPrefixListId property is set
        internal bool IsSetDestinationPrefixListId()
        {
            return this._destinationPrefixListId != null;
        }
        /// 
        /// Gets and sets the property EgressOnlyInternetGatewayId. 
        /// 
        /// [IPv6 traffic only] The ID of an egress-only internet gateway.
        /// 
        /// 
        public string EgressOnlyInternetGatewayId
        {
            get { return this._egressOnlyInternetGatewayId; }
            set { this._egressOnlyInternetGatewayId = value; }
        }
        // Check to see if EgressOnlyInternetGatewayId property is set
        internal bool IsSetEgressOnlyInternetGatewayId()
        {
            return this._egressOnlyInternetGatewayId != null;
        }
        /// 
        /// Gets and sets the property GatewayId. 
        /// 
        /// The ID of an internet gateway or virtual private gateway attached to your VPC.
        /// 
        /// 
        public string GatewayId
        {
            get { return this._gatewayId; }
            set { this._gatewayId = value; }
        }
        // Check to see if GatewayId property is set
        internal bool IsSetGatewayId()
        {
            return this._gatewayId != null;
        }
        /// 
        /// Gets and sets the property InstanceId. 
        /// 
        /// The ID of a NAT instance in your VPC. The operation fails if you specify an instance
        /// ID unless exactly one network interface is attached.
        /// 
        /// 
        public string InstanceId
        {
            get { return this._instanceId; }
            set { this._instanceId = value; }
        }
        // Check to see if InstanceId property is set
        internal bool IsSetInstanceId()
        {
            return this._instanceId != null;
        }
        /// 
        /// Gets and sets the property LocalGatewayId. 
        /// 
        /// The ID of the local gateway.
        /// 
        /// 
        public string LocalGatewayId
        {
            get { return this._localGatewayId; }
            set { this._localGatewayId = value; }
        }
        // Check to see if LocalGatewayId property is set
        internal bool IsSetLocalGatewayId()
        {
            return this._localGatewayId != null;
        }
        /// 
        /// Gets and sets the property NatGatewayId. 
        /// 
        /// [IPv4 traffic only] The ID of a NAT gateway.
        /// 
        /// 
        public string NatGatewayId
        {
            get { return this._natGatewayId; }
            set { this._natGatewayId = value; }
        }
        // Check to see if NatGatewayId property is set
        internal bool IsSetNatGatewayId()
        {
            return this._natGatewayId != null;
        }
        /// 
        /// Gets and sets the property NetworkInterfaceId. 
        /// 
        /// The ID of a network interface.
        /// 
        /// 
        public string NetworkInterfaceId
        {
            get { return this._networkInterfaceId; }
            set { this._networkInterfaceId = value; }
        }
        // Check to see if NetworkInterfaceId property is set
        internal bool IsSetNetworkInterfaceId()
        {
            return this._networkInterfaceId != null;
        }
        /// 
        /// Gets and sets the property RouteTableId. 
        /// 
        /// The ID of the route table for the route.
        /// 
        /// 
        [AWSProperty(Required=true)]
        public string RouteTableId
        {
            get { return this._routeTableId; }
            set { this._routeTableId = value; }
        }
        // Check to see if RouteTableId property is set
        internal bool IsSetRouteTableId()
        {
            return this._routeTableId != null;
        }
        /// 
        /// Gets and sets the property TransitGatewayId. 
        /// 
        /// The ID of a transit gateway.
        /// 
        /// 
        public string TransitGatewayId
        {
            get { return this._transitGatewayId; }
            set { this._transitGatewayId = value; }
        }
        // Check to see if TransitGatewayId property is set
        internal bool IsSetTransitGatewayId()
        {
            return this._transitGatewayId != null;
        }
        /// 
        /// Gets and sets the property VpcEndpointId. 
        /// 
        /// The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.
        /// 
        /// 
        public string VpcEndpointId
        {
            get { return this._vpcEndpointId; }
            set { this._vpcEndpointId = value; }
        }
        // Check to see if VpcEndpointId property is set
        internal bool IsSetVpcEndpointId()
        {
            return this._vpcEndpointId != null;
        }
        /// 
        /// Gets and sets the property VpcPeeringConnectionId. 
        /// 
        /// The ID of a VPC peering connection.
        /// 
        /// 
        public string VpcPeeringConnectionId
        {
            get { return this._vpcPeeringConnectionId; }
            set { this._vpcPeeringConnectionId = value; }
        }
        // Check to see if VpcPeeringConnectionId property is set
        internal bool IsSetVpcPeeringConnectionId()
        {
            return this._vpcPeeringConnectionId != null;
        }
    }
}