AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReportSummary.h
1
6#pragma once
7#include <aws/artifact/Artifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/artifact/model/PublishedState.h>
10#include <aws/artifact/model/UploadState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/artifact/model/AcceptanceType.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 Artifact
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ARTIFACT_API ReportSummary() = default;
39 AWS_ARTIFACT_API ReportSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 ReportSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 ReportSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline PublishedState GetState() const { return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 inline void SetState(PublishedState value) { m_stateHasBeenSet = true; m_state = value; }
75 inline ReportSummary& WithState(PublishedState value) { SetState(value); return *this;}
77
79
82 inline const Aws::String& GetArn() const { return m_arn; }
83 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
84 template<typename ArnT = Aws::String>
85 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
86 template<typename ArnT = Aws::String>
87 ReportSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
89
91
94 inline long long GetVersion() const { return m_version; }
95 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
96 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
97 inline ReportSummary& WithVersion(long long value) { SetVersion(value); return *this;}
99
101
104 inline UploadState GetUploadState() const { return m_uploadState; }
105 inline bool UploadStateHasBeenSet() const { return m_uploadStateHasBeenSet; }
106 inline void SetUploadState(UploadState value) { m_uploadStateHasBeenSet = true; m_uploadState = value; }
107 inline ReportSummary& WithUploadState(UploadState value) { SetUploadState(value); return *this;}
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template<typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
118 template<typename DescriptionT = Aws::String>
119 ReportSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetPeriodStart() const { return m_periodStart; }
127 inline bool PeriodStartHasBeenSet() const { return m_periodStartHasBeenSet; }
128 template<typename PeriodStartT = Aws::Utils::DateTime>
129 void SetPeriodStart(PeriodStartT&& value) { m_periodStartHasBeenSet = true; m_periodStart = std::forward<PeriodStartT>(value); }
130 template<typename PeriodStartT = Aws::Utils::DateTime>
131 ReportSummary& WithPeriodStart(PeriodStartT&& value) { SetPeriodStart(std::forward<PeriodStartT>(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetPeriodEnd() const { return m_periodEnd; }
139 inline bool PeriodEndHasBeenSet() const { return m_periodEndHasBeenSet; }
140 template<typename PeriodEndT = Aws::Utils::DateTime>
141 void SetPeriodEnd(PeriodEndT&& value) { m_periodEndHasBeenSet = true; m_periodEnd = std::forward<PeriodEndT>(value); }
142 template<typename PeriodEndT = Aws::Utils::DateTime>
143 ReportSummary& WithPeriodEnd(PeriodEndT&& value) { SetPeriodEnd(std::forward<PeriodEndT>(value)); return *this;}
145
147
150 inline const Aws::String& GetSeries() const { return m_series; }
151 inline bool SeriesHasBeenSet() const { return m_seriesHasBeenSet; }
152 template<typename SeriesT = Aws::String>
153 void SetSeries(SeriesT&& value) { m_seriesHasBeenSet = true; m_series = std::forward<SeriesT>(value); }
154 template<typename SeriesT = Aws::String>
155 ReportSummary& WithSeries(SeriesT&& value) { SetSeries(std::forward<SeriesT>(value)); return *this;}
157
159
162 inline const Aws::String& GetCategory() const { return m_category; }
163 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
164 template<typename CategoryT = Aws::String>
165 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
166 template<typename CategoryT = Aws::String>
167 ReportSummary& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
169
171
174 inline const Aws::String& GetCompanyName() const { return m_companyName; }
175 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
176 template<typename CompanyNameT = Aws::String>
177 void SetCompanyName(CompanyNameT&& value) { m_companyNameHasBeenSet = true; m_companyName = std::forward<CompanyNameT>(value); }
178 template<typename CompanyNameT = Aws::String>
179 ReportSummary& WithCompanyName(CompanyNameT&& value) { SetCompanyName(std::forward<CompanyNameT>(value)); return *this;}
181
183
186 inline const Aws::String& GetProductName() const { return m_productName; }
187 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
188 template<typename ProductNameT = Aws::String>
189 void SetProductName(ProductNameT&& value) { m_productNameHasBeenSet = true; m_productName = std::forward<ProductNameT>(value); }
190 template<typename ProductNameT = Aws::String>
191 ReportSummary& WithProductName(ProductNameT&& value) { SetProductName(std::forward<ProductNameT>(value)); return *this;}
193
195
198 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
199 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
200 template<typename StatusMessageT = Aws::String>
201 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
202 template<typename StatusMessageT = Aws::String>
203 ReportSummary& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
205
207
210 inline AcceptanceType GetAcceptanceType() const { return m_acceptanceType; }
211 inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; }
212 inline void SetAcceptanceType(AcceptanceType value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = value; }
213 inline ReportSummary& WithAcceptanceType(AcceptanceType value) { SetAcceptanceType(value); return *this;}
215 private:
216
217 Aws::String m_id;
218 bool m_idHasBeenSet = false;
219
220 Aws::String m_name;
221 bool m_nameHasBeenSet = false;
222
224 bool m_stateHasBeenSet = false;
225
226 Aws::String m_arn;
227 bool m_arnHasBeenSet = false;
228
229 long long m_version{0};
230 bool m_versionHasBeenSet = false;
231
232 UploadState m_uploadState{UploadState::NOT_SET};
233 bool m_uploadStateHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::Utils::DateTime m_periodStart{};
239 bool m_periodStartHasBeenSet = false;
240
241 Aws::Utils::DateTime m_periodEnd{};
242 bool m_periodEndHasBeenSet = false;
243
244 Aws::String m_series;
245 bool m_seriesHasBeenSet = false;
246
247 Aws::String m_category;
248 bool m_categoryHasBeenSet = false;
249
250 Aws::String m_companyName;
251 bool m_companyNameHasBeenSet = false;
252
253 Aws::String m_productName;
254 bool m_productNameHasBeenSet = false;
255
256 Aws::String m_statusMessage;
257 bool m_statusMessageHasBeenSet = false;
258
259 AcceptanceType m_acceptanceType{AcceptanceType::NOT_SET};
260 bool m_acceptanceTypeHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace Artifact
265} // namespace Aws
const Aws::String & GetSeries() const
AWS_ARTIFACT_API ReportSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_ARTIFACT_API ReportSummary()=default
const Aws::Utils::DateTime & GetPeriodStart() const
AWS_ARTIFACT_API ReportSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetPeriodEnd() const
PublishedState GetState() const
ReportSummary & WithUploadState(UploadState value)
const Aws::String & GetName() const
ReportSummary & WithPeriodStart(PeriodStartT &&value)
const Aws::String & GetArn() const
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCategory() const
ReportSummary & WithPeriodEnd(PeriodEndT &&value)
ReportSummary & WithCategory(CategoryT &&value)
ReportSummary & WithArn(ArnT &&value)
const Aws::String & GetStatusMessage() const
void SetPeriodStart(PeriodStartT &&value)
ReportSummary & WithName(NameT &&value)
ReportSummary & WithAcceptanceType(AcceptanceType value)
ReportSummary & WithSeries(SeriesT &&value)
ReportSummary & WithId(IdT &&value)
ReportSummary & WithDescription(DescriptionT &&value)
ReportSummary & WithState(PublishedState value)
void SetStatusMessage(StatusMessageT &&value)
AcceptanceType GetAcceptanceType() const
const Aws::String & GetProductName() const
void SetState(PublishedState value)
void SetAcceptanceType(AcceptanceType value)
const Aws::String & GetDescription() const
ReportSummary & WithCompanyName(CompanyNameT &&value)
void SetUploadState(UploadState value)
void SetDescription(DescriptionT &&value)
void SetCompanyName(CompanyNameT &&value)
ReportSummary & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetId() const
void SetProductName(ProductNameT &&value)
const Aws::String & GetCompanyName() const
ReportSummary & WithProductName(ProductNameT &&value)
void SetPeriodEnd(PeriodEndT &&value)
void SetCategory(CategoryT &&value)
ReportSummary & WithVersion(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue