AWS SDK for C++  1.9.107
AWS SDK for C++
CopyDBClusterSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CopyDBClusterSnapshot"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
58  inline const Aws::String& GetSourceDBClusterSnapshotIdentifier() const{ return m_sourceDBClusterSnapshotIdentifier; }
59 
74  inline bool SourceDBClusterSnapshotIdentifierHasBeenSet() const { return m_sourceDBClusterSnapshotIdentifierHasBeenSet; }
75 
90  inline void SetSourceDBClusterSnapshotIdentifier(const Aws::String& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = value; }
91 
106  inline void SetSourceDBClusterSnapshotIdentifier(Aws::String&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = std::move(value); }
107 
122  inline void SetSourceDBClusterSnapshotIdentifier(const char* value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier.assign(value); }
123 
138  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(const Aws::String& value) { SetSourceDBClusterSnapshotIdentifier(value); return *this;}
139 
154  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(Aws::String&& value) { SetSourceDBClusterSnapshotIdentifier(std::move(value)); return *this;}
155 
170  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(const char* value) { SetSourceDBClusterSnapshotIdentifier(value); return *this;}
171 
172 
181  inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const{ return m_targetDBClusterSnapshotIdentifier; }
182 
191  inline bool TargetDBClusterSnapshotIdentifierHasBeenSet() const { return m_targetDBClusterSnapshotIdentifierHasBeenSet; }
192 
201  inline void SetTargetDBClusterSnapshotIdentifier(const Aws::String& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = value; }
202 
211  inline void SetTargetDBClusterSnapshotIdentifier(Aws::String&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = std::move(value); }
212 
221  inline void SetTargetDBClusterSnapshotIdentifier(const char* value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier.assign(value); }
222 
231  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(const Aws::String& value) { SetTargetDBClusterSnapshotIdentifier(value); return *this;}
232 
241  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(Aws::String&& value) { SetTargetDBClusterSnapshotIdentifier(std::move(value)); return *this;}
242 
251  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(const char* value) { SetTargetDBClusterSnapshotIdentifier(value); return *this;}
252 
253 
275  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
276 
298  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
299 
321  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
322 
344  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
345 
367  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
368 
390  inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
391 
413  inline CopyDBClusterSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
414 
436  inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
437 
438 
479  inline const Aws::String& GetPreSignedUrl() const{ return m_preSignedUrl; }
480 
521  inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
522 
563  inline void SetPreSignedUrl(const Aws::String& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = value; }
564 
605  inline void SetPreSignedUrl(Aws::String&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::move(value); }
606 
647  inline void SetPreSignedUrl(const char* value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl.assign(value); }
648 
689  inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const Aws::String& value) { SetPreSignedUrl(value); return *this;}
690 
731  inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(Aws::String&& value) { SetPreSignedUrl(std::move(value)); return *this;}
732 
773  inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const char* value) { SetPreSignedUrl(value); return *this;}
774 
775 
780  inline bool GetCopyTags() const{ return m_copyTags; }
781 
786  inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
787 
792  inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
793 
798  inline CopyDBClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
799 
800 
801 
802  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
803 
804 
805  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
806 
807 
808  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
809 
810 
811  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
812 
813 
814  inline CopyDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
815 
816 
817  inline CopyDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
818 
819 
820  inline CopyDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
821 
822 
823  inline CopyDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
824 
825 
829  inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
830 
834  inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
835 
839  inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
840 
844  inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
845 
849  inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
850 
854  inline CopyDBClusterSnapshotRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
855 
859  inline CopyDBClusterSnapshotRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
860 
864  inline CopyDBClusterSnapshotRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
865 
866  private:
867 
868  Aws::String m_sourceDBClusterSnapshotIdentifier;
869  bool m_sourceDBClusterSnapshotIdentifierHasBeenSet;
870 
871  Aws::String m_targetDBClusterSnapshotIdentifier;
872  bool m_targetDBClusterSnapshotIdentifierHasBeenSet;
873 
874  Aws::String m_kmsKeyId;
875  bool m_kmsKeyIdHasBeenSet;
876 
877  Aws::String m_preSignedUrl;
878  bool m_preSignedUrlHasBeenSet;
879 
880  bool m_copyTags;
881  bool m_copyTagsHasBeenSet;
882 
883  Aws::Vector<Tag> m_tags;
884  bool m_tagsHasBeenSet;
885 
886  Aws::String m_sourceRegion;
887  bool m_sourceRegionHasBeenSet;
888  };
889 
890 } // namespace Model
891 } // namespace RDS
892 } // namespace Aws
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetSourceRegion
void SetSourceRegion(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:844
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SourceDBClusterSnapshotIdentifierHasBeenSet
bool SourceDBClusterSnapshotIdentifierHasBeenSet() const
Definition: CopyDBClusterSnapshotRequest.h:74
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::CopyDBClusterSnapshotRequest::AddTags
CopyDBClusterSnapshotRequest & AddTags(const Tag &value)
Definition: CopyDBClusterSnapshotRequest.h:820
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithSourceDBClusterSnapshotIdentifier
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:154
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetTargetDBClusterSnapshotIdentifier
const Aws::String & GetTargetDBClusterSnapshotIdentifier() const
Definition: CopyDBClusterSnapshotRequest.h:181
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithPreSignedUrl
CopyDBClusterSnapshotRequest & WithPreSignedUrl(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:731
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CopyDBClusterSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithPreSignedUrl
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:773
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CopyDBClusterSnapshotRequest.h:808
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithPreSignedUrl
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:689
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetPreSignedUrl
void SetPreSignedUrl(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:605
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetPreSignedUrl
void SetPreSignedUrl(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:563
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CopyDBClusterSnapshotRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: CopyDBClusterSnapshotRequest.h:298
Aws::RDS::Model::CopyDBClusterSnapshotRequest::PreSignedUrlHasBeenSet
bool PreSignedUrlHasBeenSet() const
Definition: CopyDBClusterSnapshotRequest.h:521
Aws::RDS::Model::CopyDBClusterSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CopyDBClusterSnapshotRequest.h:805
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithKmsKeyId
CopyDBClusterSnapshotRequest & WithKmsKeyId(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:436
AWSVector.h
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CopyDBClusterSnapshotRequest.h:802
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithTargetDBClusterSnapshotIdentifier
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:251
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithTags
CopyDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CopyDBClusterSnapshotRequest.h:817
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:367
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:321
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetSourceRegion
void SetSourceRegion(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:839
RDS_EXPORTS.h
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetPreSignedUrl
void SetPreSignedUrl(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:647
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithCopyTags
CopyDBClusterSnapshotRequest & WithCopyTags(bool value)
Definition: CopyDBClusterSnapshotRequest.h:798
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithTargetDBClusterSnapshotIdentifier
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:231
Aws::RDS::Model::CopyDBClusterSnapshotRequest
Definition: CopyDBClusterSnapshotRequest.h:27
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetSourceDBClusterSnapshotIdentifier
const Aws::String & GetSourceDBClusterSnapshotIdentifier() const
Definition: CopyDBClusterSnapshotRequest.h:58
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetSourceDBClusterSnapshotIdentifier
void SetSourceDBClusterSnapshotIdentifier(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:122
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithSourceRegion
CopyDBClusterSnapshotRequest & WithSourceRegion(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:864
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetSourceRegion
const Aws::String & GetSourceRegion() const
Definition: CopyDBClusterSnapshotRequest.h:829
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetPreSignedUrl
const Aws::String & GetPreSignedUrl() const
Definition: CopyDBClusterSnapshotRequest.h:479
AWSString.h
Aws::RDS::Model::CopyDBClusterSnapshotRequest::CopyTagsHasBeenSet
bool CopyTagsHasBeenSet() const
Definition: CopyDBClusterSnapshotRequest.h:786
Aws::RDS::Model::CopyDBClusterSnapshotRequest::AddTags
CopyDBClusterSnapshotRequest & AddTags(Tag &&value)
Definition: CopyDBClusterSnapshotRequest.h:823
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetSourceRegion
void SetSourceRegion(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:849
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: CopyDBClusterSnapshotRequest.h:275
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithTargetDBClusterSnapshotIdentifier
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:241
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:344
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SourceRegionHasBeenSet
bool SourceRegionHasBeenSet() const
Definition: CopyDBClusterSnapshotRequest.h:834
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetTargetDBClusterSnapshotIdentifier
void SetTargetDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:201
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithSourceDBClusterSnapshotIdentifier
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:170
Aws::RDS::Model::CopyDBClusterSnapshotRequest::TargetDBClusterSnapshotIdentifierHasBeenSet
bool TargetDBClusterSnapshotIdentifierHasBeenSet() const
Definition: CopyDBClusterSnapshotRequest.h:191
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetCopyTags
void SetCopyTags(bool value)
Definition: CopyDBClusterSnapshotRequest.h:792
Aws::RDS::Model::CopyDBClusterSnapshotRequest::CopyDBClusterSnapshotRequest
CopyDBClusterSnapshotRequest()
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetSourceDBClusterSnapshotIdentifier
void SetSourceDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetTargetDBClusterSnapshotIdentifier
void SetTargetDBClusterSnapshotIdentifier(const char *value)
Definition: CopyDBClusterSnapshotRequest.h:221
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetSourceDBClusterSnapshotIdentifier
void SetSourceDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:90
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithSourceRegion
CopyDBClusterSnapshotRequest & WithSourceRegion(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:859
RDSRequest.h
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetTargetDBClusterSnapshotIdentifier
void SetTargetDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:211
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetCopyTags
bool GetCopyTags() const
Definition: CopyDBClusterSnapshotRequest.h:780
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithKmsKeyId
CopyDBClusterSnapshotRequest & WithKmsKeyId(Aws::String &&value)
Definition: CopyDBClusterSnapshotRequest.h:413
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithSourceRegion
CopyDBClusterSnapshotRequest & WithSourceRegion(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:854
Aws::RDS::Model::CopyDBClusterSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CopyDBClusterSnapshotRequest.h:35
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithSourceDBClusterSnapshotIdentifier
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:138
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithTags
CopyDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CopyDBClusterSnapshotRequest.h:814
Aws::RDS::Model::CopyDBClusterSnapshotRequest::WithKmsKeyId
CopyDBClusterSnapshotRequest & WithKmsKeyId(const Aws::String &value)
Definition: CopyDBClusterSnapshotRequest.h:390
Aws::RDS::Model::CopyDBClusterSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CopyDBClusterSnapshotRequest.h:811