AWS SDK for C++  1.9.109
AWS SDK for C++
ClassicLinkInstance.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
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 const Aws::Vector<GroupIdentifier>& GetGroups() const{ return m_groups; }
49 
53  inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
54 
58  inline void SetGroups(const Aws::Vector<GroupIdentifier>& value) { m_groupsHasBeenSet = true; m_groups = value; }
59 
63  inline void SetGroups(Aws::Vector<GroupIdentifier>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
64 
68  inline ClassicLinkInstance& WithGroups(const Aws::Vector<GroupIdentifier>& value) { SetGroups(value); return *this;}
69 
73  inline ClassicLinkInstance& WithGroups(Aws::Vector<GroupIdentifier>&& value) { SetGroups(std::move(value)); return *this;}
74 
78  inline ClassicLinkInstance& AddGroups(const GroupIdentifier& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
79 
83  inline ClassicLinkInstance& AddGroups(GroupIdentifier&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
84 
85 
89  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
90 
94  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
95 
99  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
100 
104  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
105 
109  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
110 
114  inline ClassicLinkInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
115 
119  inline ClassicLinkInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
120 
124  inline ClassicLinkInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
125 
126 
130  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
131 
135  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 
140  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 
145  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 
150  inline ClassicLinkInstance& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
151 
155  inline ClassicLinkInstance& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 
160  inline ClassicLinkInstance& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
161 
165  inline ClassicLinkInstance& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
166 
167 
171  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
172 
176  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
177 
181  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
182 
186  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
187 
191  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
192 
196  inline ClassicLinkInstance& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
197 
201  inline ClassicLinkInstance& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
202 
206  inline ClassicLinkInstance& WithVpcId(const char* value) { SetVpcId(value); return *this;}
207 
208  private:
209 
211  bool m_groupsHasBeenSet;
212 
213  Aws::String m_instanceId;
214  bool m_instanceIdHasBeenSet;
215 
216  Aws::Vector<Tag> m_tags;
217  bool m_tagsHasBeenSet;
218 
219  Aws::String m_vpcId;
220  bool m_vpcIdHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace EC2
225 } // namespace Aws
Aws::EC2::Model::Tag
Definition: Tag.h:32
GroupIdentifier.h
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::EC2::Model::GroupIdentifier
Definition: GroupIdentifier.h:32
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