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>
15template<
typename RESULT_TYPE>
16class AmazonWebServiceResult;
42 template<
typename ActionT = RuleAction>
43 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
44 template<
typename ActionT = RuleAction>
53 template<
typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
55 template<
typename ArnT = Aws::String>
64 template<
typename IdT = Aws::String>
65 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
66 template<
typename IdT = Aws::String>
75 inline void SetIsDefault(
bool value) { m_isDefaultHasBeenSet =
true; m_isDefault = value; }
84 template<
typename MatchT = RuleMatch>
85 void SetMatch(MatchT&& value) { m_matchHasBeenSet =
true; m_match = std::forward<MatchT>(value); }
86 template<
typename MatchT = RuleMatch>
95 template<
typename NameT = Aws::String>
96 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
97 template<
typename NameT = Aws::String>
106 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
113 template<
typename RequestIdT = Aws::String>
114 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
115 template<
typename RequestIdT = Aws::String>
121 bool m_actionHasBeenSet =
false;
124 bool m_arnHasBeenSet =
false;
127 bool m_idHasBeenSet =
false;
129 bool m_isDefault{
false};
130 bool m_isDefaultHasBeenSet =
false;
133 bool m_matchHasBeenSet =
false;
136 bool m_nameHasBeenSet =
false;
139 bool m_priorityHasBeenSet =
false;
142 bool m_requestIdHasBeenSet =
false;
UpdateRuleResult & WithAction(ActionT &&value)
UpdateRuleResult & WithPriority(int value)
AWS_VPCLATTICE_API UpdateRuleResult()=default
void SetIsDefault(bool value)
void SetName(NameT &&value)
const RuleAction & GetAction() const
UpdateRuleResult & WithArn(ArnT &&value)
const RuleMatch & GetMatch() const
UpdateRuleResult & WithName(NameT &&value)
AWS_VPCLATTICE_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetArn(ArnT &&value)
const Aws::String & GetArn() const
void SetRequestId(RequestIdT &&value)
UpdateRuleResult & WithId(IdT &&value)
bool GetIsDefault() const
const Aws::String & GetId() const
UpdateRuleResult & WithMatch(MatchT &&value)
void SetMatch(MatchT &&value)
UpdateRuleResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
UpdateRuleResult & WithIsDefault(bool value)
void SetAction(ActionT &&value)
const Aws::String & GetName() const
AWS_VPCLATTICE_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPriority(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue