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/RouteServerPersistRoutesState.h>
12#include <aws/ec2/model/RouteServerState.h>
13#include <aws/ec2/model/Tag.h>
59 template <
typename RouteServerIdT = Aws::String>
61 m_routeServerIdHasBeenSet =
true;
62 m_routeServerId = std::forward<RouteServerIdT>(value);
64 template <
typename RouteServerIdT = Aws::String>
81 m_amazonSideAsnHasBeenSet =
true;
82 m_amazonSideAsn = value;
97 m_stateHasBeenSet =
true;
112 template <
typename TagsT = Aws::Vector<Tag>>
114 m_tagsHasBeenSet =
true;
115 m_tags = std::forward<TagsT>(value);
117 template <
typename TagsT = Aws::Vector<Tag>>
119 SetTags(std::forward<TagsT>(value));
122 template <
typename TagsT = Tag>
124 m_tagsHasBeenSet =
true;
125 m_tags.emplace_back(std::forward<TagsT>(value));
137 m_persistRoutesStateHasBeenSet =
true;
138 m_persistRoutesState = value;
162 m_persistRoutesDurationHasBeenSet =
true;
163 m_persistRoutesDuration = value;
180 m_snsNotificationsEnabledHasBeenSet =
true;
181 m_snsNotificationsEnabled = value;
195 template <
typename SnsTopicArnT = Aws::String>
197 m_snsTopicArnHasBeenSet =
true;
198 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
200 template <
typename SnsTopicArnT = Aws::String>
209 long long m_amazonSideAsn{0};
217 long long m_persistRoutesDuration{0};
219 bool m_snsNotificationsEnabled{
false};
222 bool m_routeServerIdHasBeenSet =
false;
223 bool m_amazonSideAsnHasBeenSet =
false;
224 bool m_stateHasBeenSet =
false;
225 bool m_tagsHasBeenSet =
false;
226 bool m_persistRoutesStateHasBeenSet =
false;
227 bool m_persistRoutesDurationHasBeenSet =
false;
228 bool m_snsNotificationsEnabledHasBeenSet =
false;
229 bool m_snsTopicArnHasBeenSet =
false;
void SetPersistRoutesDuration(long long value)
RouteServer & WithPersistRoutesState(RouteServerPersistRoutesState value)
long long GetPersistRoutesDuration() const
AWS_EC2_API RouteServer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API RouteServer(const Aws::Utils::Xml::XmlNode &xmlNode)
RouteServer & WithSnsTopicArn(SnsTopicArnT &&value)
void SetSnsNotificationsEnabled(bool value)
long long GetAmazonSideAsn() const
bool RouteServerIdHasBeenSet() const
void SetState(RouteServerState value)
bool PersistRoutesStateHasBeenSet() const
void SetSnsTopicArn(SnsTopicArnT &&value)
RouteServer & WithSnsNotificationsEnabled(bool value)
const Aws::String & GetRouteServerId() const
RouteServer & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool SnsTopicArnHasBeenSet() const
void SetAmazonSideAsn(long long value)
RouteServer & WithPersistRoutesDuration(long long value)
RouteServer & WithState(RouteServerState value)
RouteServerState GetState() const
RouteServerPersistRoutesState GetPersistRoutesState() const
bool GetSnsNotificationsEnabled() const
RouteServer & WithAmazonSideAsn(long long value)
void SetRouteServerId(RouteServerIdT &&value)
AWS_EC2_API RouteServer()=default
bool PersistRoutesDurationHasBeenSet() const
bool StateHasBeenSet() const
void SetPersistRoutesState(RouteServerPersistRoutesState value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool TagsHasBeenSet() const
RouteServer & WithRouteServerId(RouteServerIdT &&value)
bool SnsNotificationsEnabledHasBeenSet() const
const Aws::String & GetSnsTopicArn() const
void SetTags(TagsT &&value)
RouteServer & AddTags(TagsT &&value)
bool AmazonSideAsnHasBeenSet() const
RouteServerPersistRoutesState
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