7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/model/RuleAction.h>
9#include <aws/vpc-lattice/model/RuleMatch.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
48 template<
typename ActionT = RuleAction>
49 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
50 template<
typename ActionT = RuleAction>
60 template<
typename MatchT = RuleMatch>
61 void SetMatch(MatchT&& value) { m_matchHasBeenSet =
true; m_match = std::forward<MatchT>(value); }
62 template<
typename MatchT = RuleMatch>
73 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
83 template<
typename RuleIdentifierT = Aws::String>
84 void SetRuleIdentifier(RuleIdentifierT&& value) { m_ruleIdentifierHasBeenSet =
true; m_ruleIdentifier = std::forward<RuleIdentifierT>(value); }
85 template<
typename RuleIdentifierT = Aws::String>
91 bool m_actionHasBeenSet =
false;
94 bool m_matchHasBeenSet =
false;
97 bool m_priorityHasBeenSet =
false;
100 bool m_ruleIdentifierHasBeenSet =
false;
void SetAction(ActionT &&value)
bool ActionHasBeenSet() const
AWS_VPCLATTICE_API RuleUpdate()=default
const RuleMatch & GetMatch() const
RuleUpdate & WithRuleIdentifier(RuleIdentifierT &&value)
void SetRuleIdentifier(RuleIdentifierT &&value)
AWS_VPCLATTICE_API RuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue)
bool PriorityHasBeenSet() const
RuleUpdate & WithMatch(MatchT &&value)
bool MatchHasBeenSet() const
void SetMatch(MatchT &&value)
const RuleAction & GetAction() const
RuleUpdate & WithPriority(int value)
void SetPriority(int value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool RuleIdentifierHasBeenSet() const
const Aws::String & GetRuleIdentifier() const
RuleUpdate & WithAction(ActionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue