AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
RecipeSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/Domain.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize {
22namespace Model {
23
33 public:
34 AWS_PERSONALIZE_API RecipeSummary() = default;
35 AWS_PERSONALIZE_API RecipeSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PERSONALIZE_API RecipeSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 RecipeSummary& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
62 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
63 template <typename RecipeArnT = Aws::String>
64 void SetRecipeArn(RecipeArnT&& value) {
65 m_recipeArnHasBeenSet = true;
66 m_recipeArn = std::forward<RecipeArnT>(value);
67 }
68 template <typename RecipeArnT = Aws::String>
69 RecipeSummary& WithRecipeArn(RecipeArnT&& value) {
70 SetRecipeArn(std::forward<RecipeArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 template <typename StatusT = Aws::String>
82 void SetStatus(StatusT&& value) {
83 m_statusHasBeenSet = true;
84 m_status = std::forward<StatusT>(value);
85 }
86 template <typename StatusT = Aws::String>
87 RecipeSummary& WithStatus(StatusT&& value) {
88 SetStatus(std::forward<StatusT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
98 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
99 template <typename CreationDateTimeT = Aws::Utils::DateTime>
100 void SetCreationDateTime(CreationDateTimeT&& value) {
101 m_creationDateTimeHasBeenSet = true;
102 m_creationDateTime = std::forward<CreationDateTimeT>(value);
103 }
104 template <typename CreationDateTimeT = Aws::Utils::DateTime>
105 RecipeSummary& WithCreationDateTime(CreationDateTimeT&& value) {
106 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
116 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
117 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
118 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
119 m_lastUpdatedDateTimeHasBeenSet = true;
120 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
121 }
122 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
123 RecipeSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
124 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
125 return *this;
126 }
128
130
134 inline Domain GetDomain() const { return m_domain; }
135 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
136 inline void SetDomain(Domain value) {
137 m_domainHasBeenSet = true;
138 m_domain = value;
139 }
141 SetDomain(value);
142 return *this;
143 }
145 private:
146 Aws::String m_name;
147
148 Aws::String m_recipeArn;
149
150 Aws::String m_status;
151
152 Aws::Utils::DateTime m_creationDateTime{};
153
154 Aws::Utils::DateTime m_lastUpdatedDateTime{};
155
156 Domain m_domain{Domain::NOT_SET};
157 bool m_nameHasBeenSet = false;
158 bool m_recipeArnHasBeenSet = false;
159 bool m_statusHasBeenSet = false;
160 bool m_creationDateTimeHasBeenSet = false;
161 bool m_lastUpdatedDateTimeHasBeenSet = false;
162 bool m_domainHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Personalize
167} // namespace Aws
AWS_PERSONALIZE_API RecipeSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::String & GetRecipeArn() const
const Aws::String & GetName() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
RecipeSummary & WithStatus(StatusT &&value)
RecipeSummary & WithRecipeArn(RecipeArnT &&value)
AWS_PERSONALIZE_API RecipeSummary()=default
RecipeSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
RecipeSummary & WithDomain(Domain value)
AWS_PERSONALIZE_API RecipeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
const Aws::Utils::DateTime & GetCreationDateTime() const
RecipeSummary & WithName(NameT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetRecipeArn(RecipeArnT &&value)
RecipeSummary & WithCreationDateTime(CreationDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue