AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrunkInterfaceAssociation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InterfaceProtocolType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
51 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
52 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
53 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
54 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
55 inline TrunkInterfaceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
56 inline TrunkInterfaceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
57 inline TrunkInterfaceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
59
61
64 inline const Aws::String& GetBranchInterfaceId() const{ return m_branchInterfaceId; }
65 inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; }
66 inline void SetBranchInterfaceId(const Aws::String& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = value; }
67 inline void SetBranchInterfaceId(Aws::String&& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::move(value); }
68 inline void SetBranchInterfaceId(const char* value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId.assign(value); }
70 inline TrunkInterfaceAssociation& WithBranchInterfaceId(Aws::String&& value) { SetBranchInterfaceId(std::move(value)); return *this;}
71 inline TrunkInterfaceAssociation& WithBranchInterfaceId(const char* value) { SetBranchInterfaceId(value); return *this;}
73
75
78 inline const Aws::String& GetTrunkInterfaceId() const{ return m_trunkInterfaceId; }
79 inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
80 inline void SetTrunkInterfaceId(const Aws::String& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = value; }
81 inline void SetTrunkInterfaceId(Aws::String&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::move(value); }
82 inline void SetTrunkInterfaceId(const char* value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId.assign(value); }
84 inline TrunkInterfaceAssociation& WithTrunkInterfaceId(Aws::String&& value) { SetTrunkInterfaceId(std::move(value)); return *this;}
85 inline TrunkInterfaceAssociation& WithTrunkInterfaceId(const char* value) { SetTrunkInterfaceId(value); return *this;}
87
89
93 inline const InterfaceProtocolType& GetInterfaceProtocol() const{ return m_interfaceProtocol; }
94 inline bool InterfaceProtocolHasBeenSet() const { return m_interfaceProtocolHasBeenSet; }
95 inline void SetInterfaceProtocol(const InterfaceProtocolType& value) { m_interfaceProtocolHasBeenSet = true; m_interfaceProtocol = value; }
96 inline void SetInterfaceProtocol(InterfaceProtocolType&& value) { m_interfaceProtocolHasBeenSet = true; m_interfaceProtocol = std::move(value); }
100
102
105 inline int GetVlanId() const{ return m_vlanId; }
106 inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
107 inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; }
108 inline TrunkInterfaceAssociation& WithVlanId(int value) { SetVlanId(value); return *this;}
110
112
115 inline int GetGreKey() const{ return m_greKey; }
116 inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
117 inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; }
118 inline TrunkInterfaceAssociation& WithGreKey(int value) { SetGreKey(value); return *this;}
120
122
125 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
128 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
129 inline TrunkInterfaceAssociation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
130 inline TrunkInterfaceAssociation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
131 inline TrunkInterfaceAssociation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
132 inline TrunkInterfaceAssociation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
134 private:
135
136 Aws::String m_associationId;
137 bool m_associationIdHasBeenSet = false;
138
139 Aws::String m_branchInterfaceId;
140 bool m_branchInterfaceIdHasBeenSet = false;
141
142 Aws::String m_trunkInterfaceId;
143 bool m_trunkInterfaceIdHasBeenSet = false;
144
145 InterfaceProtocolType m_interfaceProtocol;
146 bool m_interfaceProtocolHasBeenSet = false;
147
148 int m_vlanId;
149 bool m_vlanIdHasBeenSet = false;
150
151 int m_greKey;
152 bool m_greKeyHasBeenSet = false;
153
154 Aws::Vector<Tag> m_tags;
155 bool m_tagsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace EC2
160} // namespace Aws
TrunkInterfaceAssociation & WithInterfaceProtocol(const InterfaceProtocolType &value)
void SetInterfaceProtocol(InterfaceProtocolType &&value)
const InterfaceProtocolType & GetInterfaceProtocol() const
TrunkInterfaceAssociation & WithTrunkInterfaceId(const char *value)
TrunkInterfaceAssociation & WithInterfaceProtocol(InterfaceProtocolType &&value)
AWS_EC2_API TrunkInterfaceAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
TrunkInterfaceAssociation & WithGreKey(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TrunkInterfaceAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrunkInterfaceAssociation & WithTrunkInterfaceId(const Aws::String &value)
TrunkInterfaceAssociation & AddTags(Tag &&value)
TrunkInterfaceAssociation & WithTags(const Aws::Vector< Tag > &value)
TrunkInterfaceAssociation & WithBranchInterfaceId(const Aws::String &value)
TrunkInterfaceAssociation & WithVlanId(int value)
TrunkInterfaceAssociation & WithTags(Aws::Vector< Tag > &&value)
TrunkInterfaceAssociation & WithTrunkInterfaceId(Aws::String &&value)
TrunkInterfaceAssociation & WithBranchInterfaceId(Aws::String &&value)
TrunkInterfaceAssociation & WithAssociationId(Aws::String &&value)
void SetInterfaceProtocol(const InterfaceProtocolType &value)
TrunkInterfaceAssociation & AddTags(const Tag &value)
TrunkInterfaceAssociation & WithBranchInterfaceId(const char *value)
TrunkInterfaceAssociation & WithAssociationId(const char *value)
TrunkInterfaceAssociation & WithAssociationId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream