AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UsageReportSubscription.h
Go to the documentation of this file.
1
6#pragma once
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 AppStream
26{
27namespace Model
28{
29
37 {
38 public:
43
44
54 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
55
65 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
66
76 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
77
87 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
88
98 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
99
109 inline UsageReportSubscription& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
110
120 inline UsageReportSubscription& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
121
131 inline UsageReportSubscription& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
132
133
137 inline const UsageReportSchedule& GetSchedule() const{ return m_schedule; }
138
142 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
143
147 inline void SetSchedule(const UsageReportSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
148
152 inline void SetSchedule(UsageReportSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
153
157 inline UsageReportSubscription& WithSchedule(const UsageReportSchedule& value) { SetSchedule(value); return *this;}
158
162 inline UsageReportSubscription& WithSchedule(UsageReportSchedule&& value) { SetSchedule(std::move(value)); return *this;}
163
164
168 inline const Aws::Utils::DateTime& GetLastGeneratedReportDate() const{ return m_lastGeneratedReportDate; }
169
173 inline bool LastGeneratedReportDateHasBeenSet() const { return m_lastGeneratedReportDateHasBeenSet; }
174
178 inline void SetLastGeneratedReportDate(const Aws::Utils::DateTime& value) { m_lastGeneratedReportDateHasBeenSet = true; m_lastGeneratedReportDate = value; }
179
183 inline void SetLastGeneratedReportDate(Aws::Utils::DateTime&& value) { m_lastGeneratedReportDateHasBeenSet = true; m_lastGeneratedReportDate = std::move(value); }
184
189
194
195
199 inline const Aws::Vector<LastReportGenerationExecutionError>& GetSubscriptionErrors() const{ return m_subscriptionErrors; }
200
204 inline bool SubscriptionErrorsHasBeenSet() const { return m_subscriptionErrorsHasBeenSet; }
205
209 inline void SetSubscriptionErrors(const Aws::Vector<LastReportGenerationExecutionError>& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors = value; }
210
214 inline void SetSubscriptionErrors(Aws::Vector<LastReportGenerationExecutionError>&& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors = std::move(value); }
215
220
225
229 inline UsageReportSubscription& AddSubscriptionErrors(const LastReportGenerationExecutionError& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors.push_back(value); return *this; }
230
234 inline UsageReportSubscription& AddSubscriptionErrors(LastReportGenerationExecutionError&& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors.push_back(std::move(value)); return *this; }
235
236 private:
237
238 Aws::String m_s3BucketName;
239 bool m_s3BucketNameHasBeenSet = false;
240
241 UsageReportSchedule m_schedule;
242 bool m_scheduleHasBeenSet = false;
243
244 Aws::Utils::DateTime m_lastGeneratedReportDate;
245 bool m_lastGeneratedReportDateHasBeenSet = false;
246
248 bool m_subscriptionErrorsHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace AppStream
253} // namespace Aws
#define AWS_APPSTREAM_API
void SetLastGeneratedReportDate(Aws::Utils::DateTime &&value)
UsageReportSubscription & WithS3BucketName(const char *value)
UsageReportSubscription & WithLastGeneratedReportDate(const Aws::Utils::DateTime &value)
UsageReportSubscription & WithSubscriptionErrors(const Aws::Vector< LastReportGenerationExecutionError > &value)
UsageReportSubscription & WithSchedule(UsageReportSchedule &&value)
void SetSubscriptionErrors(Aws::Vector< LastReportGenerationExecutionError > &&value)
const Aws::Vector< LastReportGenerationExecutionError > & GetSubscriptionErrors() const
const Aws::Utils::DateTime & GetLastGeneratedReportDate() const
UsageReportSubscription & AddSubscriptionErrors(const LastReportGenerationExecutionError &value)
void SetSubscriptionErrors(const Aws::Vector< LastReportGenerationExecutionError > &value)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
UsageReportSubscription & WithS3BucketName(const Aws::String &value)
AWS_APPSTREAM_API UsageReportSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageReportSubscription & WithSubscriptionErrors(Aws::Vector< LastReportGenerationExecutionError > &&value)
UsageReportSubscription & WithS3BucketName(Aws::String &&value)
const UsageReportSchedule & GetSchedule() const
UsageReportSubscription & AddSubscriptionErrors(LastReportGenerationExecutionError &&value)
UsageReportSubscription & WithSchedule(const UsageReportSchedule &value)
AWS_APPSTREAM_API UsageReportSubscription(Aws::Utils::Json::JsonView jsonValue)
void SetLastGeneratedReportDate(const Aws::Utils::DateTime &value)
UsageReportSubscription & WithLastGeneratedReportDate(Aws::Utils::DateTime &&value)
void SetSchedule(const UsageReportSchedule &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector