AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UsageReportSubscription.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/LastReportGenerationExecutionError.h>
9#include <aws/appstream/model/UsageReportSchedule.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppStream {
24namespace Model {
25
33 public:
34 AWS_APPSTREAM_API UsageReportSubscription() = default;
37 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
50 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
51 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
52 template <typename S3BucketNameT = Aws::String>
53 void SetS3BucketName(S3BucketNameT&& value) {
54 m_s3BucketNameHasBeenSet = true;
55 m_s3BucketName = std::forward<S3BucketNameT>(value);
56 }
57 template <typename S3BucketNameT = Aws::String>
58 UsageReportSubscription& WithS3BucketName(S3BucketNameT&& value) {
59 SetS3BucketName(std::forward<S3BucketNameT>(value));
60 return *this;
61 }
63
65
68 inline UsageReportSchedule GetSchedule() const { return m_schedule; }
69 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
70 inline void SetSchedule(UsageReportSchedule value) {
71 m_scheduleHasBeenSet = true;
72 m_schedule = value;
73 }
75 SetSchedule(value);
76 return *this;
77 }
79
81
84 inline const Aws::Utils::DateTime& GetLastGeneratedReportDate() const { return m_lastGeneratedReportDate; }
85 inline bool LastGeneratedReportDateHasBeenSet() const { return m_lastGeneratedReportDateHasBeenSet; }
86 template <typename LastGeneratedReportDateT = Aws::Utils::DateTime>
87 void SetLastGeneratedReportDate(LastGeneratedReportDateT&& value) {
88 m_lastGeneratedReportDateHasBeenSet = true;
89 m_lastGeneratedReportDate = std::forward<LastGeneratedReportDateT>(value);
90 }
91 template <typename LastGeneratedReportDateT = Aws::Utils::DateTime>
92 UsageReportSubscription& WithLastGeneratedReportDate(LastGeneratedReportDateT&& value) {
93 SetLastGeneratedReportDate(std::forward<LastGeneratedReportDateT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<LastReportGenerationExecutionError>& GetSubscriptionErrors() const { return m_subscriptionErrors; }
103 inline bool SubscriptionErrorsHasBeenSet() const { return m_subscriptionErrorsHasBeenSet; }
104 template <typename SubscriptionErrorsT = Aws::Vector<LastReportGenerationExecutionError>>
105 void SetSubscriptionErrors(SubscriptionErrorsT&& value) {
106 m_subscriptionErrorsHasBeenSet = true;
107 m_subscriptionErrors = std::forward<SubscriptionErrorsT>(value);
108 }
109 template <typename SubscriptionErrorsT = Aws::Vector<LastReportGenerationExecutionError>>
110 UsageReportSubscription& WithSubscriptionErrors(SubscriptionErrorsT&& value) {
111 SetSubscriptionErrors(std::forward<SubscriptionErrorsT>(value));
112 return *this;
113 }
114 template <typename SubscriptionErrorsT = LastReportGenerationExecutionError>
115 UsageReportSubscription& AddSubscriptionErrors(SubscriptionErrorsT&& value) {
116 m_subscriptionErrorsHasBeenSet = true;
117 m_subscriptionErrors.emplace_back(std::forward<SubscriptionErrorsT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_s3BucketName;
123
125
126 Aws::Utils::DateTime m_lastGeneratedReportDate{};
127
129 bool m_s3BucketNameHasBeenSet = false;
130 bool m_scheduleHasBeenSet = false;
131 bool m_lastGeneratedReportDateHasBeenSet = false;
132 bool m_subscriptionErrorsHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace AppStream
137} // namespace Aws
AWS_APPSTREAM_API UsageReportSubscription()=default
UsageReportSubscription & WithLastGeneratedReportDate(LastGeneratedReportDateT &&value)
UsageReportSubscription & AddSubscriptionErrors(SubscriptionErrorsT &&value)
const Aws::Vector< LastReportGenerationExecutionError > & GetSubscriptionErrors() const
const Aws::Utils::DateTime & GetLastGeneratedReportDate() const
void SetSubscriptionErrors(SubscriptionErrorsT &&value)
UsageReportSubscription & WithSubscriptionErrors(SubscriptionErrorsT &&value)
void SetLastGeneratedReportDate(LastGeneratedReportDateT &&value)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
UsageReportSubscription & WithS3BucketName(S3BucketNameT &&value)
AWS_APPSTREAM_API UsageReportSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageReportSubscription & WithSchedule(UsageReportSchedule value)
AWS_APPSTREAM_API UsageReportSubscription(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue