AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
ServiceFunction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/ServiceFunctionCriticality.h>
11#include <aws/resiliencehubv2/model/ServiceFunctionSource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace resiliencehubv2 {
23namespace Model {
24
31 public:
32 AWS_RESILIENCEHUBV2_API ServiceFunction() = default;
33 AWS_RESILIENCEHUBV2_API ServiceFunction(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API ServiceFunction& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
40 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
41 template <typename ServiceArnT = Aws::String>
42 void SetServiceArn(ServiceArnT&& value) {
43 m_serviceArnHasBeenSet = true;
44 m_serviceArn = std::forward<ServiceArnT>(value);
45 }
46 template <typename ServiceArnT = Aws::String>
47 ServiceFunction& WithServiceArn(ServiceArnT&& value) {
48 SetServiceArn(std::forward<ServiceArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetServiceFunctionId() const { return m_serviceFunctionId; }
58 inline bool ServiceFunctionIdHasBeenSet() const { return m_serviceFunctionIdHasBeenSet; }
59 template <typename ServiceFunctionIdT = Aws::String>
60 void SetServiceFunctionId(ServiceFunctionIdT&& value) {
61 m_serviceFunctionIdHasBeenSet = true;
62 m_serviceFunctionId = std::forward<ServiceFunctionIdT>(value);
63 }
64 template <typename ServiceFunctionIdT = Aws::String>
65 ServiceFunction& WithServiceFunctionId(ServiceFunctionIdT&& value) {
66 SetServiceFunctionId(std::forward<ServiceFunctionIdT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
81 ServiceFunction& WithName(NameT&& value) {
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
97 ServiceFunction& WithDescription(DescriptionT&& value) {
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
107 inline ServiceFunctionCriticality GetCriticality() const { return m_criticality; }
108 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
110 m_criticalityHasBeenSet = true;
111 m_criticality = value;
112 }
114 SetCriticality(value);
115 return *this;
116 }
118
120
123 inline int GetResourceCount() const { return m_resourceCount; }
124 inline bool ResourceCountHasBeenSet() const { return m_resourceCountHasBeenSet; }
125 inline void SetResourceCount(int value) {
126 m_resourceCountHasBeenSet = true;
127 m_resourceCount = value;
128 }
130 SetResourceCount(value);
131 return *this;
132 }
134
136
139 inline ServiceFunctionSource GetSource() const { return m_source; }
140 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
141 inline void SetSource(ServiceFunctionSource value) {
142 m_sourceHasBeenSet = true;
143 m_source = value;
144 }
146 SetSource(value);
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
156 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
157 template <typename CreatedAtT = Aws::Utils::DateTime>
158 void SetCreatedAt(CreatedAtT&& value) {
159 m_createdAtHasBeenSet = true;
160 m_createdAt = std::forward<CreatedAtT>(value);
161 }
162 template <typename CreatedAtT = Aws::Utils::DateTime>
163 ServiceFunction& WithCreatedAt(CreatedAtT&& value) {
164 SetCreatedAt(std::forward<CreatedAtT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
174 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 void SetUpdatedAt(UpdatedAtT&& value) {
177 m_updatedAtHasBeenSet = true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
179 }
180 template <typename UpdatedAtT = Aws::Utils::DateTime>
181 ServiceFunction& WithUpdatedAt(UpdatedAtT&& value) {
182 SetUpdatedAt(std::forward<UpdatedAtT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_serviceArn;
188
189 Aws::String m_serviceFunctionId;
190
191 Aws::String m_name;
192
193 Aws::String m_description;
194
196
197 int m_resourceCount{0};
198
200
201 Aws::Utils::DateTime m_createdAt{};
202
203 Aws::Utils::DateTime m_updatedAt{};
204 bool m_serviceArnHasBeenSet = false;
205 bool m_serviceFunctionIdHasBeenSet = false;
206 bool m_nameHasBeenSet = false;
207 bool m_descriptionHasBeenSet = false;
208 bool m_criticalityHasBeenSet = false;
209 bool m_resourceCountHasBeenSet = false;
210 bool m_sourceHasBeenSet = false;
211 bool m_createdAtHasBeenSet = false;
212 bool m_updatedAtHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace resiliencehubv2
217} // namespace Aws
void SetCriticality(ServiceFunctionCriticality value)
ServiceFunction & WithSource(ServiceFunctionSource value)
void SetServiceFunctionId(ServiceFunctionIdT &&value)
AWS_RESILIENCEHUBV2_API ServiceFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceFunction & WithServiceFunctionId(ServiceFunctionIdT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceFunction & WithServiceArn(ServiceArnT &&value)
ServiceFunction & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceFunction & WithName(NameT &&value)
ServiceFunction & WithResourceCount(int value)
ServiceFunction & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetServiceFunctionId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
ServiceFunction & WithCriticality(ServiceFunctionCriticality value)
void SetSource(ServiceFunctionSource value)
ServiceFunctionCriticality GetCriticality() const
AWS_RESILIENCEHUBV2_API ServiceFunction()=default
ServiceFunction & WithDescription(DescriptionT &&value)
AWS_RESILIENCEHUBV2_API ServiceFunction(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue