AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UsageReportSubscription.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appstream/model/UsageReportSchedule.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appstream/model/LastReportGenerationExecutionError.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 AppStream
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_APPSTREAM_API UsageReportSubscription();
42 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
55 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
56 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
57 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
58 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
59 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
60 inline UsageReportSubscription& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
61 inline UsageReportSubscription& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
62 inline UsageReportSubscription& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
64
66
69 inline const UsageReportSchedule& GetSchedule() const{ return m_schedule; }
70 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
71 inline void SetSchedule(const UsageReportSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
72 inline void SetSchedule(UsageReportSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
73 inline UsageReportSubscription& WithSchedule(const UsageReportSchedule& value) { SetSchedule(value); return *this;}
74 inline UsageReportSubscription& WithSchedule(UsageReportSchedule&& value) { SetSchedule(std::move(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetLastGeneratedReportDate() const{ return m_lastGeneratedReportDate; }
82 inline bool LastGeneratedReportDateHasBeenSet() const { return m_lastGeneratedReportDateHasBeenSet; }
83 inline void SetLastGeneratedReportDate(const Aws::Utils::DateTime& value) { m_lastGeneratedReportDateHasBeenSet = true; m_lastGeneratedReportDate = value; }
84 inline void SetLastGeneratedReportDate(Aws::Utils::DateTime&& value) { m_lastGeneratedReportDateHasBeenSet = true; m_lastGeneratedReportDate = std::move(value); }
88
90
93 inline const Aws::Vector<LastReportGenerationExecutionError>& GetSubscriptionErrors() const{ return m_subscriptionErrors; }
94 inline bool SubscriptionErrorsHasBeenSet() const { return m_subscriptionErrorsHasBeenSet; }
95 inline void SetSubscriptionErrors(const Aws::Vector<LastReportGenerationExecutionError>& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors = value; }
96 inline void SetSubscriptionErrors(Aws::Vector<LastReportGenerationExecutionError>&& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors = std::move(value); }
99 inline UsageReportSubscription& AddSubscriptionErrors(const LastReportGenerationExecutionError& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors.push_back(value); return *this; }
100 inline UsageReportSubscription& AddSubscriptionErrors(LastReportGenerationExecutionError&& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::String m_s3BucketName;
105 bool m_s3BucketNameHasBeenSet = false;
106
107 UsageReportSchedule m_schedule;
108 bool m_scheduleHasBeenSet = false;
109
110 Aws::Utils::DateTime m_lastGeneratedReportDate;
111 bool m_lastGeneratedReportDateHasBeenSet = false;
112
114 bool m_subscriptionErrorsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace AppStream
119} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue