AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecipeSummary.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/personalize/model/Domain.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Personalize
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_PERSONALIZE_API RecipeSummary() = default;
40 AWS_PERSONALIZE_API RecipeSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PERSONALIZE_API RecipeSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 RecipeSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_recipeArnHasBeenSet = true; m_recipeArn = std::forward<RecipeArnT>(value); }
65 template<typename RecipeArnT = Aws::String>
66 RecipeSummary& WithRecipeArn(RecipeArnT&& value) { SetRecipeArn(std::forward<RecipeArnT>(value)); return *this;}
68
70
73 inline const Aws::String& GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 template<typename StatusT = Aws::String>
76 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
77 template<typename StatusT = Aws::String>
78 RecipeSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
86 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
87 template<typename CreationDateTimeT = Aws::Utils::DateTime>
88 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
89 template<typename CreationDateTimeT = Aws::Utils::DateTime>
90 RecipeSummary& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
98 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
99 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
100 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
101 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
102 RecipeSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
104
106
110 inline Domain GetDomain() const { return m_domain; }
111 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
112 inline void SetDomain(Domain value) { m_domainHasBeenSet = true; m_domain = value; }
113 inline RecipeSummary& WithDomain(Domain value) { SetDomain(value); return *this;}
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_recipeArn;
121 bool m_recipeArnHasBeenSet = false;
122
123 Aws::String m_status;
124 bool m_statusHasBeenSet = false;
125
126 Aws::Utils::DateTime m_creationDateTime{};
127 bool m_creationDateTimeHasBeenSet = false;
128
129 Aws::Utils::DateTime m_lastUpdatedDateTime{};
130 bool m_lastUpdatedDateTimeHasBeenSet = false;
131
132 Domain m_domain{Domain::NOT_SET};
133 bool m_domainHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Personalize
138} // 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