AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetRuleResult.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/core/utils/DateTime.h>
11#include <aws/vpc-lattice/model/RuleMatch.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace VPCLattice
27{
28namespace Model
29{
31 {
32 public:
33 AWS_VPCLATTICE_API GetRuleResult() = default;
36
37
39
42 inline const RuleAction& GetAction() const { return m_action; }
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 GetRuleResult& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 template<typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 GetRuleResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
59
61
64 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
67 template<typename CreatedAtT = Aws::Utils::DateTime>
68 GetRuleResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
70
72
75 inline const Aws::String& GetId() const { return m_id; }
76 template<typename IdT = Aws::String>
77 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
78 template<typename IdT = Aws::String>
79 GetRuleResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
81
83
86 inline bool GetIsDefault() const { return m_isDefault; }
87 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
88 inline GetRuleResult& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
97 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
98 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
99 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
100 GetRuleResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
102
104
107 inline const RuleMatch& GetMatch() const { return m_match; }
108 template<typename MatchT = RuleMatch>
109 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
110 template<typename MatchT = RuleMatch>
111 GetRuleResult& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 template<typename NameT = Aws::String>
120 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
121 template<typename NameT = Aws::String>
122 GetRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
124
126
129 inline int GetPriority() const { return m_priority; }
130 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
131 inline GetRuleResult& WithPriority(int value) { SetPriority(value); return *this;}
133
135
136 inline const Aws::String& GetRequestId() const { return m_requestId; }
137 template<typename RequestIdT = Aws::String>
138 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
139 template<typename RequestIdT = Aws::String>
140 GetRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
142 private:
143
144 RuleAction m_action;
145 bool m_actionHasBeenSet = false;
146
147 Aws::String m_arn;
148 bool m_arnHasBeenSet = false;
149
150 Aws::Utils::DateTime m_createdAt{};
151 bool m_createdAtHasBeenSet = false;
152
153 Aws::String m_id;
154 bool m_idHasBeenSet = false;
155
156 bool m_isDefault{false};
157 bool m_isDefaultHasBeenSet = false;
158
159 Aws::Utils::DateTime m_lastUpdatedAt{};
160 bool m_lastUpdatedAtHasBeenSet = false;
161
162 RuleMatch m_match;
163 bool m_matchHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 int m_priority{0};
169 bool m_priorityHasBeenSet = false;
170
171 Aws::String m_requestId;
172 bool m_requestIdHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace VPCLattice
177} // namespace Aws
GetRuleResult & WithId(IdT &&value)
void SetRequestId(RequestIdT &&value)
AWS_VPCLATTICE_API GetRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRuleResult & WithRequestId(RequestIdT &&value)
GetRuleResult & WithMatch(MatchT &&value)
const Aws::String & GetId() const
const RuleMatch & GetMatch() const
GetRuleResult & WithArn(ArnT &&value)
AWS_VPCLATTICE_API GetRuleResult()=default
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetName() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetArn() const
GetRuleResult & WithIsDefault(bool value)
AWS_VPCLATTICE_API GetRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRuleResult & WithAction(ActionT &&value)
GetRuleResult & WithPriority(int value)
GetRuleResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetRuleResult & WithName(NameT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const RuleAction & GetAction() const
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetRuleResult & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue