AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateRuleResult.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace VPCLattice
26{
27namespace Model
28{
30 {
31 public:
32 AWS_VPCLATTICE_API UpdateRuleResult() = default;
35
36
38
41 inline const RuleAction& GetAction() const { return m_action; }
42 template<typename ActionT = RuleAction>
43 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
44 template<typename ActionT = RuleAction>
45 UpdateRuleResult& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
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>
56 UpdateRuleResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetId() const { return m_id; }
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>
67 UpdateRuleResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
69
71
74 inline bool GetIsDefault() const { return m_isDefault; }
75 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
76 inline UpdateRuleResult& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
78
80
83 inline const RuleMatch& GetMatch() const { return m_match; }
84 template<typename MatchT = RuleMatch>
85 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
86 template<typename MatchT = RuleMatch>
87 UpdateRuleResult& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
89
91
94 inline const Aws::String& GetName() const { return m_name; }
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>
98 UpdateRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
100
102
105 inline int GetPriority() const { return m_priority; }
106 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
107 inline UpdateRuleResult& WithPriority(int value) { SetPriority(value); return *this;}
109
111
112 inline const Aws::String& GetRequestId() const { return m_requestId; }
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>
116 UpdateRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
118 private:
119
120 RuleAction m_action;
121 bool m_actionHasBeenSet = false;
122
123 Aws::String m_arn;
124 bool m_arnHasBeenSet = false;
125
126 Aws::String m_id;
127 bool m_idHasBeenSet = false;
128
129 bool m_isDefault{false};
130 bool m_isDefaultHasBeenSet = false;
131
132 RuleMatch m_match;
133 bool m_matchHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 int m_priority{0};
139 bool m_priorityHasBeenSet = false;
140
141 Aws::String m_requestId;
142 bool m_requestIdHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace VPCLattice
147} // namespace Aws
UpdateRuleResult & WithAction(ActionT &&value)
UpdateRuleResult & WithPriority(int value)
AWS_VPCLATTICE_API UpdateRuleResult()=default
UpdateRuleResult & WithArn(ArnT &&value)
UpdateRuleResult & WithName(NameT &&value)
AWS_VPCLATTICE_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRuleResult & WithId(IdT &&value)
UpdateRuleResult & WithMatch(MatchT &&value)
UpdateRuleResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
UpdateRuleResult & WithIsDefault(bool value)
AWS_VPCLATTICE_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue