7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/model/RuleAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/RuleMatch.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 ArnT = Aws::String>
61 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
62 template<
typename ArnT = Aws::String>
72 template<
typename IdT = Aws::String>
73 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
74 template<
typename IdT = Aws::String>
84 inline void SetIsDefault(
bool value) { m_isDefaultHasBeenSet =
true; m_isDefault = value; }
94 template<
typename MatchT = RuleMatch>
95 void SetMatch(MatchT&& value) { m_matchHasBeenSet =
true; m_match = std::forward<MatchT>(value); }
96 template<
typename MatchT = RuleMatch>
106 template<
typename NameT = Aws::String>
107 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
108 template<
typename NameT = Aws::String>
118 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
124 bool m_actionHasBeenSet =
false;
127 bool m_arnHasBeenSet =
false;
130 bool m_idHasBeenSet =
false;
132 bool m_isDefault{
false};
133 bool m_isDefaultHasBeenSet =
false;
136 bool m_matchHasBeenSet =
false;
139 bool m_nameHasBeenSet =
false;
142 bool m_priorityHasBeenSet =
false;
bool ActionHasBeenSet() const
void SetName(NameT &&value)
const RuleMatch & GetMatch() const
AWS_VPCLATTICE_API RuleUpdateSuccess & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API RuleUpdateSuccess()=default
void SetIsDefault(bool value)
void SetPriority(int value)
RuleUpdateSuccess & WithArn(ArnT &&value)
RuleUpdateSuccess & WithPriority(int value)
const RuleAction & GetAction() const
bool GetIsDefault() const
bool MatchHasBeenSet() const
bool NameHasBeenSet() const
RuleUpdateSuccess & WithAction(ActionT &&value)
bool IsDefaultHasBeenSet() const
const Aws::String & GetId() const
const Aws::String & GetName() const
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API RuleUpdateSuccess(Aws::Utils::Json::JsonView jsonValue)
void SetAction(ActionT &&value)
bool PriorityHasBeenSet() const
RuleUpdateSuccess & WithName(NameT &&value)
void SetArn(ArnT &&value)
bool ArnHasBeenSet() const
const Aws::String & GetArn() const
RuleUpdateSuccess & WithId(IdT &&value)
bool IdHasBeenSet() const
RuleUpdateSuccess & WithIsDefault(bool value)
RuleUpdateSuccess & WithMatch(MatchT &&value)
void SetMatch(MatchT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue