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>
22namespace resiliencehubv2 {
41 template <
typename ServiceArnT = Aws::String>
43 m_serviceArnHasBeenSet =
true;
44 m_serviceArn = std::forward<ServiceArnT>(value);
46 template <
typename ServiceArnT = Aws::String>
59 template <
typename ServiceFunctionIdT = Aws::String>
61 m_serviceFunctionIdHasBeenSet =
true;
62 m_serviceFunctionId = std::forward<ServiceFunctionIdT>(value);
64 template <
typename ServiceFunctionIdT = Aws::String>
75 template <
typename NameT = Aws::String>
77 m_nameHasBeenSet =
true;
78 m_name = std::forward<NameT>(value);
80 template <
typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
91 template <
typename DescriptionT = Aws::String>
93 m_descriptionHasBeenSet =
true;
94 m_description = std::forward<DescriptionT>(value);
96 template <
typename DescriptionT = Aws::String>
110 m_criticalityHasBeenSet =
true;
111 m_criticality = value;
126 m_resourceCountHasBeenSet =
true;
127 m_resourceCount = value;
142 m_sourceHasBeenSet =
true;
157 template <
typename CreatedAtT = Aws::Utils::DateTime>
159 m_createdAtHasBeenSet =
true;
160 m_createdAt = std::forward<CreatedAtT>(value);
162 template <
typename CreatedAtT = Aws::Utils::DateTime>
175 template <
typename UpdatedAtT = Aws::Utils::DateTime>
177 m_updatedAtHasBeenSet =
true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
180 template <
typename UpdatedAtT = Aws::Utils::DateTime>
197 int m_resourceCount{0};
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;
void SetCriticality(ServiceFunctionCriticality value)
ServiceFunction & WithSource(ServiceFunctionSource value)
bool ServiceArnHasBeenSet() const
void SetServiceFunctionId(ServiceFunctionIdT &&value)
bool CriticalityHasBeenSet() const
const Aws::String & GetServiceArn() const
void SetServiceArn(ServiceArnT &&value)
AWS_RESILIENCEHUBV2_API ServiceFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedAt(UpdatedAtT &&value)
ServiceFunction & WithServiceFunctionId(ServiceFunctionIdT &&value)
bool SourceHasBeenSet() const
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceFunction & WithServiceArn(ServiceArnT &&value)
ServiceFunctionSource GetSource() const
bool CreatedAtHasBeenSet() const
ServiceFunction & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceFunction & WithName(NameT &&value)
const Aws::String & GetName() const
bool UpdatedAtHasBeenSet() const
bool ServiceFunctionIdHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
int GetResourceCount() const
ServiceFunction & WithResourceCount(int value)
void SetName(NameT &&value)
bool DescriptionHasBeenSet() const
const Aws::String & GetDescription() const
ServiceFunction & WithCreatedAt(CreatedAtT &&value)
void SetResourceCount(int value)
const Aws::String & GetServiceFunctionId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
ServiceFunction & WithCriticality(ServiceFunctionCriticality value)
void SetSource(ServiceFunctionSource value)
void SetDescription(DescriptionT &&value)
ServiceFunctionCriticality GetCriticality() const
bool NameHasBeenSet() const
AWS_RESILIENCEHUBV2_API ServiceFunction()=default
ServiceFunction & WithDescription(DescriptionT &&value)
bool ResourceCountHasBeenSet() const
AWS_RESILIENCEHUBV2_API ServiceFunction(Aws::Utils::Json::JsonView jsonValue)
ServiceFunctionCriticality
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue