AWS SDK for C++  1.9.66
AWS SDK for C++
VpcClassicLink.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline bool GetClassicLinkEnabled() const{ return m_classicLinkEnabled; }
49 
53  inline bool ClassicLinkEnabledHasBeenSet() const { return m_classicLinkEnabledHasBeenSet; }
54 
58  inline void SetClassicLinkEnabled(bool value) { m_classicLinkEnabledHasBeenSet = true; m_classicLinkEnabled = value; }
59 
63  inline VpcClassicLink& WithClassicLinkEnabled(bool value) { SetClassicLinkEnabled(value); return *this;}
64 
65 
69  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
70 
74  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 
79  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
80 
84  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
85 
89  inline VpcClassicLink& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
90 
94  inline VpcClassicLink& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
95 
99  inline VpcClassicLink& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
100 
104  inline VpcClassicLink& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
105 
106 
110  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
111 
115  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
116 
120  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
121 
125  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
126 
130  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
131 
135  inline VpcClassicLink& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
136 
140  inline VpcClassicLink& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
141 
145  inline VpcClassicLink& WithVpcId(const char* value) { SetVpcId(value); return *this;}
146 
147  private:
148 
149  bool m_classicLinkEnabled;
150  bool m_classicLinkEnabledHasBeenSet;
151 
152  Aws::Vector<Tag> m_tags;
153  bool m_tagsHasBeenSet;
154 
155  Aws::String m_vpcId;
156  bool m_vpcIdHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace EC2
161 } // namespace Aws
Aws::EC2::Model::Tag
Definition: Tag.h:32
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h