AWS SDK for C++  0.12.9
AWS SDK for C++
ClassicLinkInstance.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>
21 #include <aws/ec2/model/Tag.h>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace EC2
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  ClassicLinkInstance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
54 
58  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
59 
63  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
64 
68  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
69 
73  inline ClassicLinkInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
74 
78  inline ClassicLinkInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
79 
83  inline ClassicLinkInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
84 
88  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
89 
93  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
94 
98  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
99 
103  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
104 
108  inline ClassicLinkInstance& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
109 
113  inline ClassicLinkInstance& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
114 
118  inline ClassicLinkInstance& WithVpcId(const char* value) { SetVpcId(value); return *this;}
119 
123  inline const Aws::Vector<GroupIdentifier>& GetGroups() const{ return m_groups; }
124 
128  inline void SetGroups(const Aws::Vector<GroupIdentifier>& value) { m_groupsHasBeenSet = true; m_groups = value; }
129 
133  inline void SetGroups(Aws::Vector<GroupIdentifier>&& value) { m_groupsHasBeenSet = true; m_groups = value; }
134 
138  inline ClassicLinkInstance& WithGroups(const Aws::Vector<GroupIdentifier>& value) { SetGroups(value); return *this;}
139 
143  inline ClassicLinkInstance& WithGroups(Aws::Vector<GroupIdentifier>&& value) { SetGroups(value); return *this;}
144 
148  inline ClassicLinkInstance& AddGroups(const GroupIdentifier& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
149 
153  inline ClassicLinkInstance& AddGroups(GroupIdentifier&& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
154 
158  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
159 
163  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
164 
168  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
169 
173  inline ClassicLinkInstance& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
174 
178  inline ClassicLinkInstance& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
179 
183  inline ClassicLinkInstance& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
184 
188  inline ClassicLinkInstance& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
189 
190  private:
191  Aws::String m_instanceId;
192  bool m_instanceIdHasBeenSet;
193  Aws::String m_vpcId;
194  bool m_vpcIdHasBeenSet;
196  bool m_groupsHasBeenSet;
197  Aws::Vector<Tag> m_tags;
198  bool m_tagsHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace EC2
203 } // 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).