AWS SDK for C++  0.14.3
AWS SDK for C++
RouteTableAssociation.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  RouteTableAssociation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetRouteTableAssociationId() const{ return m_routeTableAssociationId; }
51 
55  inline void SetRouteTableAssociationId(const Aws::String& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = value; }
56 
60  inline void SetRouteTableAssociationId(Aws::String&& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = value; }
61 
65  inline void SetRouteTableAssociationId(const char* value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId.assign(value); }
66 
70  inline RouteTableAssociation& WithRouteTableAssociationId(const Aws::String& value) { SetRouteTableAssociationId(value); return *this;}
71 
75  inline RouteTableAssociation& WithRouteTableAssociationId(Aws::String&& value) { SetRouteTableAssociationId(value); return *this;}
76 
80  inline RouteTableAssociation& WithRouteTableAssociationId(const char* value) { SetRouteTableAssociationId(value); return *this;}
81 
85  inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
86 
90  inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
91 
95  inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
96 
100  inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
101 
105  inline RouteTableAssociation& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
106 
110  inline RouteTableAssociation& WithRouteTableId(Aws::String&& value) { SetRouteTableId(value); return *this;}
111 
115  inline RouteTableAssociation& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
116 
121  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
122 
127  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
128 
133  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
134 
139  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
140 
145  inline RouteTableAssociation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
146 
151  inline RouteTableAssociation& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
152 
157  inline RouteTableAssociation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
158 
162  inline bool GetMain() const{ return m_main; }
163 
167  inline void SetMain(bool value) { m_mainHasBeenSet = true; m_main = value; }
168 
172  inline RouteTableAssociation& WithMain(bool value) { SetMain(value); return *this;}
173 
174  private:
175  Aws::String m_routeTableAssociationId;
176  bool m_routeTableAssociationIdHasBeenSet;
177  Aws::String m_routeTableId;
178  bool m_routeTableIdHasBeenSet;
179  Aws::String m_subnetId;
180  bool m_subnetIdHasBeenSet;
181  bool m_main;
182  bool m_mainHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace EC2
187 } // namespace Aws
void SetRouteTableAssociationId(const char *value)
RouteTableAssociation & WithRouteTableId(const char *value)
RouteTableAssociation & WithRouteTableId(Aws::String &&value)
void SetRouteTableId(const Aws::String &value)
RouteTableAssociation & WithRouteTableAssociationId(const Aws::String &value)
RouteTableAssociation & WithSubnetId(const Aws::String &value)
RouteTableAssociation & WithSubnetId(Aws::String &&value)
RouteTableAssociation & WithRouteTableAssociationId(const char *value)
void SetRouteTableAssociationId(const Aws::String &value)
void SetSubnetId(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetRouteTableAssociationId(Aws::String &&value)
const Aws::String & GetRouteTableId() const
RouteTableAssociation & WithSubnetId(const char *value)
RouteTableAssociation & WithRouteTableId(const Aws::String &value)
RouteTableAssociation & WithRouteTableAssociationId(Aws::String &&value)
const Aws::String & GetSubnetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetRouteTableAssociationId() const
RouteTableAssociation & WithMain(bool value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
JSON (JavaScript Object Notation).