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>
62 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
76 inline void SetListenerIdentifier(
const char* value) { m_listenerIdentifierHasBeenSet =
true; m_listenerIdentifier.assign(value); }
89 inline void SetMatch(
RuleMatch&& value) { m_matchHasBeenSet =
true; m_match = std::move(value); }
104 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
118 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
130 inline void SetServiceIdentifier(
const char* value) { m_serviceIdentifierHasBeenSet =
true; m_serviceIdentifier.assign(value); }
152 inline CreateRuleRequest&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
157 bool m_actionHasBeenSet =
false;
160 bool m_clientTokenHasBeenSet =
false;
163 bool m_listenerIdentifierHasBeenSet =
false;
166 bool m_matchHasBeenSet =
false;
169 bool m_nameHasBeenSet =
false;
172 bool m_priorityHasBeenSet =
false;
175 bool m_serviceIdentifierHasBeenSet =
false;
178 bool m_tagsHasBeenSet =
false;
CreateRuleRequest & WithListenerIdentifier(Aws::String &&value)
CreateRuleRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
bool TagsHasBeenSet() const
const Aws::String & GetName() const
void SetPriority(int value)
CreateRuleRequest & WithClientToken(const char *value)
void SetServiceIdentifier(Aws::String &&value)
CreateRuleRequest & AddTags(Aws::String &&key, const char *value)
CreateRuleRequest & WithAction(RuleAction &&value)
CreateRuleRequest & WithClientToken(const Aws::String &value)
void SetListenerIdentifier(const Aws::String &value)
const Aws::String & GetServiceIdentifier() const
CreateRuleRequest & WithName(const char *value)
CreateRuleRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetClientToken(const char *value)
void SetMatch(RuleMatch &&value)
CreateRuleRequest & WithMatch(RuleMatch &&value)
bool ServiceIdentifierHasBeenSet() const
CreateRuleRequest & WithName(Aws::String &&value)
bool ClientTokenHasBeenSet() const
bool PriorityHasBeenSet() const
void SetListenerIdentifier(const char *value)
void SetAction(const RuleAction &value)
CreateRuleRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetName(Aws::String &&value)
CreateRuleRequest & WithListenerIdentifier(const Aws::String &value)
bool ListenerIdentifierHasBeenSet() const
CreateRuleRequest & WithPriority(int value)
CreateRuleRequest & WithListenerIdentifier(const char *value)
const Aws::String & GetListenerIdentifier() const
CreateRuleRequest & WithServiceIdentifier(Aws::String &&value)
void SetClientToken(Aws::String &&value)
CreateRuleRequest & WithClientToken(Aws::String &&value)
void SetName(const Aws::String &value)
void SetServiceIdentifier(const Aws::String &value)
void SetName(const char *value)
CreateRuleRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRuleRequest & AddTags(const char *key, Aws::String &&value)
bool MatchHasBeenSet() const
CreateRuleRequest & WithAction(const RuleAction &value)
const RuleAction & GetAction() const
CreateRuleRequest & WithServiceIdentifier(const Aws::String &value)
void SetClientToken(const Aws::String &value)
void SetServiceIdentifier(const char *value)
const RuleMatch & GetMatch() const
CreateRuleRequest & AddTags(const char *key, const char *value)
CreateRuleRequest & WithMatch(const RuleMatch &value)
bool ActionHasBeenSet() const
CreateRuleRequest & WithServiceIdentifier(const char *value)
CreateRuleRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::String & GetClientToken() const
CreateRuleRequest & AddTags(const Aws::String &key, const Aws::String &value)
bool NameHasBeenSet() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetListenerIdentifier(Aws::String &&value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
void SetMatch(const RuleMatch &value)
void SetAction(RuleAction &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_VPCLATTICE_API CreateRuleRequest()
CreateRuleRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&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