AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TrunkInterfaceAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/InterfaceProtocolType.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API TrunkInterfaceAssociation() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetAssociationId() const { return m_associationId; }
45 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
46 template <typename AssociationIdT = Aws::String>
47 void SetAssociationId(AssociationIdT&& value) {
48 m_associationIdHasBeenSet = true;
49 m_associationId = std::forward<AssociationIdT>(value);
50 }
51 template <typename AssociationIdT = Aws::String>
53 SetAssociationId(std::forward<AssociationIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetBranchInterfaceId() const { return m_branchInterfaceId; }
63 inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; }
64 template <typename BranchInterfaceIdT = Aws::String>
65 void SetBranchInterfaceId(BranchInterfaceIdT&& value) {
66 m_branchInterfaceIdHasBeenSet = true;
67 m_branchInterfaceId = std::forward<BranchInterfaceIdT>(value);
68 }
69 template <typename BranchInterfaceIdT = Aws::String>
70 TrunkInterfaceAssociation& WithBranchInterfaceId(BranchInterfaceIdT&& value) {
71 SetBranchInterfaceId(std::forward<BranchInterfaceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTrunkInterfaceId() const { return m_trunkInterfaceId; }
81 inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
82 template <typename TrunkInterfaceIdT = Aws::String>
83 void SetTrunkInterfaceId(TrunkInterfaceIdT&& value) {
84 m_trunkInterfaceIdHasBeenSet = true;
85 m_trunkInterfaceId = std::forward<TrunkInterfaceIdT>(value);
86 }
87 template <typename TrunkInterfaceIdT = Aws::String>
88 TrunkInterfaceAssociation& WithTrunkInterfaceId(TrunkInterfaceIdT&& value) {
89 SetTrunkInterfaceId(std::forward<TrunkInterfaceIdT>(value));
90 return *this;
91 }
93
95
99 inline InterfaceProtocolType GetInterfaceProtocol() const { return m_interfaceProtocol; }
100 inline bool InterfaceProtocolHasBeenSet() const { return m_interfaceProtocolHasBeenSet; }
102 m_interfaceProtocolHasBeenSet = true;
103 m_interfaceProtocol = value;
104 }
107 return *this;
108 }
110
112
115 inline int GetVlanId() const { return m_vlanId; }
116 inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
117 inline void SetVlanId(int value) {
118 m_vlanIdHasBeenSet = true;
119 m_vlanId = value;
120 }
122 SetVlanId(value);
123 return *this;
124 }
126
128
131 inline int GetGreKey() const { return m_greKey; }
132 inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
133 inline void SetGreKey(int value) {
134 m_greKeyHasBeenSet = true;
135 m_greKey = value;
136 }
138 SetGreKey(value);
139 return *this;
140 }
142
144
147 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template <typename TagsT = Aws::Vector<Tag>>
150 void SetTags(TagsT&& value) {
151 m_tagsHasBeenSet = true;
152 m_tags = std::forward<TagsT>(value);
153 }
154 template <typename TagsT = Aws::Vector<Tag>>
156 SetTags(std::forward<TagsT>(value));
157 return *this;
158 }
159 template <typename TagsT = Tag>
161 m_tagsHasBeenSet = true;
162 m_tags.emplace_back(std::forward<TagsT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_associationId;
168
169 Aws::String m_branchInterfaceId;
170
171 Aws::String m_trunkInterfaceId;
172
174
175 int m_vlanId{0};
176
177 int m_greKey{0};
178
179 Aws::Vector<Tag> m_tags;
180 bool m_associationIdHasBeenSet = false;
181 bool m_branchInterfaceIdHasBeenSet = false;
182 bool m_trunkInterfaceIdHasBeenSet = false;
183 bool m_interfaceProtocolHasBeenSet = false;
184 bool m_vlanIdHasBeenSet = false;
185 bool m_greKeyHasBeenSet = false;
186 bool m_tagsHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace EC2
191} // namespace Aws
TrunkInterfaceAssociation & AddTags(TagsT &&value)
void SetBranchInterfaceId(BranchInterfaceIdT &&value)
void SetTrunkInterfaceId(TrunkInterfaceIdT &&value)
AWS_EC2_API TrunkInterfaceAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
TrunkInterfaceAssociation & WithGreKey(int value)
void SetInterfaceProtocol(InterfaceProtocolType 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(TrunkInterfaceIdT &&value)
TrunkInterfaceAssociation & WithVlanId(int value)
TrunkInterfaceAssociation & WithAssociationId(AssociationIdT &&value)
AWS_EC2_API TrunkInterfaceAssociation()=default
TrunkInterfaceAssociation & WithInterfaceProtocol(InterfaceProtocolType value)
TrunkInterfaceAssociation & WithTags(TagsT &&value)
TrunkInterfaceAssociation & WithBranchInterfaceId(BranchInterfaceIdT &&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