AWS SDK for C++  0.12.9
AWS SDK for C++
DBClusterSnapshot.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace RDS
32 {
33 namespace Model
34 {
35 
43  {
44  public:
47  DBClusterSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
56  inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
57 
62  inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
63 
68  inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
69 
74  inline DBClusterSnapshot& WithAvailabilityZones(const Aws::Vector<Aws::String>& value) { SetAvailabilityZones(value); return *this;}
75 
80  inline DBClusterSnapshot& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(value); return *this;}
81 
86  inline DBClusterSnapshot& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
87 
92  inline DBClusterSnapshot& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
93 
98  inline DBClusterSnapshot& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
99 
103  inline const Aws::String& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; }
104 
108  inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
109 
113  inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
114 
118  inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); }
119 
123  inline DBClusterSnapshot& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
124 
128  inline DBClusterSnapshot& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
129 
133  inline DBClusterSnapshot& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(value); return *this;}
134 
139  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
140 
145  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
146 
151  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
152 
157  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
158 
163  inline DBClusterSnapshot& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
164 
169  inline DBClusterSnapshot& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(value); return *this;}
170 
175  inline DBClusterSnapshot& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
176 
181  inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const{ return m_snapshotCreateTime; }
182 
187  inline void SetSnapshotCreateTime(const Aws::Utils::DateTime& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; }
188 
193  inline void SetSnapshotCreateTime(Aws::Utils::DateTime&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; }
194 
199  inline DBClusterSnapshot& WithSnapshotCreateTime(const Aws::Utils::DateTime& value) { SetSnapshotCreateTime(value); return *this;}
200 
205  inline DBClusterSnapshot& WithSnapshotCreateTime(Aws::Utils::DateTime&& value) { SetSnapshotCreateTime(value); return *this;}
206 
210  inline const Aws::String& GetEngine() const{ return m_engine; }
211 
215  inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
216 
220  inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = value; }
221 
225  inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
226 
230  inline DBClusterSnapshot& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
231 
235  inline DBClusterSnapshot& WithEngine(Aws::String&& value) { SetEngine(value); return *this;}
236 
240  inline DBClusterSnapshot& WithEngine(const char* value) { SetEngine(value); return *this;}
241 
245  inline long GetAllocatedStorage() const{ return m_allocatedStorage; }
246 
250  inline void SetAllocatedStorage(long value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
251 
255  inline DBClusterSnapshot& WithAllocatedStorage(long value) { SetAllocatedStorage(value); return *this;}
256 
260  inline const Aws::String& GetStatus() const{ return m_status; }
261 
265  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
266 
270  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
271 
275  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
276 
280  inline DBClusterSnapshot& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
281 
285  inline DBClusterSnapshot& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
286 
290  inline DBClusterSnapshot& WithStatus(const char* value) { SetStatus(value); return *this;}
291 
296  inline long GetPort() const{ return m_port; }
297 
302  inline void SetPort(long value) { m_portHasBeenSet = true; m_port = value; }
303 
308  inline DBClusterSnapshot& WithPort(long value) { SetPort(value); return *this;}
309 
313  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
314 
318  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
319 
323  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
324 
328  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
329 
333  inline DBClusterSnapshot& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
334 
338  inline DBClusterSnapshot& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
339 
343  inline DBClusterSnapshot& WithVpcId(const char* value) { SetVpcId(value); return *this;}
344 
349  inline const Aws::Utils::DateTime& GetClusterCreateTime() const{ return m_clusterCreateTime; }
350 
355  inline void SetClusterCreateTime(const Aws::Utils::DateTime& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = value; }
356 
361  inline void SetClusterCreateTime(Aws::Utils::DateTime&& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = value; }
362 
367  inline DBClusterSnapshot& WithClusterCreateTime(const Aws::Utils::DateTime& value) { SetClusterCreateTime(value); return *this;}
368 
373  inline DBClusterSnapshot& WithClusterCreateTime(Aws::Utils::DateTime&& value) { SetClusterCreateTime(value); return *this;}
374 
378  inline const Aws::String& GetMasterUsername() const{ return m_masterUsername; }
379 
383  inline void SetMasterUsername(const Aws::String& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = value; }
384 
388  inline void SetMasterUsername(Aws::String&& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = value; }
389 
393  inline void SetMasterUsername(const char* value) { m_masterUsernameHasBeenSet = true; m_masterUsername.assign(value); }
394 
398  inline DBClusterSnapshot& WithMasterUsername(const Aws::String& value) { SetMasterUsername(value); return *this;}
399 
403  inline DBClusterSnapshot& WithMasterUsername(Aws::String&& value) { SetMasterUsername(value); return *this;}
404 
408  inline DBClusterSnapshot& WithMasterUsername(const char* value) { SetMasterUsername(value); return *this;}
409 
413  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
414 
418  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
419 
423  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
424 
428  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
429 
433  inline DBClusterSnapshot& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
434 
438  inline DBClusterSnapshot& WithEngineVersion(Aws::String&& value) { SetEngineVersion(value); return *this;}
439 
443  inline DBClusterSnapshot& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
444 
448  inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; }
449 
453  inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
454 
458  inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
459 
463  inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); }
464 
468  inline DBClusterSnapshot& WithLicenseModel(const Aws::String& value) { SetLicenseModel(value); return *this;}
469 
473  inline DBClusterSnapshot& WithLicenseModel(Aws::String&& value) { SetLicenseModel(value); return *this;}
474 
478  inline DBClusterSnapshot& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;}
479 
483  inline const Aws::String& GetSnapshotType() const{ return m_snapshotType; }
484 
488  inline void SetSnapshotType(const Aws::String& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
489 
493  inline void SetSnapshotType(Aws::String&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
494 
498  inline void SetSnapshotType(const char* value) { m_snapshotTypeHasBeenSet = true; m_snapshotType.assign(value); }
499 
503  inline DBClusterSnapshot& WithSnapshotType(const Aws::String& value) { SetSnapshotType(value); return *this;}
504 
508  inline DBClusterSnapshot& WithSnapshotType(Aws::String&& value) { SetSnapshotType(value); return *this;}
509 
513  inline DBClusterSnapshot& WithSnapshotType(const char* value) { SetSnapshotType(value); return *this;}
514 
518  inline long GetPercentProgress() const{ return m_percentProgress; }
519 
523  inline void SetPercentProgress(long value) { m_percentProgressHasBeenSet = true; m_percentProgress = value; }
524 
528  inline DBClusterSnapshot& WithPercentProgress(long value) { SetPercentProgress(value); return *this;}
529 
533  inline bool GetStorageEncrypted() const{ return m_storageEncrypted; }
534 
538  inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
539 
543  inline DBClusterSnapshot& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
544 
549  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
550 
555  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
556 
561  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
562 
567  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
568 
573  inline DBClusterSnapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
574 
579  inline DBClusterSnapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
580 
585  inline DBClusterSnapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
586 
587  private:
588  Aws::Vector<Aws::String> m_availabilityZones;
589  bool m_availabilityZonesHasBeenSet;
590  Aws::String m_dBClusterSnapshotIdentifier;
591  bool m_dBClusterSnapshotIdentifierHasBeenSet;
592  Aws::String m_dBClusterIdentifier;
593  bool m_dBClusterIdentifierHasBeenSet;
594  Aws::Utils::DateTime m_snapshotCreateTime;
595  bool m_snapshotCreateTimeHasBeenSet;
596  Aws::String m_engine;
597  bool m_engineHasBeenSet;
598  long m_allocatedStorage;
599  bool m_allocatedStorageHasBeenSet;
600  Aws::String m_status;
601  bool m_statusHasBeenSet;
602  long m_port;
603  bool m_portHasBeenSet;
604  Aws::String m_vpcId;
605  bool m_vpcIdHasBeenSet;
606  Aws::Utils::DateTime m_clusterCreateTime;
607  bool m_clusterCreateTimeHasBeenSet;
608  Aws::String m_masterUsername;
609  bool m_masterUsernameHasBeenSet;
610  Aws::String m_engineVersion;
611  bool m_engineVersionHasBeenSet;
612  Aws::String m_licenseModel;
613  bool m_licenseModelHasBeenSet;
614  Aws::String m_snapshotType;
615  bool m_snapshotTypeHasBeenSet;
616  long m_percentProgress;
617  bool m_percentProgressHasBeenSet;
618  bool m_storageEncrypted;
619  bool m_storageEncryptedHasBeenSet;
620  Aws::String m_kmsKeyId;
621  bool m_kmsKeyIdHasBeenSet;
622  };
623 
624 } // namespace Model
625 } // namespace RDS
626 } // namespace Aws
DBClusterSnapshot & WithVpcId(const Aws::String &value)
void SetKmsKeyId(Aws::String &&value)
const Aws::String & GetSnapshotType() const
const Aws::String & GetMasterUsername() const
DBClusterSnapshot & WithStatus(const Aws::String &value)
DBClusterSnapshot & WithSnapshotCreateTime(Aws::Utils::DateTime &&value)
void SetEngineVersion(Aws::String &&value)
void SetEngine(Aws::String &&value)
DBClusterSnapshot & WithStatus(const char *value)
void SetDBClusterSnapshotIdentifier(Aws::String &&value)
void SetStatus(Aws::String &&value)
const Aws::String & GetDBClusterSnapshotIdentifier() const
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:34
DBClusterSnapshot & WithEngine(const Aws::String &value)
DBClusterSnapshot & WithSnapshotType(Aws::String &&value)
DBClusterSnapshot & WithSnapshotCreateTime(const Aws::Utils::DateTime &value)
DBClusterSnapshot & WithDBClusterSnapshotIdentifier(const Aws::String &value)
DBClusterSnapshot & WithEngine(const char *value)
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
DBClusterSnapshot & WithEngineVersion(const Aws::String &value)
DBClusterSnapshot & WithEngineVersion(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
DBClusterSnapshot & WithVpcId(const char *value)
DBClusterSnapshot & WithSnapshotType(const char *value)
void SetDBClusterIdentifier(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DBClusterSnapshot & WithKmsKeyId(const char *value)
void SetSnapshotType(const Aws::String &value)
DBClusterSnapshot & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
void SetSnapshotType(const char *value)
DBClusterSnapshot & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
DBClusterSnapshot & WithMasterUsername(Aws::String &&value)
DBClusterSnapshot & WithDBClusterIdentifier(const char *value)
void SetSnapshotType(Aws::String &&value)
DBClusterSnapshot & WithKmsKeyId(Aws::String &&value)
DBClusterSnapshot & WithLicenseModel(Aws::String &&value)
DBClusterSnapshot & WithEngine(Aws::String &&value)
void SetDBClusterSnapshotIdentifier(const Aws::String &value)
DBClusterSnapshot & WithMasterUsername(const char *value)
DBClusterSnapshot & WithSnapshotType(const Aws::String &value)
DBClusterSnapshot & WithDBClusterIdentifier(Aws::String &&value)
void SetLicenseModel(const Aws::String &value)
DBClusterSnapshot & WithLicenseModel(const Aws::String &value)
void SetClusterCreateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetKmsKeyId() const
DBClusterSnapshot & WithAllocatedStorage(long value)
DBClusterSnapshot & WithPort(long value)
DBClusterSnapshot & WithClusterCreateTime(const Aws::Utils::DateTime &value)
DBClusterSnapshot & WithVpcId(Aws::String &&value)
void SetEngineVersion(const char *value)
DBClusterSnapshot & WithStatus(Aws::String &&value)
const Aws::String & GetEngineVersion() const
DBClusterSnapshot & WithDBClusterSnapshotIdentifier(Aws::String &&value)
DBClusterSnapshot & AddAvailabilityZones(Aws::String &&value)
DBClusterSnapshot & WithClusterCreateTime(Aws::Utils::DateTime &&value)
void SetMasterUsername(const Aws::String &value)
void SetDBClusterSnapshotIdentifier(const char *value)
void SetStatus(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DBClusterSnapshot & WithLicenseModel(const char *value)
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
void SetMasterUsername(Aws::String &&value)
DBClusterSnapshot & WithMasterUsername(const Aws::String &value)
void SetClusterCreateTime(const Aws::Utils::DateTime &value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
DBClusterSnapshot & WithDBClusterSnapshotIdentifier(const char *value)
const Aws::String & GetDBClusterIdentifier() const
void SetLicenseModel(Aws::String &&value)
const Aws::String & GetLicenseModel() const
void SetSnapshotCreateTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetClusterCreateTime() const
void SetVpcId(Aws::String &&value)
void SetSnapshotCreateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetVpcId() const
DBClusterSnapshot & WithKmsKeyId(const Aws::String &value)
DBClusterSnapshot & WithPercentProgress(long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DBClusterSnapshot & AddAvailabilityZones(const char *value)
DBClusterSnapshot & AddAvailabilityZones(const Aws::String &value)
const Aws::String & GetStatus() const
void SetKmsKeyId(const char *value)
void SetKmsKeyId(const Aws::String &value)
DBClusterSnapshot & WithEngineVersion(const char *value)
void SetVpcId(const Aws::String &value)
DBClusterSnapshot & WithStorageEncrypted(bool value)
void SetEngine(const Aws::String &value)
void SetLicenseModel(const char *value)
void SetEngineVersion(const Aws::String &value)
void SetDBClusterIdentifier(const char *value)
void SetDBClusterIdentifier(Aws::String &&value)
void SetMasterUsername(const char *value)
const Aws::String & GetEngine() const
DBClusterSnapshot & WithDBClusterIdentifier(const Aws::String &value)
JSON (JavaScript Object Notation).