AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
38 AWS_EC2_API TrunkInterfaceAssociation() = default;
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 template<typename AssociationIdT = Aws::String>
53 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
54 template<typename AssociationIdT = Aws::String>
55 TrunkInterfaceAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
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) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::forward<BranchInterfaceIdT>(value); }
66 template<typename BranchInterfaceIdT = Aws::String>
67 TrunkInterfaceAssociation& WithBranchInterfaceId(BranchInterfaceIdT&& value) { SetBranchInterfaceId(std::forward<BranchInterfaceIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetTrunkInterfaceId() const { return m_trunkInterfaceId; }
75 inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
76 template<typename TrunkInterfaceIdT = Aws::String>
77 void SetTrunkInterfaceId(TrunkInterfaceIdT&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::forward<TrunkInterfaceIdT>(value); }
78 template<typename TrunkInterfaceIdT = Aws::String>
79 TrunkInterfaceAssociation& WithTrunkInterfaceId(TrunkInterfaceIdT&& value) { SetTrunkInterfaceId(std::forward<TrunkInterfaceIdT>(value)); return *this;}
81
83
87 inline InterfaceProtocolType GetInterfaceProtocol() const { return m_interfaceProtocol; }
88 inline bool InterfaceProtocolHasBeenSet() const { return m_interfaceProtocolHasBeenSet; }
89 inline void SetInterfaceProtocol(InterfaceProtocolType value) { m_interfaceProtocolHasBeenSet = true; m_interfaceProtocol = value; }
92
94
97 inline int GetVlanId() const { return m_vlanId; }
98 inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
99 inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; }
100 inline TrunkInterfaceAssociation& WithVlanId(int value) { SetVlanId(value); return *this;}
102
104
107 inline int GetGreKey() const { return m_greKey; }
108 inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
109 inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; }
110 inline TrunkInterfaceAssociation& WithGreKey(int value) { SetGreKey(value); return *this;}
112
114
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template<typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
121 template<typename TagsT = Aws::Vector<Tag>>
122 TrunkInterfaceAssociation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
123 template<typename TagsT = Tag>
124 TrunkInterfaceAssociation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
126 private:
127
128 Aws::String m_associationId;
129 bool m_associationIdHasBeenSet = false;
130
131 Aws::String m_branchInterfaceId;
132 bool m_branchInterfaceIdHasBeenSet = false;
133
134 Aws::String m_trunkInterfaceId;
135 bool m_trunkInterfaceIdHasBeenSet = false;
136
138 bool m_interfaceProtocolHasBeenSet = false;
139
140 int m_vlanId{0};
141 bool m_vlanIdHasBeenSet = false;
142
143 int m_greKey{0};
144 bool m_greKeyHasBeenSet = false;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace EC2
152} // 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