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/RouteServerState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/RouteServerPersistRoutesState.h>
13#include <aws/ec2/model/Tag.h>
65 template<
typename RouteServerIdT = Aws::String>
66 void SetRouteServerId(RouteServerIdT&& value) { m_routeServerIdHasBeenSet =
true; m_routeServerId = std::forward<RouteServerIdT>(value); }
67 template<
typename RouteServerIdT = Aws::String>
80 inline void SetAmazonSideAsn(
long long value) { m_amazonSideAsnHasBeenSet =
true; m_amazonSideAsn = value; }
100 template<
typename TagsT = Aws::Vector<Tag>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
102 template<
typename TagsT = Aws::Vector<Tag>>
104 template<
typename TagsT = Tag>
105 RouteServer&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
133 inline void SetPersistRoutesDuration(
long long value) { m_persistRoutesDurationHasBeenSet =
true; m_persistRoutesDuration = value; }
155 template<
typename SnsTopicArnT = Aws::String>
156 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet =
true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
157 template<
typename SnsTopicArnT = Aws::String>
163 bool m_routeServerIdHasBeenSet =
false;
165 long long m_amazonSideAsn{0};
166 bool m_amazonSideAsnHasBeenSet =
false;
169 bool m_stateHasBeenSet =
false;
172 bool m_tagsHasBeenSet =
false;
175 bool m_persistRoutesStateHasBeenSet =
false;
177 long long m_persistRoutesDuration{0};
178 bool m_persistRoutesDurationHasBeenSet =
false;
180 bool m_snsNotificationsEnabled{
false};
181 bool m_snsNotificationsEnabledHasBeenSet =
false;
184 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