AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateReportPlanRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/ReportDeliveryChannel.h>
10#include <aws/backup/model/ReportSetting.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Backup {
19namespace Model {
20
24 public:
25 AWS_BACKUP_API CreateReportPlanRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateReportPlan"; }
32
33 AWS_BACKUP_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::String& GetReportPlanName() const { return m_reportPlanName; }
42 inline bool ReportPlanNameHasBeenSet() const { return m_reportPlanNameHasBeenSet; }
43 template <typename ReportPlanNameT = Aws::String>
44 void SetReportPlanName(ReportPlanNameT&& value) {
45 m_reportPlanNameHasBeenSet = true;
46 m_reportPlanName = std::forward<ReportPlanNameT>(value);
47 }
48 template <typename ReportPlanNameT = Aws::String>
49 CreateReportPlanRequest& WithReportPlanName(ReportPlanNameT&& value) {
50 SetReportPlanName(std::forward<ReportPlanNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetReportPlanDescription() const { return m_reportPlanDescription; }
61 inline bool ReportPlanDescriptionHasBeenSet() const { return m_reportPlanDescriptionHasBeenSet; }
62 template <typename ReportPlanDescriptionT = Aws::String>
63 void SetReportPlanDescription(ReportPlanDescriptionT&& value) {
64 m_reportPlanDescriptionHasBeenSet = true;
65 m_reportPlanDescription = std::forward<ReportPlanDescriptionT>(value);
66 }
67 template <typename ReportPlanDescriptionT = Aws::String>
68 CreateReportPlanRequest& WithReportPlanDescription(ReportPlanDescriptionT&& value) {
69 SetReportPlanDescription(std::forward<ReportPlanDescriptionT>(value));
70 return *this;
71 }
73
75
80 inline const ReportDeliveryChannel& GetReportDeliveryChannel() const { return m_reportDeliveryChannel; }
81 inline bool ReportDeliveryChannelHasBeenSet() const { return m_reportDeliveryChannelHasBeenSet; }
82 template <typename ReportDeliveryChannelT = ReportDeliveryChannel>
83 void SetReportDeliveryChannel(ReportDeliveryChannelT&& value) {
84 m_reportDeliveryChannelHasBeenSet = true;
85 m_reportDeliveryChannel = std::forward<ReportDeliveryChannelT>(value);
86 }
87 template <typename ReportDeliveryChannelT = ReportDeliveryChannel>
88 CreateReportPlanRequest& WithReportDeliveryChannel(ReportDeliveryChannelT&& value) {
89 SetReportDeliveryChannel(std::forward<ReportDeliveryChannelT>(value));
90 return *this;
91 }
93
95
104 inline const ReportSetting& GetReportSetting() const { return m_reportSetting; }
105 inline bool ReportSettingHasBeenSet() const { return m_reportSettingHasBeenSet; }
106 template <typename ReportSettingT = ReportSetting>
107 void SetReportSetting(ReportSettingT&& value) {
108 m_reportSettingHasBeenSet = true;
109 m_reportSetting = std::forward<ReportSettingT>(value);
110 }
111 template <typename ReportSettingT = ReportSetting>
113 SetReportSetting(std::forward<ReportSettingT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<Aws::String, Aws::String>& GetReportPlanTags() const { return m_reportPlanTags; }
123 inline bool ReportPlanTagsHasBeenSet() const { return m_reportPlanTagsHasBeenSet; }
124 template <typename ReportPlanTagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetReportPlanTags(ReportPlanTagsT&& value) {
126 m_reportPlanTagsHasBeenSet = true;
127 m_reportPlanTags = std::forward<ReportPlanTagsT>(value);
128 }
129 template <typename ReportPlanTagsT = Aws::Map<Aws::String, Aws::String>>
130 CreateReportPlanRequest& WithReportPlanTags(ReportPlanTagsT&& value) {
131 SetReportPlanTags(std::forward<ReportPlanTagsT>(value));
132 return *this;
133 }
134 template <typename ReportPlanTagsKeyT = Aws::String, typename ReportPlanTagsValueT = Aws::String>
135 CreateReportPlanRequest& AddReportPlanTags(ReportPlanTagsKeyT&& key, ReportPlanTagsValueT&& value) {
136 m_reportPlanTagsHasBeenSet = true;
137 m_reportPlanTags.emplace(std::forward<ReportPlanTagsKeyT>(key), std::forward<ReportPlanTagsValueT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
150 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
151 template <typename IdempotencyTokenT = Aws::String>
152 void SetIdempotencyToken(IdempotencyTokenT&& value) {
153 m_idempotencyTokenHasBeenSet = true;
154 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
155 }
156 template <typename IdempotencyTokenT = Aws::String>
157 CreateReportPlanRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
158 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_reportPlanName;
164
165 Aws::String m_reportPlanDescription;
166
167 ReportDeliveryChannel m_reportDeliveryChannel;
168
169 ReportSetting m_reportSetting;
170
171 Aws::Map<Aws::String, Aws::String> m_reportPlanTags;
172
174 bool m_reportPlanNameHasBeenSet = false;
175 bool m_reportPlanDescriptionHasBeenSet = false;
176 bool m_reportDeliveryChannelHasBeenSet = false;
177 bool m_reportSettingHasBeenSet = false;
178 bool m_reportPlanTagsHasBeenSet = false;
179 bool m_idempotencyTokenHasBeenSet = true;
180};
181
182} // namespace Model
183} // namespace Backup
184} // namespace Aws
void SetReportPlanDescription(ReportPlanDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetReportPlanTags() const
AWS_BACKUP_API Aws::String SerializePayload() const override
CreateReportPlanRequest & WithReportSetting(ReportSettingT &&value)
AWS_BACKUP_API CreateReportPlanRequest()=default
CreateReportPlanRequest & WithReportPlanDescription(ReportPlanDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
void SetReportDeliveryChannel(ReportDeliveryChannelT &&value)
CreateReportPlanRequest & WithReportPlanTags(ReportPlanTagsT &&value)
CreateReportPlanRequest & WithReportDeliveryChannel(ReportDeliveryChannelT &&value)
const ReportDeliveryChannel & GetReportDeliveryChannel() const
CreateReportPlanRequest & AddReportPlanTags(ReportPlanTagsKeyT &&key, ReportPlanTagsValueT &&value)
CreateReportPlanRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
CreateReportPlanRequest & WithReportPlanName(ReportPlanNameT &&value)
void SetIdempotencyToken(IdempotencyTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String