AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateSnapshotScheduleRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotSchedule"; }
33
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
45 inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const{ return m_scheduleDefinitions; }
46
51 inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; }
52
57 inline void SetScheduleDefinitions(const Aws::Vector<Aws::String>& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = value; }
58
63 inline void SetScheduleDefinitions(Aws::Vector<Aws::String>&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::move(value); }
64
70
76
81 inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const Aws::String& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
82
87 inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(Aws::String&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(std::move(value)); return *this; }
88
93 inline CreateSnapshotScheduleRequest& AddScheduleDefinitions(const char* value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
94
95
100 inline const Aws::String& GetScheduleIdentifier() const{ return m_scheduleIdentifier; }
101
106 inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
107
112 inline void SetScheduleIdentifier(const Aws::String& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = value; }
113
118 inline void SetScheduleIdentifier(Aws::String&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::move(value); }
119
124 inline void SetScheduleIdentifier(const char* value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier.assign(value); }
125
131
137
142 inline CreateSnapshotScheduleRequest& WithScheduleIdentifier(const char* value) { SetScheduleIdentifier(value); return *this;}
143
144
148 inline const Aws::String& GetScheduleDescription() const{ return m_scheduleDescription; }
149
153 inline bool ScheduleDescriptionHasBeenSet() const { return m_scheduleDescriptionHasBeenSet; }
154
158 inline void SetScheduleDescription(const Aws::String& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = value; }
159
163 inline void SetScheduleDescription(Aws::String&& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = std::move(value); }
164
168 inline void SetScheduleDescription(const char* value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription.assign(value); }
169
174
179
183 inline CreateSnapshotScheduleRequest& WithScheduleDescription(const char* value) { SetScheduleDescription(value); return *this;}
184
185
189 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
190
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195
199 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
200
204 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
205
209 inline CreateSnapshotScheduleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
210
214 inline CreateSnapshotScheduleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
215
219 inline CreateSnapshotScheduleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
220
224 inline CreateSnapshotScheduleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
225
226
230 inline bool GetDryRun() const{ return m_dryRun; }
231
235 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
236
240 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
241
245 inline CreateSnapshotScheduleRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
246
247
251 inline int GetNextInvocations() const{ return m_nextInvocations; }
252
256 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
257
261 inline void SetNextInvocations(int value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
262
266 inline CreateSnapshotScheduleRequest& WithNextInvocations(int value) { SetNextInvocations(value); return *this;}
267
268 private:
269
270 Aws::Vector<Aws::String> m_scheduleDefinitions;
271 bool m_scheduleDefinitionsHasBeenSet = false;
272
273 Aws::String m_scheduleIdentifier;
274 bool m_scheduleIdentifierHasBeenSet = false;
275
276 Aws::String m_scheduleDescription;
277 bool m_scheduleDescriptionHasBeenSet = false;
278
279 Aws::Vector<Tag> m_tags;
280 bool m_tagsHasBeenSet = false;
281
282 bool m_dryRun;
283 bool m_dryRunHasBeenSet = false;
284
285 int m_nextInvocations;
286 bool m_nextInvocationsHasBeenSet = false;
287 };
288
289} // namespace Model
290} // namespace Redshift
291} // namespace Aws
#define AWS_REDSHIFT_API
CreateSnapshotScheduleRequest & AddTags(const Tag &value)
CreateSnapshotScheduleRequest & WithScheduleIdentifier(const char *value)
void SetScheduleDefinitions(Aws::Vector< Aws::String > &&value)
CreateSnapshotScheduleRequest & WithScheduleDefinitions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
CreateSnapshotScheduleRequest & AddScheduleDefinitions(const char *value)
CreateSnapshotScheduleRequest & AddScheduleDefinitions(Aws::String &&value)
CreateSnapshotScheduleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSnapshotScheduleRequest & WithDryRun(bool value)
CreateSnapshotScheduleRequest & AddTags(Tag &&value)
CreateSnapshotScheduleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSnapshotScheduleRequest & WithScheduleDescription(const Aws::String &value)
CreateSnapshotScheduleRequest & WithScheduleDefinitions(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateSnapshotScheduleRequest & WithScheduleDescription(Aws::String &&value)
CreateSnapshotScheduleRequest & WithScheduleDescription(const char *value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateSnapshotScheduleRequest & WithScheduleIdentifier(Aws::String &&value)
CreateSnapshotScheduleRequest & WithScheduleIdentifier(const Aws::String &value)
CreateSnapshotScheduleRequest & WithNextInvocations(int value)
CreateSnapshotScheduleRequest & AddScheduleDefinitions(const Aws::String &value)
void SetScheduleDefinitions(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector