AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateReportPlanRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/backup/model/ReportDeliveryChannel.h>
11#include <aws/backup/model/ReportSetting.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Backup
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BACKUP_API CreateReportPlanRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateReportPlan"; }
35
36 AWS_BACKUP_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetReportPlanName() const { return m_reportPlanName; }
46 inline bool ReportPlanNameHasBeenSet() const { return m_reportPlanNameHasBeenSet; }
47 template<typename ReportPlanNameT = Aws::String>
48 void SetReportPlanName(ReportPlanNameT&& value) { m_reportPlanNameHasBeenSet = true; m_reportPlanName = std::forward<ReportPlanNameT>(value); }
49 template<typename ReportPlanNameT = Aws::String>
50 CreateReportPlanRequest& WithReportPlanName(ReportPlanNameT&& value) { SetReportPlanName(std::forward<ReportPlanNameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetReportPlanDescription() const { return m_reportPlanDescription; }
59 inline bool ReportPlanDescriptionHasBeenSet() const { return m_reportPlanDescriptionHasBeenSet; }
60 template<typename ReportPlanDescriptionT = Aws::String>
61 void SetReportPlanDescription(ReportPlanDescriptionT&& value) { m_reportPlanDescriptionHasBeenSet = true; m_reportPlanDescription = std::forward<ReportPlanDescriptionT>(value); }
62 template<typename ReportPlanDescriptionT = Aws::String>
63 CreateReportPlanRequest& WithReportPlanDescription(ReportPlanDescriptionT&& value) { SetReportPlanDescription(std::forward<ReportPlanDescriptionT>(value)); return *this;}
65
67
72 inline const ReportDeliveryChannel& GetReportDeliveryChannel() const { return m_reportDeliveryChannel; }
73 inline bool ReportDeliveryChannelHasBeenSet() const { return m_reportDeliveryChannelHasBeenSet; }
74 template<typename ReportDeliveryChannelT = ReportDeliveryChannel>
75 void SetReportDeliveryChannel(ReportDeliveryChannelT&& value) { m_reportDeliveryChannelHasBeenSet = true; m_reportDeliveryChannel = std::forward<ReportDeliveryChannelT>(value); }
76 template<typename ReportDeliveryChannelT = ReportDeliveryChannel>
77 CreateReportPlanRequest& WithReportDeliveryChannel(ReportDeliveryChannelT&& value) { SetReportDeliveryChannel(std::forward<ReportDeliveryChannelT>(value)); return *this;}
79
81
90 inline const ReportSetting& GetReportSetting() const { return m_reportSetting; }
91 inline bool ReportSettingHasBeenSet() const { return m_reportSettingHasBeenSet; }
92 template<typename ReportSettingT = ReportSetting>
93 void SetReportSetting(ReportSettingT&& value) { m_reportSettingHasBeenSet = true; m_reportSetting = std::forward<ReportSettingT>(value); }
94 template<typename ReportSettingT = ReportSetting>
95 CreateReportPlanRequest& WithReportSetting(ReportSettingT&& value) { SetReportSetting(std::forward<ReportSettingT>(value)); return *this;}
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetReportPlanTags() const { return m_reportPlanTags; }
103 inline bool ReportPlanTagsHasBeenSet() const { return m_reportPlanTagsHasBeenSet; }
104 template<typename ReportPlanTagsT = Aws::Map<Aws::String, Aws::String>>
105 void SetReportPlanTags(ReportPlanTagsT&& value) { m_reportPlanTagsHasBeenSet = true; m_reportPlanTags = std::forward<ReportPlanTagsT>(value); }
106 template<typename ReportPlanTagsT = Aws::Map<Aws::String, Aws::String>>
107 CreateReportPlanRequest& WithReportPlanTags(ReportPlanTagsT&& value) { SetReportPlanTags(std::forward<ReportPlanTagsT>(value)); return *this;}
108 template<typename ReportPlanTagsKeyT = Aws::String, typename ReportPlanTagsValueT = Aws::String>
109 CreateReportPlanRequest& AddReportPlanTags(ReportPlanTagsKeyT&& key, ReportPlanTagsValueT&& value) {
110 m_reportPlanTagsHasBeenSet = true; m_reportPlanTags.emplace(std::forward<ReportPlanTagsKeyT>(key), std::forward<ReportPlanTagsValueT>(value)); return *this;
111 }
113
115
121 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
122 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
123 template<typename IdempotencyTokenT = Aws::String>
124 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
125 template<typename IdempotencyTokenT = Aws::String>
126 CreateReportPlanRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
128 private:
129
130 Aws::String m_reportPlanName;
131 bool m_reportPlanNameHasBeenSet = false;
132
133 Aws::String m_reportPlanDescription;
134 bool m_reportPlanDescriptionHasBeenSet = false;
135
136 ReportDeliveryChannel m_reportDeliveryChannel;
137 bool m_reportDeliveryChannelHasBeenSet = false;
138
139 ReportSetting m_reportSetting;
140 bool m_reportSettingHasBeenSet = false;
141
142 Aws::Map<Aws::String, Aws::String> m_reportPlanTags;
143 bool m_reportPlanTagsHasBeenSet = false;
144
146 bool m_idempotencyTokenHasBeenSet = true;
147 };
148
149} // namespace Model
150} // namespace Backup
151} // 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