AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline const RuleAction& GetAction() const{ return m_action; }
43 inline void SetAction(const RuleAction& value) { m_action = value; }
44 inline void SetAction(RuleAction&& value) { m_action = std::move(value); }
45 inline GetRuleResult& WithAction(const RuleAction& value) { SetAction(value); return *this;}
46 inline GetRuleResult& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetArn() const{ return m_arn; }
54 inline void SetArn(const Aws::String& value) { m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arn.assign(value); }
57 inline GetRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline GetRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline GetRuleResult& WithArn(const char* value) { SetArn(value); return *this;}
61
63
67 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
68 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
69 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
70 inline GetRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
71 inline GetRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
73
75
78 inline const Aws::String& GetId() const{ return m_id; }
79 inline void SetId(const Aws::String& value) { m_id = value; }
80 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
81 inline void SetId(const char* value) { m_id.assign(value); }
82 inline GetRuleResult& WithId(const Aws::String& value) { SetId(value); return *this;}
83 inline GetRuleResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
84 inline GetRuleResult& WithId(const char* value) { SetId(value); return *this;}
86
88
91 inline bool GetIsDefault() const{ return m_isDefault; }
92 inline void SetIsDefault(bool value) { m_isDefault = value; }
93 inline GetRuleResult& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
95
97
101 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
102 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; }
103 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); }
104 inline GetRuleResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
105 inline GetRuleResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
107
109
112 inline const RuleMatch& GetMatch() const{ return m_match; }
113 inline void SetMatch(const RuleMatch& value) { m_match = value; }
114 inline void SetMatch(RuleMatch&& value) { m_match = std::move(value); }
115 inline GetRuleResult& WithMatch(const RuleMatch& value) { SetMatch(value); return *this;}
116 inline GetRuleResult& WithMatch(RuleMatch&& value) { SetMatch(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetName() const{ return m_name; }
124 inline void SetName(const Aws::String& value) { m_name = value; }
125 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
126 inline void SetName(const char* value) { m_name.assign(value); }
127 inline GetRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
128 inline GetRuleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
129 inline GetRuleResult& WithName(const char* value) { SetName(value); return *this;}
131
133
136 inline int GetPriority() const{ return m_priority; }
137 inline void SetPriority(int value) { m_priority = value; }
138 inline GetRuleResult& WithPriority(int value) { SetPriority(value); return *this;}
140
142
143 inline const Aws::String& GetRequestId() const{ return m_requestId; }
144 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
145 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
146 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
147 inline GetRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
148 inline GetRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
149 inline GetRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
151 private:
152
153 RuleAction m_action;
154
155 Aws::String m_arn;
156
157 Aws::Utils::DateTime m_createdAt;
158
159 Aws::String m_id;
160
161 bool m_isDefault;
162
163 Aws::Utils::DateTime m_lastUpdatedAt;
164
165 RuleMatch m_match;
166
167 Aws::String m_name;
168
169 int m_priority;
170
171 Aws::String m_requestId;
172 };
173
174} // namespace Model
175} // namespace VPCLattice
176} // namespace Aws
void SetName(Aws::String &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
void SetId(Aws::String &&value)
void SetRequestId(Aws::String &&value)
AWS_VPCLATTICE_API GetRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAction(const RuleAction &value)
const Aws::String & GetId() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
GetRuleResult & WithCreatedAt(Aws::Utils::DateTime &&value)
const RuleMatch & GetMatch() const
GetRuleResult & WithMatch(RuleMatch &&value)
void SetRequestId(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetName() const
GetRuleResult & WithName(const char *value)
GetRuleResult & WithId(Aws::String &&value)
GetRuleResult & WithRequestId(Aws::String &&value)
const Aws::String & GetArn() const
GetRuleResult & WithIsDefault(bool value)
AWS_VPCLATTICE_API GetRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRuleResult & WithPriority(int value)
GetRuleResult & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetArn(const Aws::String &value)
GetRuleResult & WithArn(const Aws::String &value)
GetRuleResult & WithMatch(const RuleMatch &value)
GetRuleResult & WithArn(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const RuleAction & GetAction() const
void SetId(const Aws::String &value)
GetRuleResult & WithArn(const char *value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
GetRuleResult & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetMatch(const RuleMatch &value)
const Aws::String & GetRequestId() const
GetRuleResult & WithAction(const RuleAction &value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetArn(Aws::String &&value)
void SetAction(RuleAction &&value)
GetRuleResult & WithName(Aws::String &&value)
GetRuleResult & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
GetRuleResult & WithName(const Aws::String &value)
GetRuleResult & WithRequestId(const Aws::String &value)
GetRuleResult & WithCreatedAt(const Aws::Utils::DateTime &value)
GetRuleResult & WithAction(RuleAction &&value)
GetRuleResult & WithId(const char *value)
GetRuleResult & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue