/* * 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 { /// /// Describes an association between a route table and a subnet or gateway. /// public partial class RouteTableAssociation { private RouteTableAssociationState _associationState; private string _gatewayId; private bool? _main; private string _routeTableAssociationId; private string _routeTableId; private string _subnetId; /// /// Gets and sets the property AssociationState. /// /// The state of the association. /// /// public RouteTableAssociationState AssociationState { get { return this._associationState; } set { this._associationState = value; } } // Check to see if AssociationState property is set internal bool IsSetAssociationState() { return this._associationState != null; } /// /// Gets and sets the property GatewayId. /// /// The ID of the internet gateway or virtual private gateway. /// /// 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 Main. /// /// Indicates whether this is the main route table. /// /// public bool Main { get { return this._main.GetValueOrDefault(); } set { this._main = value; } } // Check to see if Main property is set internal bool IsSetMain() { return this._main.HasValue; } /// /// Gets and sets the property RouteTableAssociationId. /// /// The ID of the association. /// /// public string RouteTableAssociationId { get { return this._routeTableAssociationId; } set { this._routeTableAssociationId = value; } } // Check to see if RouteTableAssociationId property is set internal bool IsSetRouteTableAssociationId() { return this._routeTableAssociationId != null; } /// /// Gets and sets the property RouteTableId. /// /// The ID of the route table. /// /// 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 SubnetId. /// /// The ID of the subnet. A subnet ID is not returned for an implicit association. /// /// public string SubnetId { get { return this._subnetId; } set { this._subnetId = value; } } // Check to see if SubnetId property is set internal bool IsSetSubnetId() { return this._subnetId != null; } } }