AWS SDK for C++  0.12.9
AWS SDK for C++
VpcClassicLink.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>
20 #include <aws/ec2/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  VpcClassicLink& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
53 
57  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
58 
62  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
63 
67  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
68 
72  inline VpcClassicLink& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
73 
77  inline VpcClassicLink& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
78 
82  inline VpcClassicLink& WithVpcId(const char* value) { SetVpcId(value); return *this;}
83 
87  inline bool GetClassicLinkEnabled() const{ return m_classicLinkEnabled; }
88 
92  inline void SetClassicLinkEnabled(bool value) { m_classicLinkEnabledHasBeenSet = true; m_classicLinkEnabled = value; }
93 
97  inline VpcClassicLink& WithClassicLinkEnabled(bool value) { SetClassicLinkEnabled(value); return *this;}
98 
102  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
103 
107  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 
112  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
113 
117  inline VpcClassicLink& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118 
122  inline VpcClassicLink& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
123 
127  inline VpcClassicLink& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
128 
132  inline VpcClassicLink& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
133 
134  private:
135  Aws::String m_vpcId;
136  bool m_vpcIdHasBeenSet;
137  bool m_classicLinkEnabled;
138  bool m_classicLinkEnabledHasBeenSet;
139  Aws::Vector<Tag> m_tags;
140  bool m_tagsHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace EC2
145 } // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).