AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename S3BucketNameT = Aws::String>
58 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
59 template<typename S3BucketNameT = Aws::String>
60 UsageReportSubscription& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
62
64
67 inline UsageReportSchedule GetSchedule() const { return m_schedule; }
68 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
69 inline void SetSchedule(UsageReportSchedule value) { m_scheduleHasBeenSet = true; m_schedule = value; }
72
74
77 inline const Aws::Utils::DateTime& GetLastGeneratedReportDate() const { return m_lastGeneratedReportDate; }
78 inline bool LastGeneratedReportDateHasBeenSet() const { return m_lastGeneratedReportDateHasBeenSet; }
79 template<typename LastGeneratedReportDateT = Aws::Utils::DateTime>
80 void SetLastGeneratedReportDate(LastGeneratedReportDateT&& value) { m_lastGeneratedReportDateHasBeenSet = true; m_lastGeneratedReportDate = std::forward<LastGeneratedReportDateT>(value); }
81 template<typename LastGeneratedReportDateT = Aws::Utils::DateTime>
82 UsageReportSubscription& WithLastGeneratedReportDate(LastGeneratedReportDateT&& value) { SetLastGeneratedReportDate(std::forward<LastGeneratedReportDateT>(value)); return *this;}
84
86
89 inline const Aws::Vector<LastReportGenerationExecutionError>& GetSubscriptionErrors() const { return m_subscriptionErrors; }
90 inline bool SubscriptionErrorsHasBeenSet() const { return m_subscriptionErrorsHasBeenSet; }
91 template<typename SubscriptionErrorsT = Aws::Vector<LastReportGenerationExecutionError>>
92 void SetSubscriptionErrors(SubscriptionErrorsT&& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors = std::forward<SubscriptionErrorsT>(value); }
93 template<typename SubscriptionErrorsT = Aws::Vector<LastReportGenerationExecutionError>>
94 UsageReportSubscription& WithSubscriptionErrors(SubscriptionErrorsT&& value) { SetSubscriptionErrors(std::forward<SubscriptionErrorsT>(value)); return *this;}
95 template<typename SubscriptionErrorsT = LastReportGenerationExecutionError>
96 UsageReportSubscription& AddSubscriptionErrors(SubscriptionErrorsT&& value) { m_subscriptionErrorsHasBeenSet = true; m_subscriptionErrors.emplace_back(std::forward<SubscriptionErrorsT>(value)); return *this; }
98 private:
99
100 Aws::String m_s3BucketName;
101 bool m_s3BucketNameHasBeenSet = false;
102
104 bool m_scheduleHasBeenSet = false;
105
106 Aws::Utils::DateTime m_lastGeneratedReportDate{};
107 bool m_lastGeneratedReportDateHasBeenSet = false;
108
110 bool m_subscriptionErrorsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace AppStream
115} // 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