AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline RuleUpdate& WithAction(const RuleAction& value) { SetAction(value); return *this;}
51 inline RuleUpdate& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
53
55
58 inline const RuleMatch& GetMatch() const{ return m_match; }
59 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
60 inline void SetMatch(const RuleMatch& value) { m_matchHasBeenSet = true; m_match = value; }
61 inline void SetMatch(RuleMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
62 inline RuleUpdate& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;}
63 inline RuleUpdate& WithMatch(RuleMatch&& value) { SetMatch(std::move(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 inline void SetRuleIdentifier(const Aws::String& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = value; }
84 inline void SetRuleIdentifier(Aws::String&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::move(value); }
85 inline void SetRuleIdentifier(const char* value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier.assign(value); }
86 inline RuleUpdate& WithRuleIdentifier(const Aws::String& value) { SetRuleIdentifier(value); return *this;}
87 inline RuleUpdate& WithRuleIdentifier(Aws::String&& value) { SetRuleIdentifier(std::move(value)); return *this;}
88 inline RuleUpdate& WithRuleIdentifier(const char* value) { SetRuleIdentifier(value); return *this;}
90 private:
91
92 RuleAction m_action;
93 bool m_actionHasBeenSet = false;
94
95 RuleMatch m_match;
96 bool m_matchHasBeenSet = false;
97
98 int m_priority;
99 bool m_priorityHasBeenSet = false;
100
101 Aws::String m_ruleIdentifier;
102 bool m_ruleIdentifierHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace VPCLattice
107} // namespace Aws
RuleUpdate & WithMatch(RuleMatch &&value)
Definition RuleUpdate.h:63
RuleUpdate & WithMatch(const RuleMatch &value)
Definition RuleUpdate.h:62
const RuleMatch & GetMatch() const
Definition RuleUpdate.h:58
RuleUpdate & WithAction(const RuleAction &value)
Definition RuleUpdate.h:50
RuleUpdate & WithRuleIdentifier(const char *value)
Definition RuleUpdate.h:88
void SetMatch(RuleMatch &&value)
Definition RuleUpdate.h:61
AWS_VPCLATTICE_API RuleUpdate()
void SetRuleIdentifier(const Aws::String &value)
Definition RuleUpdate.h:83
AWS_VPCLATTICE_API RuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API RuleUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetMatch(const RuleMatch &value)
Definition RuleUpdate.h:60
void SetAction(RuleAction &&value)
Definition RuleUpdate.h:49
void SetAction(const RuleAction &value)
Definition RuleUpdate.h:48
const RuleAction & GetAction() const
Definition RuleUpdate.h:46
RuleUpdate & WithAction(RuleAction &&value)
Definition RuleUpdate.h:51
void SetRuleIdentifier(Aws::String &&value)
Definition RuleUpdate.h:84
RuleUpdate & WithPriority(int value)
Definition RuleUpdate.h:74
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRuleIdentifier(const char *value)
Definition RuleUpdate.h:85
RuleUpdate & WithRuleIdentifier(const Aws::String &value)
Definition RuleUpdate.h:86
RuleUpdate & WithRuleIdentifier(Aws::String &&value)
Definition RuleUpdate.h:87
const Aws::String & GetRuleIdentifier() const
Definition RuleUpdate.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue