7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/vpc-lattice/model/RuleAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/vpc-lattice/model/RuleMatch.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/UUID.h>
45 template<
typename ActionT = RuleAction>
46 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
47 template<
typename ActionT = RuleAction>
60 template<
typename ClientTokenT = Aws::String>
61 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
62 template<
typename ClientTokenT = Aws::String>
72 template<
typename ListenerIdentifierT = Aws::String>
73 void SetListenerIdentifier(ListenerIdentifierT&& value) { m_listenerIdentifierHasBeenSet =
true; m_listenerIdentifier = std::forward<ListenerIdentifierT>(value); }
74 template<
typename ListenerIdentifierT = Aws::String>
84 template<
typename MatchT = RuleMatch>
85 void SetMatch(MatchT&& value) { m_matchHasBeenSet =
true; m_match = std::forward<MatchT>(value); }
86 template<
typename MatchT = RuleMatch>
98 template<
typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
100 template<
typename NameT = Aws::String>
112 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
122 template<
typename ServiceIdentifierT = Aws::String>
123 void SetServiceIdentifier(ServiceIdentifierT&& value) { m_serviceIdentifierHasBeenSet =
true; m_serviceIdentifier = std::forward<ServiceIdentifierT>(value); }
124 template<
typename ServiceIdentifierT = Aws::String>
134 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
136 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
140 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
146 bool m_actionHasBeenSet =
false;
149 bool m_clientTokenHasBeenSet =
true;
152 bool m_listenerIdentifierHasBeenSet =
false;
155 bool m_matchHasBeenSet =
false;
158 bool m_nameHasBeenSet =
false;
161 bool m_priorityHasBeenSet =
false;
164 bool m_serviceIdentifierHasBeenSet =
false;
167 bool m_tagsHasBeenSet =
false;
static Aws::Utils::UUID PseudoRandomUUID()
bool TagsHasBeenSet() const
const Aws::String & GetName() const
void SetPriority(int value)
CreateRuleRequest & WithName(NameT &&value)
CreateRuleRequest & WithListenerIdentifier(ListenerIdentifierT &&value)
const Aws::String & GetServiceIdentifier() const
CreateRuleRequest & WithServiceIdentifier(ServiceIdentifierT &&value)
CreateRuleRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetMatch(MatchT &&value)
void SetListenerIdentifier(ListenerIdentifierT &&value)
bool ServiceIdentifierHasBeenSet() const
bool ClientTokenHasBeenSet() const
CreateRuleRequest & WithTags(TagsT &&value)
bool PriorityHasBeenSet() const
void SetClientToken(ClientTokenT &&value)
void SetName(NameT &&value)
virtual const char * GetServiceRequestName() const override
bool ListenerIdentifierHasBeenSet() const
CreateRuleRequest & WithPriority(int value)
void SetServiceIdentifier(ServiceIdentifierT &&value)
const Aws::String & GetListenerIdentifier() const
CreateRuleRequest & WithAction(ActionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool MatchHasBeenSet() const
const RuleAction & GetAction() const
CreateRuleRequest & WithMatch(MatchT &&value)
const RuleMatch & GetMatch() const
bool ActionHasBeenSet() const
void SetTags(TagsT &&value)
void SetAction(ActionT &&value)
const Aws::String & GetClientToken() const
bool NameHasBeenSet() const
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
AWS_VPCLATTICE_API CreateRuleRequest()=default
CreateRuleRequest & WithClientToken(ClientTokenT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String