AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/model/RecommendationType.h>
10#include <aws/sesv2/model/RecommendationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sesv2/model/RecommendationImpact.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SESV2
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SESV2_API Recommendation();
41 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
50 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
51 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
52 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
53 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
54 inline Recommendation& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
55 inline Recommendation& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
56 inline Recommendation& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
58
60
64 inline const RecommendationType& GetType() const{ return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(const RecommendationType& value) { m_typeHasBeenSet = true; m_type = value; }
67 inline void SetType(RecommendationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 inline Recommendation& WithType(const RecommendationType& value) { SetType(value); return *this;}
69 inline Recommendation& WithType(RecommendationType&& value) { SetType(std::move(value)); return *this;}
71
73
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline Recommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline Recommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline Recommendation& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
92 inline const RecommendationStatus& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const RecommendationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(RecommendationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline Recommendation& WithStatus(const RecommendationStatus& value) { SetStatus(value); return *this;}
97 inline Recommendation& WithStatus(RecommendationStatus&& value) { SetStatus(std::move(value)); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
106 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
107 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
108 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
110 inline Recommendation& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
118 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
119 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
120 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
122 inline Recommendation& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
124
126
130 inline const RecommendationImpact& GetImpact() const{ return m_impact; }
131 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
132 inline void SetImpact(const RecommendationImpact& value) { m_impactHasBeenSet = true; m_impact = value; }
133 inline void SetImpact(RecommendationImpact&& value) { m_impactHasBeenSet = true; m_impact = std::move(value); }
134 inline Recommendation& WithImpact(const RecommendationImpact& value) { SetImpact(value); return *this;}
135 inline Recommendation& WithImpact(RecommendationImpact&& value) { SetImpact(std::move(value)); return *this;}
137 private:
138
139 Aws::String m_resourceArn;
140 bool m_resourceArnHasBeenSet = false;
141
142 RecommendationType m_type;
143 bool m_typeHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 RecommendationStatus m_status;
149 bool m_statusHasBeenSet = false;
150
151 Aws::Utils::DateTime m_createdTimestamp;
152 bool m_createdTimestampHasBeenSet = false;
153
154 Aws::Utils::DateTime m_lastUpdatedTimestamp;
155 bool m_lastUpdatedTimestampHasBeenSet = false;
156
157 RecommendationImpact m_impact;
158 bool m_impactHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace SESV2
163} // namespace Aws
void SetType(RecommendationType &&value)
Recommendation & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetDescription(const char *value)
void SetResourceArn(const char *value)
void SetType(const RecommendationType &value)
Recommendation & WithDescription(const Aws::String &value)
Recommendation & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Recommendation & WithStatus(const RecommendationStatus &value)
Recommendation & WithResourceArn(const Aws::String &value)
Recommendation & WithType(RecommendationType &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
const RecommendationType & GetType() const
Recommendation & WithImpact(RecommendationImpact &&value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Recommendation & WithImpact(const RecommendationImpact &value)
const Aws::String & GetDescription() const
void SetStatus(RecommendationStatus &&value)
Recommendation & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
Recommendation & WithDescription(const char *value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SESV2_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const RecommendationStatus &value)
AWS_SESV2_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
Recommendation & WithStatus(RecommendationStatus &&value)
void SetDescription(const Aws::String &value)
const Aws::String & GetResourceArn() const
Recommendation & WithResourceArn(Aws::String &&value)
Recommendation & WithType(const RecommendationType &value)
void SetImpact(const RecommendationImpact &value)
void SetResourceArn(const Aws::String &value)
void SetResourceArn(Aws::String &&value)
const RecommendationImpact & GetImpact() const
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
const RecommendationStatus & GetStatus() const
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
Recommendation & WithResourceArn(const char *value)
void SetDescription(Aws::String &&value)
Recommendation & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetImpact(RecommendationImpact &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Recommendation & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue