AWS SDK for C++  1.9.132
AWS SDK for C++
TrunkInterfaceAssociation.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 
38  {
39  public:
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 
47 
51  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
52 
56  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
57 
61  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
62 
66  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
67 
71  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
72 
76  inline TrunkInterfaceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
77 
81  inline TrunkInterfaceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
82 
86  inline TrunkInterfaceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
87 
88 
92  inline const Aws::String& GetBranchInterfaceId() const{ return m_branchInterfaceId; }
93 
97  inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; }
98 
102  inline void SetBranchInterfaceId(const Aws::String& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = value; }
103 
107  inline void SetBranchInterfaceId(Aws::String&& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::move(value); }
108 
112  inline void SetBranchInterfaceId(const char* value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId.assign(value); }
113 
117  inline TrunkInterfaceAssociation& WithBranchInterfaceId(const Aws::String& value) { SetBranchInterfaceId(value); return *this;}
118 
122  inline TrunkInterfaceAssociation& WithBranchInterfaceId(Aws::String&& value) { SetBranchInterfaceId(std::move(value)); return *this;}
123 
127  inline TrunkInterfaceAssociation& WithBranchInterfaceId(const char* value) { SetBranchInterfaceId(value); return *this;}
128 
129 
133  inline const Aws::String& GetTrunkInterfaceId() const{ return m_trunkInterfaceId; }
134 
138  inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
139 
143  inline void SetTrunkInterfaceId(const Aws::String& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = value; }
144 
148  inline void SetTrunkInterfaceId(Aws::String&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::move(value); }
149 
153  inline void SetTrunkInterfaceId(const char* value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId.assign(value); }
154 
158  inline TrunkInterfaceAssociation& WithTrunkInterfaceId(const Aws::String& value) { SetTrunkInterfaceId(value); return *this;}
159 
163  inline TrunkInterfaceAssociation& WithTrunkInterfaceId(Aws::String&& value) { SetTrunkInterfaceId(std::move(value)); return *this;}
164 
168  inline TrunkInterfaceAssociation& WithTrunkInterfaceId(const char* value) { SetTrunkInterfaceId(value); return *this;}
169 
170 
175  inline const InterfaceProtocolType& GetInterfaceProtocol() const{ return m_interfaceProtocol; }
176 
181  inline bool InterfaceProtocolHasBeenSet() const { return m_interfaceProtocolHasBeenSet; }
182 
187  inline void SetInterfaceProtocol(const InterfaceProtocolType& value) { m_interfaceProtocolHasBeenSet = true; m_interfaceProtocol = value; }
188 
193  inline void SetInterfaceProtocol(InterfaceProtocolType&& value) { m_interfaceProtocolHasBeenSet = true; m_interfaceProtocol = std::move(value); }
194 
199  inline TrunkInterfaceAssociation& WithInterfaceProtocol(const InterfaceProtocolType& value) { SetInterfaceProtocol(value); return *this;}
200 
205  inline TrunkInterfaceAssociation& WithInterfaceProtocol(InterfaceProtocolType&& value) { SetInterfaceProtocol(std::move(value)); return *this;}
206 
207 
211  inline int GetVlanId() const{ return m_vlanId; }
212 
216  inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
217 
221  inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; }
222 
226  inline TrunkInterfaceAssociation& WithVlanId(int value) { SetVlanId(value); return *this;}
227 
228 
232  inline int GetGreKey() const{ return m_greKey; }
233 
237  inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
238 
242  inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; }
243 
247  inline TrunkInterfaceAssociation& WithGreKey(int value) { SetGreKey(value); return *this;}
248 
249 
253  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
254 
258  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
259 
263  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
264 
268  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
269 
273  inline TrunkInterfaceAssociation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
274 
278  inline TrunkInterfaceAssociation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
279 
283  inline TrunkInterfaceAssociation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
284 
288  inline TrunkInterfaceAssociation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
289 
290  private:
291 
292  Aws::String m_associationId;
293  bool m_associationIdHasBeenSet;
294 
295  Aws::String m_branchInterfaceId;
296  bool m_branchInterfaceIdHasBeenSet;
297 
298  Aws::String m_trunkInterfaceId;
299  bool m_trunkInterfaceIdHasBeenSet;
300 
301  InterfaceProtocolType m_interfaceProtocol;
302  bool m_interfaceProtocolHasBeenSet;
303 
304  int m_vlanId;
305  bool m_vlanIdHasBeenSet;
306 
307  int m_greKey;
308  bool m_greKeyHasBeenSet;
309 
310  Aws::Vector<Tag> m_tags;
311  bool m_tagsHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace EC2
316 } // namespace Aws
Aws::EC2::Model::TrunkInterfaceAssociation::WithAssociationId
TrunkInterfaceAssociation & WithAssociationId(const char *value)
Definition: TrunkInterfaceAssociation.h:86
Aws::EC2::Model::TrunkInterfaceAssociation::WithInterfaceProtocol
TrunkInterfaceAssociation & WithInterfaceProtocol(const InterfaceProtocolType &value)
Definition: TrunkInterfaceAssociation.h:199
Aws::EC2::Model::TrunkInterfaceAssociation::GetBranchInterfaceId
const Aws::String & GetBranchInterfaceId() const
Definition: TrunkInterfaceAssociation.h:92
Aws::EC2::Model::TrunkInterfaceAssociation::GetTrunkInterfaceId
const Aws::String & GetTrunkInterfaceId() const
Definition: TrunkInterfaceAssociation.h:133
Aws::EC2::Model::TrunkInterfaceAssociation::WithGreKey
TrunkInterfaceAssociation & WithGreKey(int value)
Definition: TrunkInterfaceAssociation.h:247
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TrunkInterfaceAssociation::SetBranchInterfaceId
void SetBranchInterfaceId(Aws::String &&value)
Definition: TrunkInterfaceAssociation.h:107
Aws::EC2::Model::TrunkInterfaceAssociation::SetInterfaceProtocol
void SetInterfaceProtocol(InterfaceProtocolType &&value)
Definition: TrunkInterfaceAssociation.h:193
Aws::EC2::Model::TrunkInterfaceAssociation::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: TrunkInterfaceAssociation.h:66
Aws::EC2::Model::TrunkInterfaceAssociation::AddTags
TrunkInterfaceAssociation & AddTags(Tag &&value)
Definition: TrunkInterfaceAssociation.h:288
Aws::EC2::Model::TrunkInterfaceAssociation::operator=
TrunkInterfaceAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TrunkInterfaceAssociation::SetTrunkInterfaceId
void SetTrunkInterfaceId(const char *value)
Definition: TrunkInterfaceAssociation.h:153
Aws::EC2::Model::TrunkInterfaceAssociation::GetVlanId
int GetVlanId() const
Definition: TrunkInterfaceAssociation.h:211
Aws::EC2::Model::TrunkInterfaceAssociation::WithTrunkInterfaceId
TrunkInterfaceAssociation & WithTrunkInterfaceId(Aws::String &&value)
Definition: TrunkInterfaceAssociation.h:163
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::TrunkInterfaceAssociation::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TrunkInterfaceAssociation.h:253
Aws::EC2::Model::TrunkInterfaceAssociation::BranchInterfaceIdHasBeenSet
bool BranchInterfaceIdHasBeenSet() const
Definition: TrunkInterfaceAssociation.h:97
AWSVector.h
Tag.h
Aws::EC2::Model::TrunkInterfaceAssociation::WithTags
TrunkInterfaceAssociation & WithTags(const Aws::Vector< Tag > &value)
Definition: TrunkInterfaceAssociation.h:273
Aws::EC2::Model::TrunkInterfaceAssociation::TrunkInterfaceAssociation
TrunkInterfaceAssociation()
Aws::EC2::Model::TrunkInterfaceAssociation::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: TrunkInterfaceAssociation.h:56
Aws::EC2::Model::TrunkInterfaceAssociation::VlanIdHasBeenSet
bool VlanIdHasBeenSet() const
Definition: TrunkInterfaceAssociation.h:216
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TrunkInterfaceAssociation::WithTrunkInterfaceId
TrunkInterfaceAssociation & WithTrunkInterfaceId(const char *value)
Definition: TrunkInterfaceAssociation.h:168
Aws::EC2::Model::TrunkInterfaceAssociation::WithAssociationId
TrunkInterfaceAssociation & WithAssociationId(Aws::String &&value)
Definition: TrunkInterfaceAssociation.h:81
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TrunkInterfaceAssociation::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: TrunkInterfaceAssociation.h:51
Aws::EC2::Model::TrunkInterfaceAssociation::SetBranchInterfaceId
void SetBranchInterfaceId(const Aws::String &value)
Definition: TrunkInterfaceAssociation.h:102
Aws::EC2::Model::TrunkInterfaceAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TrunkInterfaceAssociation::WithAssociationId
TrunkInterfaceAssociation & WithAssociationId(const Aws::String &value)
Definition: TrunkInterfaceAssociation.h:76
Aws::EC2::Model::TrunkInterfaceAssociation::WithInterfaceProtocol
TrunkInterfaceAssociation & WithInterfaceProtocol(InterfaceProtocolType &&value)
Definition: TrunkInterfaceAssociation.h:205
Aws::EC2::Model::TrunkInterfaceAssociation::SetInterfaceProtocol
void SetInterfaceProtocol(const InterfaceProtocolType &value)
Definition: TrunkInterfaceAssociation.h:187
Aws::EC2::Model::TrunkInterfaceAssociation::GreKeyHasBeenSet
bool GreKeyHasBeenSet() const
Definition: TrunkInterfaceAssociation.h:237
Aws::EC2::Model::TrunkInterfaceAssociation::WithBranchInterfaceId
TrunkInterfaceAssociation & WithBranchInterfaceId(const char *value)
Definition: TrunkInterfaceAssociation.h:127
Aws::EC2::Model::TrunkInterfaceAssociation::SetTrunkInterfaceId
void SetTrunkInterfaceId(const Aws::String &value)
Definition: TrunkInterfaceAssociation.h:143
AWSString.h
Aws::EC2::Model::TrunkInterfaceAssociation::WithTags
TrunkInterfaceAssociation & WithTags(Aws::Vector< Tag > &&value)
Definition: TrunkInterfaceAssociation.h:278
Aws::EC2::Model::TrunkInterfaceAssociation::SetAssociationId
void SetAssociationId(const char *value)
Definition: TrunkInterfaceAssociation.h:71
Aws::EC2::Model::TrunkInterfaceAssociation::GetGreKey
int GetGreKey() const
Definition: TrunkInterfaceAssociation.h:232
Aws::EC2::Model::TrunkInterfaceAssociation::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TrunkInterfaceAssociation.h:263
Aws::EC2::Model::TrunkInterfaceAssociation::SetVlanId
void SetVlanId(int value)
Definition: TrunkInterfaceAssociation.h:221
Aws::EC2::Model::TrunkInterfaceAssociation::WithVlanId
TrunkInterfaceAssociation & WithVlanId(int value)
Definition: TrunkInterfaceAssociation.h:226
Aws::EC2::Model::TrunkInterfaceAssociation::TrunkInterfaceAssociation
TrunkInterfaceAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TrunkInterfaceAssociation::SetTrunkInterfaceId
void SetTrunkInterfaceId(Aws::String &&value)
Definition: TrunkInterfaceAssociation.h:148
Aws::EC2::Model::TrunkInterfaceAssociation::WithBranchInterfaceId
TrunkInterfaceAssociation & WithBranchInterfaceId(Aws::String &&value)
Definition: TrunkInterfaceAssociation.h:122
Aws::EC2::Model::TrunkInterfaceAssociation
Definition: TrunkInterfaceAssociation.h:38
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TrunkInterfaceAssociation::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TrunkInterfaceAssociation.h:268
Aws::EC2::Model::TrunkInterfaceAssociation::WithTrunkInterfaceId
TrunkInterfaceAssociation & WithTrunkInterfaceId(const Aws::String &value)
Definition: TrunkInterfaceAssociation.h:158
Aws::EC2::Model::TrunkInterfaceAssociation::GetInterfaceProtocol
const InterfaceProtocolType & GetInterfaceProtocol() const
Definition: TrunkInterfaceAssociation.h:175
Aws::EC2::Model::TrunkInterfaceAssociation::TrunkInterfaceIdHasBeenSet
bool TrunkInterfaceIdHasBeenSet() const
Definition: TrunkInterfaceAssociation.h:138
InterfaceProtocolType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TrunkInterfaceAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InterfaceProtocolType
InterfaceProtocolType
Definition: InterfaceProtocolType.h:17
Aws::EC2::Model::TrunkInterfaceAssociation::SetGreKey
void SetGreKey(int value)
Definition: TrunkInterfaceAssociation.h:242
Aws::EC2::Model::TrunkInterfaceAssociation::InterfaceProtocolHasBeenSet
bool InterfaceProtocolHasBeenSet() const
Definition: TrunkInterfaceAssociation.h:181
EC2_EXPORTS.h
Aws::EC2::Model::TrunkInterfaceAssociation::SetBranchInterfaceId
void SetBranchInterfaceId(const char *value)
Definition: TrunkInterfaceAssociation.h:112
Aws::EC2::Model::TrunkInterfaceAssociation::WithBranchInterfaceId
TrunkInterfaceAssociation & WithBranchInterfaceId(const Aws::String &value)
Definition: TrunkInterfaceAssociation.h:117
Aws::EC2::Model::TrunkInterfaceAssociation::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TrunkInterfaceAssociation.h:258
Aws::EC2::Model::TrunkInterfaceAssociation::AddTags
TrunkInterfaceAssociation & AddTags(const Tag &value)
Definition: TrunkInterfaceAssociation.h:283
Aws::EC2::Model::TrunkInterfaceAssociation::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: TrunkInterfaceAssociation.h:61