AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/RecommendationImpact.h>
11#include <aws/sesv2/model/RecommendationStatus.h>
12#include <aws/sesv2/model/RecommendationType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SESV2 {
24namespace Model {
25
32 public:
33 AWS_SESV2_API Recommendation() = default;
36 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
44 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
45 template <typename ResourceArnT = Aws::String>
46 void SetResourceArn(ResourceArnT&& value) {
47 m_resourceArnHasBeenSet = true;
48 m_resourceArn = std::forward<ResourceArnT>(value);
49 }
50 template <typename ResourceArnT = Aws::String>
51 Recommendation& WithResourceArn(ResourceArnT&& value) {
52 SetResourceArn(std::forward<ResourceArnT>(value));
53 return *this;
54 }
56
58
63 inline RecommendationType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(RecommendationType value) {
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 Recommendation& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
99 inline RecommendationStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(RecommendationStatus value) {
102 m_statusHasBeenSet = true;
103 m_status = value;
104 }
106 SetStatus(value);
107 return *this;
108 }
110
112
116 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
117 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
118 template <typename CreatedTimestampT = Aws::Utils::DateTime>
119 void SetCreatedTimestamp(CreatedTimestampT&& value) {
120 m_createdTimestampHasBeenSet = true;
121 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
122 }
123 template <typename CreatedTimestampT = Aws::Utils::DateTime>
124 Recommendation& WithCreatedTimestamp(CreatedTimestampT&& value) {
125 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
135 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
136 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
137 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
138 m_lastUpdatedTimestampHasBeenSet = true;
139 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
140 }
141 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
142 Recommendation& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
143 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
144 return *this;
145 }
147
149
153 inline RecommendationImpact GetImpact() const { return m_impact; }
154 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
155 inline void SetImpact(RecommendationImpact value) {
156 m_impactHasBeenSet = true;
157 m_impact = value;
158 }
160 SetImpact(value);
161 return *this;
162 }
164 private:
165 Aws::String m_resourceArn;
166
168
169 Aws::String m_description;
170
172
173 Aws::Utils::DateTime m_createdTimestamp{};
174
175 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
176
178 bool m_resourceArnHasBeenSet = false;
179 bool m_typeHasBeenSet = false;
180 bool m_descriptionHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_createdTimestampHasBeenSet = false;
183 bool m_lastUpdatedTimestampHasBeenSet = false;
184 bool m_impactHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace SESV2
189} // namespace Aws
Recommendation & WithImpact(RecommendationImpact value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
Recommendation & WithResourceArn(ResourceArnT &&value)
void SetType(RecommendationType value)
RecommendationImpact GetImpact() const
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
RecommendationType GetType() const
const Aws::String & GetDescription() const
void SetStatus(RecommendationStatus value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationStatus GetStatus() const
AWS_SESV2_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Recommendation()=default
AWS_SESV2_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetResourceArn() const
Recommendation & WithType(RecommendationType value)
Recommendation & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
void SetImpact(RecommendationImpact value)
Recommendation & WithStatus(RecommendationStatus value)
void SetResourceArn(ResourceArnT &&value)
Recommendation & WithCreatedTimestamp(CreatedTimestampT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue