AWS SDK for C++  1.9.104
AWS SDK for C++
SnapshotSchedule.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/redshift/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace Redshift
27 {
28 namespace Model
29 {
30 
39  {
40  public:
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  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 
72  inline SnapshotSchedule& WithScheduleDefinitions(const Aws::Vector<Aws::String>& value) { SetScheduleDefinitions(value); return *this;}
73 
77  inline SnapshotSchedule& WithScheduleDefinitions(Aws::Vector<Aws::String>&& value) { SetScheduleDefinitions(std::move(value)); return *this;}
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 
241  inline SnapshotSchedule& WithNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { SetNextInvocations(value); return *this;}
242 
246  inline SnapshotSchedule& WithNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { SetNextInvocations(std::move(value)); return *this;}
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 
277  inline SnapshotSchedule& WithAssociatedClusterCount(int value) { SetAssociatedClusterCount(value); return *this;}
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 
308  inline SnapshotSchedule& WithAssociatedClusters(const Aws::Vector<ClusterAssociatedToSchedule>& value) { SetAssociatedClusters(value); return *this;}
309 
314  inline SnapshotSchedule& WithAssociatedClusters(Aws::Vector<ClusterAssociatedToSchedule>&& value) { SetAssociatedClusters(std::move(value)); return *this;}
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;
351 
352  Aws::String m_scheduleIdentifier;
353  bool m_scheduleIdentifierHasBeenSet;
354 
355  Aws::String m_scheduleDescription;
356  bool m_scheduleDescriptionHasBeenSet;
357 
358  Aws::Vector<Tag> m_tags;
359  bool m_tagsHasBeenSet;
360 
361  Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
362  bool m_nextInvocationsHasBeenSet;
363 
364  int m_associatedClusterCount;
365  bool m_associatedClusterCountHasBeenSet;
366 
367  Aws::Vector<ClusterAssociatedToSchedule> m_associatedClusters;
368  bool m_associatedClustersHasBeenSet;
369 
370  ResponseMetadata m_responseMetadata;
371  bool m_responseMetadataHasBeenSet;
372  };
373 
374 } // namespace Model
375 } // namespace Redshift
376 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::SnapshotSchedule::ScheduleIdentifierHasBeenSet
bool ScheduleIdentifierHasBeenSet() const
Definition: SnapshotSchedule.h:103
Aws::Redshift::Model::SnapshotSchedule::WithAssociatedClusters
SnapshotSchedule & WithAssociatedClusters(const Aws::Vector< ClusterAssociatedToSchedule > &value)
Definition: SnapshotSchedule.h:308
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::SnapshotSchedule::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: SnapshotSchedule.h:330
Aws::Redshift::Model::SnapshotSchedule::SetAssociatedClusters
void SetAssociatedClusters(const Aws::Vector< ClusterAssociatedToSchedule > &value)
Definition: SnapshotSchedule.h:296
Aws::Redshift::Model::SnapshotSchedule::AddTags
SnapshotSchedule & AddTags(const Tag &value)
Definition: SnapshotSchedule.h:210
Aws::Redshift::Model::SnapshotSchedule::WithAssociatedClusterCount
SnapshotSchedule & WithAssociatedClusterCount(int value)
Definition: SnapshotSchedule.h:277
Aws::Redshift::Model::SnapshotSchedule::SetScheduleDefinitions
void SetScheduleDefinitions(Aws::Vector< Aws::String > &&value)
Definition: SnapshotSchedule.h:67
Aws::Redshift::Model::SnapshotSchedule::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: SnapshotSchedule.h:336
Aws::Redshift::Model::SnapshotSchedule::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: SnapshotSchedule.h:190
DateTime.h
Tag.h
Aws::Redshift::Model::SnapshotSchedule::AddNextInvocations
SnapshotSchedule & AddNextInvocations(const Aws::Utils::DateTime &value)
Definition: SnapshotSchedule.h:251
Aws::Redshift::Model::SnapshotSchedule::SetScheduleDescription
void SetScheduleDescription(const Aws::String &value)
Definition: SnapshotSchedule.h:149
Aws::Redshift::Model::SnapshotSchedule::WithScheduleDescription
SnapshotSchedule & WithScheduleDescription(const Aws::String &value)
Definition: SnapshotSchedule.h:164
Aws::Redshift::Model::SnapshotSchedule::WithScheduleDescription
SnapshotSchedule & WithScheduleDescription(Aws::String &&value)
Definition: SnapshotSchedule.h:169
Aws::Redshift::Model::SnapshotSchedule::operator=
SnapshotSchedule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::SnapshotSchedule::WithResponseMetadata
SnapshotSchedule & WithResponseMetadata(const ResponseMetadata &value)
Definition: SnapshotSchedule.h:342
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::SnapshotSchedule::GetScheduleIdentifier
const Aws::String & GetScheduleIdentifier() const
Definition: SnapshotSchedule.h:98
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::SnapshotSchedule::SetScheduleDefinitions
void SetScheduleDefinitions(const Aws::Vector< Aws::String > &value)
Definition: SnapshotSchedule.h:62
Aws::Redshift::Model::ClusterAssociatedToSchedule
Definition: ClusterAssociatedToSchedule.h:33
Aws::Redshift::Model::SnapshotSchedule::SetNextInvocations
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: SnapshotSchedule.h:236
Aws::Redshift::Model::SnapshotSchedule::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: SnapshotSchedule.h:195
Aws::Redshift::Model::SnapshotSchedule::WithTags
SnapshotSchedule & WithTags(Aws::Vector< Tag > &&value)
Definition: SnapshotSchedule.h:205
Aws::Redshift::Model::SnapshotSchedule::GetAssociatedClusterCount
int GetAssociatedClusterCount() const
Definition: SnapshotSchedule.h:262
ClusterAssociatedToSchedule.h
Aws::Redshift::Model::SnapshotSchedule::WithScheduleDefinitions
SnapshotSchedule & WithScheduleDefinitions(const Aws::Vector< Aws::String > &value)
Definition: SnapshotSchedule.h:72
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::SnapshotSchedule::AddAssociatedClusters
SnapshotSchedule & AddAssociatedClusters(ClusterAssociatedToSchedule &&value)
Definition: SnapshotSchedule.h:326
Aws::Redshift::Model::SnapshotSchedule::AssociatedClusterCountHasBeenSet
bool AssociatedClusterCountHasBeenSet() const
Definition: SnapshotSchedule.h:267
Aws::Redshift::Model::SnapshotSchedule::WithScheduleIdentifier
SnapshotSchedule & WithScheduleIdentifier(const char *value)
Definition: SnapshotSchedule.h:133
Aws::Redshift::Model::SnapshotSchedule::GetNextInvocations
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
Definition: SnapshotSchedule.h:221
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::SnapshotSchedule::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::SnapshotSchedule::SetNextInvocations
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: SnapshotSchedule.h:231
Aws::Redshift::Model::SnapshotSchedule::AddScheduleDefinitions
SnapshotSchedule & AddScheduleDefinitions(const Aws::String &value)
Definition: SnapshotSchedule.h:82
Aws::Redshift::Model::SnapshotSchedule::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: SnapshotSchedule.h:180
Aws::Redshift::Model::SnapshotSchedule::AddNextInvocations
SnapshotSchedule & AddNextInvocations(Aws::Utils::DateTime &&value)
Definition: SnapshotSchedule.h:256
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::SnapshotSchedule::WithTags
SnapshotSchedule & WithTags(const Aws::Vector< Tag > &value)
Definition: SnapshotSchedule.h:200
Aws::Redshift::Model::SnapshotSchedule::SetScheduleDescription
void SetScheduleDescription(Aws::String &&value)
Definition: SnapshotSchedule.h:154
Aws::Redshift::Model::SnapshotSchedule::WithScheduleIdentifier
SnapshotSchedule & WithScheduleIdentifier(Aws::String &&value)
Definition: SnapshotSchedule.h:128
AWSString.h
Aws::Redshift::Model::SnapshotSchedule::GetScheduleDescription
const Aws::String & GetScheduleDescription() const
Definition: SnapshotSchedule.h:139
Aws::Redshift::Model::SnapshotSchedule::GetScheduleDefinitions
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
Definition: SnapshotSchedule.h:52
Aws::Redshift::Model::SnapshotSchedule::AddAssociatedClusters
SnapshotSchedule & AddAssociatedClusters(const ClusterAssociatedToSchedule &value)
Definition: SnapshotSchedule.h:320
Aws::Redshift::Model::SnapshotSchedule::ScheduleDescriptionHasBeenSet
bool ScheduleDescriptionHasBeenSet() const
Definition: SnapshotSchedule.h:144
Aws::Redshift::Model::SnapshotSchedule::AddTags
SnapshotSchedule & AddTags(Tag &&value)
Definition: SnapshotSchedule.h:215
Aws::Redshift::Model::SnapshotSchedule::WithResponseMetadata
SnapshotSchedule & WithResponseMetadata(ResponseMetadata &&value)
Definition: SnapshotSchedule.h:345
Aws::Redshift::Model::SnapshotSchedule::WithAssociatedClusters
SnapshotSchedule & WithAssociatedClusters(Aws::Vector< ClusterAssociatedToSchedule > &&value)
Definition: SnapshotSchedule.h:314
Aws::Redshift::Model::SnapshotSchedule::SetScheduleDescription
void SetScheduleDescription(const char *value)
Definition: SnapshotSchedule.h:159
Aws::Redshift::Model::SnapshotSchedule::SetScheduleIdentifier
void SetScheduleIdentifier(const Aws::String &value)
Definition: SnapshotSchedule.h:108
Aws::Redshift::Model::SnapshotSchedule::SnapshotSchedule
SnapshotSchedule()
Aws::Redshift::Model::SnapshotSchedule::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: SnapshotSchedule.h:339
Aws::Redshift::Model::SnapshotSchedule::SnapshotSchedule
SnapshotSchedule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::SnapshotSchedule::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::SnapshotSchedule::WithNextInvocations
SnapshotSchedule & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: SnapshotSchedule.h:241
Aws::Redshift::Model::SnapshotSchedule::WithScheduleDefinitions
SnapshotSchedule & WithScheduleDefinitions(Aws::Vector< Aws::String > &&value)
Definition: SnapshotSchedule.h:77
Aws::Redshift::Model::SnapshotSchedule::ScheduleDefinitionsHasBeenSet
bool ScheduleDefinitionsHasBeenSet() const
Definition: SnapshotSchedule.h:57
Aws::Redshift::Model::SnapshotSchedule
Definition: SnapshotSchedule.h:39
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::SnapshotSchedule::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: SnapshotSchedule.h:185
Aws::Redshift::Model::SnapshotSchedule::WithNextInvocations
SnapshotSchedule & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: SnapshotSchedule.h:246
Redshift_EXPORTS.h
Aws::Redshift::Model::SnapshotSchedule::WithScheduleDescription
SnapshotSchedule & WithScheduleDescription(const char *value)
Definition: SnapshotSchedule.h:174
Aws::Redshift::Model::SnapshotSchedule::AddScheduleDefinitions
SnapshotSchedule & AddScheduleDefinitions(Aws::String &&value)
Definition: SnapshotSchedule.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::SnapshotSchedule::AssociatedClustersHasBeenSet
bool AssociatedClustersHasBeenSet() const
Definition: SnapshotSchedule.h:290
index
int index
Definition: cJSON.h:181
ResponseMetadata.h
Aws::Redshift::Model::SnapshotSchedule::AddScheduleDefinitions
SnapshotSchedule & AddScheduleDefinitions(const char *value)
Definition: SnapshotSchedule.h:92
Aws::Redshift::Model::SnapshotSchedule::SetScheduleIdentifier
void SetScheduleIdentifier(const char *value)
Definition: SnapshotSchedule.h:118
Aws::Redshift::Model::SnapshotSchedule::NextInvocationsHasBeenSet
bool NextInvocationsHasBeenSet() const
Definition: SnapshotSchedule.h:226
Aws::Redshift::Model::SnapshotSchedule::SetAssociatedClusterCount
void SetAssociatedClusterCount(int value)
Definition: SnapshotSchedule.h:272
Aws::Redshift::Model::SnapshotSchedule::ResponseMetadataHasBeenSet
bool ResponseMetadataHasBeenSet() const
Definition: SnapshotSchedule.h:333
Aws::Redshift::Model::SnapshotSchedule::WithScheduleIdentifier
SnapshotSchedule & WithScheduleIdentifier(const Aws::String &value)
Definition: SnapshotSchedule.h:123
Aws::Redshift::Model::SnapshotSchedule::SetAssociatedClusters
void SetAssociatedClusters(Aws::Vector< ClusterAssociatedToSchedule > &&value)
Definition: SnapshotSchedule.h:302
Aws::Redshift::Model::SnapshotSchedule::SetScheduleIdentifier
void SetScheduleIdentifier(Aws::String &&value)
Definition: SnapshotSchedule.h:113
Aws::Redshift::Model::SnapshotSchedule::GetAssociatedClusters
const Aws::Vector< ClusterAssociatedToSchedule > & GetAssociatedClusters() const
Definition: SnapshotSchedule.h:284