AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SnapshotSchedule.h
Go to the documentation of this file.
1
6#pragma once
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift
27{
28namespace Model
29{
30
39 {
40 public:
44
45 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
52 inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const{ return m_scheduleDefinitions; }
53
57 inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; }
58
62 inline void SetScheduleDefinitions(const Aws::Vector<Aws::String>& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = value; }
63
67 inline void SetScheduleDefinitions(Aws::Vector<Aws::String>&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::move(value); }
68
73
78
82 inline SnapshotSchedule& AddScheduleDefinitions(const Aws::String& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
83
87 inline SnapshotSchedule& AddScheduleDefinitions(Aws::String&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(std::move(value)); return *this; }
88
92 inline SnapshotSchedule& AddScheduleDefinitions(const char* value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
93
94
98 inline const Aws::String& GetScheduleIdentifier() const{ return m_scheduleIdentifier; }
99
103 inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
104
108 inline void SetScheduleIdentifier(const Aws::String& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = value; }
109
113 inline void SetScheduleIdentifier(Aws::String&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::move(value); }
114
118 inline void SetScheduleIdentifier(const char* value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier.assign(value); }
119
123 inline SnapshotSchedule& WithScheduleIdentifier(const Aws::String& value) { SetScheduleIdentifier(value); return *this;}
124
128 inline SnapshotSchedule& WithScheduleIdentifier(Aws::String&& value) { SetScheduleIdentifier(std::move(value)); return *this;}
129
133 inline SnapshotSchedule& WithScheduleIdentifier(const char* value) { SetScheduleIdentifier(value); return *this;}
134
135
139 inline const Aws::String& GetScheduleDescription() const{ return m_scheduleDescription; }
140
144 inline bool ScheduleDescriptionHasBeenSet() const { return m_scheduleDescriptionHasBeenSet; }
145
149 inline void SetScheduleDescription(const Aws::String& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = value; }
150
154 inline void SetScheduleDescription(Aws::String&& value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription = std::move(value); }
155
159 inline void SetScheduleDescription(const char* value) { m_scheduleDescriptionHasBeenSet = true; m_scheduleDescription.assign(value); }
160
164 inline SnapshotSchedule& WithScheduleDescription(const Aws::String& value) { SetScheduleDescription(value); return *this;}
165
169 inline SnapshotSchedule& WithScheduleDescription(Aws::String&& value) { SetScheduleDescription(std::move(value)); return *this;}
170
174 inline SnapshotSchedule& WithScheduleDescription(const char* value) { SetScheduleDescription(value); return *this;}
175
176
180 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
181
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186
190 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
191
195 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
196
200 inline SnapshotSchedule& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
201
205 inline SnapshotSchedule& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
206
210 inline SnapshotSchedule& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
211
215 inline SnapshotSchedule& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
216
217
221 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const{ return m_nextInvocations; }
222
226 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
227
231 inline void SetNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
232
236 inline void SetNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = std::move(value); }
237
242
247
251 inline SnapshotSchedule& AddNextInvocations(const Aws::Utils::DateTime& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(value); return *this; }
252
256 inline SnapshotSchedule& AddNextInvocations(Aws::Utils::DateTime&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(std::move(value)); return *this; }
257
258
262 inline int GetAssociatedClusterCount() const{ return m_associatedClusterCount; }
263
267 inline bool AssociatedClusterCountHasBeenSet() const { return m_associatedClusterCountHasBeenSet; }
268
272 inline void SetAssociatedClusterCount(int value) { m_associatedClusterCountHasBeenSet = true; m_associatedClusterCount = value; }
273
278
279
284 inline const Aws::Vector<ClusterAssociatedToSchedule>& GetAssociatedClusters() const{ return m_associatedClusters; }
285
290 inline bool AssociatedClustersHasBeenSet() const { return m_associatedClustersHasBeenSet; }
291
296 inline void SetAssociatedClusters(const Aws::Vector<ClusterAssociatedToSchedule>& value) { m_associatedClustersHasBeenSet = true; m_associatedClusters = value; }
297
302 inline void SetAssociatedClusters(Aws::Vector<ClusterAssociatedToSchedule>&& value) { m_associatedClustersHasBeenSet = true; m_associatedClusters = std::move(value); }
303
309
315
320 inline SnapshotSchedule& AddAssociatedClusters(const ClusterAssociatedToSchedule& value) { m_associatedClustersHasBeenSet = true; m_associatedClusters.push_back(value); return *this; }
321
326 inline SnapshotSchedule& AddAssociatedClusters(ClusterAssociatedToSchedule&& value) { m_associatedClustersHasBeenSet = true; m_associatedClusters.push_back(std::move(value)); return *this; }
327
328
329
330 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
331
332
333 inline bool ResponseMetadataHasBeenSet() const { return m_responseMetadataHasBeenSet; }
334
335
336 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = value; }
337
338
339 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::move(value); }
340
341
342 inline SnapshotSchedule& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
343
344
345 inline SnapshotSchedule& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
346
347 private:
348
349 Aws::Vector<Aws::String> m_scheduleDefinitions;
350 bool m_scheduleDefinitionsHasBeenSet = false;
351
352 Aws::String m_scheduleIdentifier;
353 bool m_scheduleIdentifierHasBeenSet = false;
354
355 Aws::String m_scheduleDescription;
356 bool m_scheduleDescriptionHasBeenSet = false;
357
358 Aws::Vector<Tag> m_tags;
359 bool m_tagsHasBeenSet = false;
360
361 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
362 bool m_nextInvocationsHasBeenSet = false;
363
364 int m_associatedClusterCount;
365 bool m_associatedClusterCountHasBeenSet = false;
366
367 Aws::Vector<ClusterAssociatedToSchedule> m_associatedClusters;
368 bool m_associatedClustersHasBeenSet = false;
369
370 ResponseMetadata m_responseMetadata;
371 bool m_responseMetadataHasBeenSet = false;
372 };
373
374} // namespace Model
375} // namespace Redshift
376} // namespace Aws
#define AWS_REDSHIFT_API
SnapshotSchedule & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
SnapshotSchedule & AddTags(Tag &&value)
SnapshotSchedule & WithScheduleDescription(const char *value)
const Aws::String & GetScheduleIdentifier() const
SnapshotSchedule & WithAssociatedClusters(Aws::Vector< ClusterAssociatedToSchedule > &&value)
void SetScheduleDescription(const char *value)
SnapshotSchedule & WithAssociatedClusterCount(int value)
void SetScheduleIdentifier(Aws::String &&value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetScheduleIdentifier(const Aws::String &value)
SnapshotSchedule & WithScheduleIdentifier(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
SnapshotSchedule & AddAssociatedClusters(const ClusterAssociatedToSchedule &value)
SnapshotSchedule & WithScheduleDescription(Aws::String &&value)
void SetScheduleDefinitions(const Aws::Vector< Aws::String > &value)
SnapshotSchedule & AddScheduleDefinitions(const Aws::String &value)
SnapshotSchedule & WithScheduleDescription(const Aws::String &value)
void SetScheduleDescription(Aws::String &&value)
AWS_REDSHIFT_API SnapshotSchedule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotSchedule & AddAssociatedClusters(ClusterAssociatedToSchedule &&value)
void SetAssociatedClusters(const Aws::Vector< ClusterAssociatedToSchedule > &value)
SnapshotSchedule & WithScheduleIdentifier(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
void SetResponseMetadata(ResponseMetadata &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API SnapshotSchedule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(Aws::Vector< Tag > &&value)
SnapshotSchedule & WithScheduleDefinitions(Aws::Vector< Aws::String > &&value)
SnapshotSchedule & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
SnapshotSchedule & AddScheduleDefinitions(Aws::String &&value)
SnapshotSchedule & WithScheduleDefinitions(const Aws::Vector< Aws::String > &value)
const Aws::Vector< ClusterAssociatedToSchedule > & GetAssociatedClusters() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotSchedule & WithAssociatedClusters(const Aws::Vector< ClusterAssociatedToSchedule > &value)
SnapshotSchedule & WithTags(const Aws::Vector< Tag > &value)
SnapshotSchedule & AddScheduleDefinitions(const char *value)
SnapshotSchedule & WithTags(Aws::Vector< Tag > &&value)
SnapshotSchedule & WithResponseMetadata(ResponseMetadata &&value)
SnapshotSchedule & AddNextInvocations(Aws::Utils::DateTime &&value)
void SetScheduleDefinitions(Aws::Vector< Aws::String > &&value)
SnapshotSchedule & WithScheduleIdentifier(const char *value)
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
void SetAssociatedClusters(Aws::Vector< ClusterAssociatedToSchedule > &&value)
const ResponseMetadata & GetResponseMetadata() const
SnapshotSchedule & AddNextInvocations(const Aws::Utils::DateTime &value)
const Aws::String & GetScheduleDescription() const
void SetScheduleIdentifier(const char *value)
SnapshotSchedule & AddTags(const Tag &value)
void SetScheduleDescription(const Aws::String &value)
SnapshotSchedule & WithResponseMetadata(const ResponseMetadata &value)
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream