AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/vpc-lattice/model/RuleAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/vpc-lattice/model/RuleMatch.h>
12#include <utility>
13
14namespace Aws
15{
16namespace VPCLattice
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_VPCLATTICE_API UpdateRuleRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateRule"; }
33
34 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const RuleAction& GetAction() const{ return m_action; }
42 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
43 inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
44 inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
45 inline UpdateRuleRequest& WithAction(const RuleAction& value) { SetAction(value); return *this;}
46 inline UpdateRuleRequest& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetListenerIdentifier() const{ return m_listenerIdentifier; }
54 inline bool ListenerIdentifierHasBeenSet() const { return m_listenerIdentifierHasBeenSet; }
55 inline void SetListenerIdentifier(const Aws::String& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = value; }
56 inline void SetListenerIdentifier(Aws::String&& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = std::move(value); }
57 inline void SetListenerIdentifier(const char* value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier.assign(value); }
58 inline UpdateRuleRequest& WithListenerIdentifier(const Aws::String& value) { SetListenerIdentifier(value); return *this;}
59 inline UpdateRuleRequest& WithListenerIdentifier(Aws::String&& value) { SetListenerIdentifier(std::move(value)); return *this;}
60 inline UpdateRuleRequest& WithListenerIdentifier(const char* value) { SetListenerIdentifier(value); return *this;}
62
64
67 inline const RuleMatch& GetMatch() const{ return m_match; }
68 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
69 inline void SetMatch(const RuleMatch& value) { m_matchHasBeenSet = true; m_match = value; }
70 inline void SetMatch(RuleMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
71 inline UpdateRuleRequest& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;}
72 inline UpdateRuleRequest& WithMatch(RuleMatch&& value) { SetMatch(std::move(value)); return *this;}
74
76
80 inline int GetPriority() const{ return m_priority; }
81 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
82 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
83 inline UpdateRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
85
87
90 inline const Aws::String& GetRuleIdentifier() const{ return m_ruleIdentifier; }
91 inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; }
92 inline void SetRuleIdentifier(const Aws::String& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = value; }
93 inline void SetRuleIdentifier(Aws::String&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::move(value); }
94 inline void SetRuleIdentifier(const char* value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier.assign(value); }
95 inline UpdateRuleRequest& WithRuleIdentifier(const Aws::String& value) { SetRuleIdentifier(value); return *this;}
96 inline UpdateRuleRequest& WithRuleIdentifier(Aws::String&& value) { SetRuleIdentifier(std::move(value)); return *this;}
97 inline UpdateRuleRequest& WithRuleIdentifier(const char* value) { SetRuleIdentifier(value); return *this;}
99
101
104 inline const Aws::String& GetServiceIdentifier() const{ return m_serviceIdentifier; }
105 inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; }
106 inline void SetServiceIdentifier(const Aws::String& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = value; }
107 inline void SetServiceIdentifier(Aws::String&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::move(value); }
108 inline void SetServiceIdentifier(const char* value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier.assign(value); }
109 inline UpdateRuleRequest& WithServiceIdentifier(const Aws::String& value) { SetServiceIdentifier(value); return *this;}
110 inline UpdateRuleRequest& WithServiceIdentifier(Aws::String&& value) { SetServiceIdentifier(std::move(value)); return *this;}
111 inline UpdateRuleRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;}
113 private:
114
115 RuleAction m_action;
116 bool m_actionHasBeenSet = false;
117
118 Aws::String m_listenerIdentifier;
119 bool m_listenerIdentifierHasBeenSet = false;
120
121 RuleMatch m_match;
122 bool m_matchHasBeenSet = false;
123
124 int m_priority;
125 bool m_priorityHasBeenSet = false;
126
127 Aws::String m_ruleIdentifier;
128 bool m_ruleIdentifierHasBeenSet = false;
129
130 Aws::String m_serviceIdentifier;
131 bool m_serviceIdentifierHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace VPCLattice
136} // namespace Aws
UpdateRuleRequest & WithServiceIdentifier(Aws::String &&value)
UpdateRuleRequest & WithAction(const RuleAction &value)
UpdateRuleRequest & WithListenerIdentifier(Aws::String &&value)
UpdateRuleRequest & WithListenerIdentifier(const Aws::String &value)
void SetAction(const RuleAction &value)
UpdateRuleRequest & WithMatch(const RuleMatch &value)
UpdateRuleRequest & WithRuleIdentifier(Aws::String &&value)
void SetServiceIdentifier(const Aws::String &value)
void SetListenerIdentifier(Aws::String &&value)
void SetListenerIdentifier(const Aws::String &value)
const Aws::String & GetListenerIdentifier() const
UpdateRuleRequest & WithRuleIdentifier(const char *value)
UpdateRuleRequest & WithMatch(RuleMatch &&value)
UpdateRuleRequest & WithAction(RuleAction &&value)
UpdateRuleRequest & WithRuleIdentifier(const Aws::String &value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
void SetRuleIdentifier(const Aws::String &value)
const Aws::String & GetServiceIdentifier() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetRuleIdentifier() const
UpdateRuleRequest & WithServiceIdentifier(const char *value)
UpdateRuleRequest & WithListenerIdentifier(const char *value)
UpdateRuleRequest & WithPriority(int value)
UpdateRuleRequest & WithServiceIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String