AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActionT = RuleAction>
44 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
45 template<typename ActionT = RuleAction>
46 UpdateRuleRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
48
50
53 inline const Aws::String& GetListenerIdentifier() const { return m_listenerIdentifier; }
54 inline bool ListenerIdentifierHasBeenSet() const { return m_listenerIdentifierHasBeenSet; }
55 template<typename ListenerIdentifierT = Aws::String>
56 void SetListenerIdentifier(ListenerIdentifierT&& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = std::forward<ListenerIdentifierT>(value); }
57 template<typename ListenerIdentifierT = Aws::String>
58 UpdateRuleRequest& WithListenerIdentifier(ListenerIdentifierT&& value) { SetListenerIdentifier(std::forward<ListenerIdentifierT>(value)); return *this;}
60
62
65 inline const RuleMatch& GetMatch() const { return m_match; }
66 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
67 template<typename MatchT = RuleMatch>
68 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
69 template<typename MatchT = RuleMatch>
70 UpdateRuleRequest& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
72
74
78 inline int GetPriority() const { return m_priority; }
79 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
80 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
81 inline UpdateRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
83
85
88 inline const Aws::String& GetRuleIdentifier() const { return m_ruleIdentifier; }
89 inline bool RuleIdentifierHasBeenSet() const { return m_ruleIdentifierHasBeenSet; }
90 template<typename RuleIdentifierT = Aws::String>
91 void SetRuleIdentifier(RuleIdentifierT&& value) { m_ruleIdentifierHasBeenSet = true; m_ruleIdentifier = std::forward<RuleIdentifierT>(value); }
92 template<typename RuleIdentifierT = Aws::String>
93 UpdateRuleRequest& WithRuleIdentifier(RuleIdentifierT&& value) { SetRuleIdentifier(std::forward<RuleIdentifierT>(value)); return *this;}
95
97
100 inline const Aws::String& GetServiceIdentifier() const { return m_serviceIdentifier; }
101 inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; }
102 template<typename ServiceIdentifierT = Aws::String>
103 void SetServiceIdentifier(ServiceIdentifierT&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::forward<ServiceIdentifierT>(value); }
104 template<typename ServiceIdentifierT = Aws::String>
105 UpdateRuleRequest& WithServiceIdentifier(ServiceIdentifierT&& value) { SetServiceIdentifier(std::forward<ServiceIdentifierT>(value)); return *this;}
107 private:
108
109 RuleAction m_action;
110 bool m_actionHasBeenSet = false;
111
112 Aws::String m_listenerIdentifier;
113 bool m_listenerIdentifierHasBeenSet = false;
114
115 RuleMatch m_match;
116 bool m_matchHasBeenSet = false;
117
118 int m_priority{0};
119 bool m_priorityHasBeenSet = false;
120
121 Aws::String m_ruleIdentifier;
122 bool m_ruleIdentifierHasBeenSet = false;
123
124 Aws::String m_serviceIdentifier;
125 bool m_serviceIdentifierHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace VPCLattice
130} // namespace Aws
UpdateRuleRequest & WithServiceIdentifier(ServiceIdentifierT &&value)
void SetListenerIdentifier(ListenerIdentifierT &&value)
UpdateRuleRequest & WithListenerIdentifier(ListenerIdentifierT &&value)
AWS_VPCLATTICE_API UpdateRuleRequest()=default
void SetRuleIdentifier(RuleIdentifierT &&value)
const Aws::String & GetListenerIdentifier() const
UpdateRuleRequest & WithRuleIdentifier(RuleIdentifierT &&value)
UpdateRuleRequest & WithAction(ActionT &&value)
UpdateRuleRequest & WithMatch(MatchT &&value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
const Aws::String & GetServiceIdentifier() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetRuleIdentifier() const
void SetServiceIdentifier(ServiceIdentifierT &&value)
UpdateRuleRequest & WithPriority(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String