AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LocalGatewayVirtualInterfaceGroup.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/LocalGatewayVirtualInterfaceGroupConfigurationState.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 LocalGatewayVirtualInterfaceGroup() = 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& GetLocalGatewayVirtualInterfaceGroupId() const { return m_localGatewayVirtualInterfaceGroupId; }
51 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
52 template<typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
53 void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value); }
54 template<typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
55 LocalGatewayVirtualInterfaceGroup& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value)); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetLocalGatewayVirtualInterfaceIds() const { return m_localGatewayVirtualInterfaceIds; }
63 inline bool LocalGatewayVirtualInterfaceIdsHasBeenSet() const { return m_localGatewayVirtualInterfaceIdsHasBeenSet; }
64 template<typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
65 void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) { m_localGatewayVirtualInterfaceIdsHasBeenSet = true; m_localGatewayVirtualInterfaceIds = std::forward<LocalGatewayVirtualInterfaceIdsT>(value); }
66 template<typename LocalGatewayVirtualInterfaceIdsT = Aws::Vector<Aws::String>>
67 LocalGatewayVirtualInterfaceGroup& WithLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) { SetLocalGatewayVirtualInterfaceIds(std::forward<LocalGatewayVirtualInterfaceIdsT>(value)); return *this;}
68 template<typename LocalGatewayVirtualInterfaceIdsT = Aws::String>
69 LocalGatewayVirtualInterfaceGroup& AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT&& value) { m_localGatewayVirtualInterfaceIdsHasBeenSet = true; m_localGatewayVirtualInterfaceIds.emplace_back(std::forward<LocalGatewayVirtualInterfaceIdsT>(value)); return *this; }
71
73
76 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
77 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
78 template<typename LocalGatewayIdT = Aws::String>
79 void SetLocalGatewayId(LocalGatewayIdT&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::forward<LocalGatewayIdT>(value); }
80 template<typename LocalGatewayIdT = Aws::String>
81 LocalGatewayVirtualInterfaceGroup& WithLocalGatewayId(LocalGatewayIdT&& value) { SetLocalGatewayId(std::forward<LocalGatewayIdT>(value)); return *this;}
83
85
89 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
90 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
91 template<typename OwnerIdT = Aws::String>
92 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
93 template<typename OwnerIdT = Aws::String>
94 LocalGatewayVirtualInterfaceGroup& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
96
98
102 inline int GetLocalBgpAsn() const { return m_localBgpAsn; }
103 inline bool LocalBgpAsnHasBeenSet() const { return m_localBgpAsnHasBeenSet; }
104 inline void SetLocalBgpAsn(int value) { m_localBgpAsnHasBeenSet = true; m_localBgpAsn = value; }
105 inline LocalGatewayVirtualInterfaceGroup& WithLocalBgpAsn(int value) { SetLocalBgpAsn(value); return *this;}
107
109
112 inline long long GetLocalBgpAsnExtended() const { return m_localBgpAsnExtended; }
113 inline bool LocalBgpAsnExtendedHasBeenSet() const { return m_localBgpAsnExtendedHasBeenSet; }
114 inline void SetLocalBgpAsnExtended(long long value) { m_localBgpAsnExtendedHasBeenSet = true; m_localBgpAsnExtended = value; }
117
119
123 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupArn() const { return m_localGatewayVirtualInterfaceGroupArn; }
124 inline bool LocalGatewayVirtualInterfaceGroupArnHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupArnHasBeenSet; }
125 template<typename LocalGatewayVirtualInterfaceGroupArnT = Aws::String>
126 void SetLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT&& value) { m_localGatewayVirtualInterfaceGroupArnHasBeenSet = true; m_localGatewayVirtualInterfaceGroupArn = std::forward<LocalGatewayVirtualInterfaceGroupArnT>(value); }
127 template<typename LocalGatewayVirtualInterfaceGroupArnT = Aws::String>
128 LocalGatewayVirtualInterfaceGroup& WithLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT&& value) { SetLocalGatewayVirtualInterfaceGroupArn(std::forward<LocalGatewayVirtualInterfaceGroupArnT>(value)); return *this;}
130
132
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template<typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
139 template<typename TagsT = Aws::Vector<Tag>>
140 LocalGatewayVirtualInterfaceGroup& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
141 template<typename TagsT = Tag>
142 LocalGatewayVirtualInterfaceGroup& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
144
146
150 inline bool ConfigurationStateHasBeenSet() const { return m_configurationStateHasBeenSet; }
151 inline void SetConfigurationState(LocalGatewayVirtualInterfaceGroupConfigurationState value) { m_configurationStateHasBeenSet = true; m_configurationState = value; }
154 private:
155
156 Aws::String m_localGatewayVirtualInterfaceGroupId;
157 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_localGatewayVirtualInterfaceIds;
160 bool m_localGatewayVirtualInterfaceIdsHasBeenSet = false;
161
162 Aws::String m_localGatewayId;
163 bool m_localGatewayIdHasBeenSet = false;
164
165 Aws::String m_ownerId;
166 bool m_ownerIdHasBeenSet = false;
167
168 int m_localBgpAsn{0};
169 bool m_localBgpAsnHasBeenSet = false;
170
171 long long m_localBgpAsnExtended{0};
172 bool m_localBgpAsnExtendedHasBeenSet = false;
173
174 Aws::String m_localGatewayVirtualInterfaceGroupArn;
175 bool m_localGatewayVirtualInterfaceGroupArnHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179
181 bool m_configurationStateHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace EC2
186} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayId(LocalGatewayIdT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalBgpAsn(int value)
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
LocalGatewayVirtualInterfaceGroup & WithTags(TagsT &&value)
LocalGatewayVirtualInterfaceGroup & WithLocalBgpAsnExtended(long long value)
LocalGatewayVirtualInterfaceGroupConfigurationState GetConfigurationState() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetConfigurationState(LocalGatewayVirtualInterfaceGroupConfigurationState value)
LocalGatewayVirtualInterfaceGroup & AddTags(TagsT &&value)
AWS_EC2_API LocalGatewayVirtualInterfaceGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LocalGatewayVirtualInterfaceGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
const Aws::Vector< Aws::String > & GetLocalGatewayVirtualInterfaceIds() const
void SetLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
LocalGatewayVirtualInterfaceGroup & WithOwnerId(OwnerIdT &&value)
void SetLocalGatewayVirtualInterfaceGroupArn(LocalGatewayVirtualInterfaceGroupArnT &&value)
LocalGatewayVirtualInterfaceGroup & WithConfigurationState(LocalGatewayVirtualInterfaceGroupConfigurationState value)
LocalGatewayVirtualInterfaceGroup & AddLocalGatewayVirtualInterfaceIds(LocalGatewayVirtualInterfaceIdsT &&value)
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