AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleUpdate.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace VPCLattice
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_VPCLATTICE_API RuleUpdate() = default;
37 AWS_VPCLATTICE_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VPCLATTICE_API RuleUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RuleAction& GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 template<typename ActionT = RuleAction>
49 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
50 template<typename ActionT = RuleAction>
51 RuleUpdate& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
53
55
58 inline const RuleMatch& GetMatch() const { return m_match; }
59 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
60 template<typename MatchT = RuleMatch>
61 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
62 template<typename MatchT = RuleMatch>
63 RuleUpdate& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
65
67
71 inline int GetPriority() const { return m_priority; }
72 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
73 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
74 inline RuleUpdate& WithPriority(int value) { SetPriority(value); return *this;}
76
78
81 inline const Aws::String& GetRuleIdentifier() const { return m_ruleIdentifier; }
82 inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; }
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>
86 RuleUpdate& WithRuleIdentifier(RuleIdentifierT&& value) { SetRuleIdentifier(std::forward<RuleIdentifierT>(value)); return *this;}
88 private:
89
90 RuleAction m_action;
91 bool m_actionHasBeenSet = false;
92
93 RuleMatch m_match;
94 bool m_matchHasBeenSet = false;
95
96 int m_priority{0};
97 bool m_priorityHasBeenSet = false;
98
99 Aws::String m_ruleIdentifier;
100 bool m_ruleIdentifierHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace VPCLattice
105} // namespace Aws
void SetAction(ActionT &&value)
Definition RuleUpdate.h:49
AWS_VPCLATTICE_API RuleUpdate()=default
const RuleMatch & GetMatch() const
Definition RuleUpdate.h:58
RuleUpdate & WithRuleIdentifier(RuleIdentifierT &&value)
Definition RuleUpdate.h:86
void SetRuleIdentifier(RuleIdentifierT &&value)
Definition RuleUpdate.h:84
AWS_VPCLATTICE_API RuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue)
RuleUpdate & WithMatch(MatchT &&value)
Definition RuleUpdate.h:63
void SetMatch(MatchT &&value)
Definition RuleUpdate.h:61
const RuleAction & GetAction() const
Definition RuleUpdate.h:46
RuleUpdate & WithPriority(int value)
Definition RuleUpdate.h:74
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleIdentifier() const
Definition RuleUpdate.h:81
RuleUpdate & WithAction(ActionT &&value)
Definition RuleUpdate.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue