AWS SDK for C++  1.8.71
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 
57  inline const Aws::String& GetSourceDBClusterSnapshotIdentifier() const{ return m_sourceDBClusterSnapshotIdentifier; }
58 
72  inline bool SourceDBClusterSnapshotIdentifierHasBeenSet() const { return m_sourceDBClusterSnapshotIdentifierHasBeenSet; }
73 
87  inline void SetSourceDBClusterSnapshotIdentifier(const Aws::String& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = value; }
88 
102  inline void SetSourceDBClusterSnapshotIdentifier(Aws::String&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = std::move(value); }
103 
117  inline void SetSourceDBClusterSnapshotIdentifier(const char* value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier.assign(value); }
118 
132  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(const Aws::String& value) { SetSourceDBClusterSnapshotIdentifier(value); return *this;}
133 
147  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(Aws::String&& value) { SetSourceDBClusterSnapshotIdentifier(std::move(value)); return *this;}
148 
162  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(const char* value) { SetSourceDBClusterSnapshotIdentifier(value); return *this;}
163 
164 
173  inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const{ return m_targetDBClusterSnapshotIdentifier; }
174 
183  inline bool TargetDBClusterSnapshotIdentifierHasBeenSet() const { return m_targetDBClusterSnapshotIdentifierHasBeenSet; }
184 
193  inline void SetTargetDBClusterSnapshotIdentifier(const Aws::String& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = value; }
194 
203  inline void SetTargetDBClusterSnapshotIdentifier(Aws::String&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = std::move(value); }
204 
213  inline void SetTargetDBClusterSnapshotIdentifier(const char* value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier.assign(value); }
214 
223  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(const Aws::String& value) { SetTargetDBClusterSnapshotIdentifier(value); return *this;}
224 
233  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(Aws::String&& value) { SetTargetDBClusterSnapshotIdentifier(std::move(value)); return *this;}
234 
243  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(const char* value) { SetTargetDBClusterSnapshotIdentifier(value); return *this;}
244 
245 
264  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
265 
284  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
285 
304  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
305 
324  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
325 
344  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
345 
364  inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
365 
384  inline CopyDBClusterSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
385 
404  inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
405 
406 
444  inline const Aws::String& GetPreSignedUrl() const{ return m_preSignedUrl; }
445 
483  inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
484 
522  inline void SetPreSignedUrl(const Aws::String& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = value; }
523 
561  inline void SetPreSignedUrl(Aws::String&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::move(value); }
562 
600  inline void SetPreSignedUrl(const char* value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl.assign(value); }
601 
639  inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const Aws::String& value) { SetPreSignedUrl(value); return *this;}
640 
678  inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(Aws::String&& value) { SetPreSignedUrl(std::move(value)); return *this;}
679 
717  inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const char* value) { SetPreSignedUrl(value); return *this;}
718 
719 
724  inline bool GetCopyTags() const{ return m_copyTags; }
725 
730  inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
731 
736  inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
737 
742  inline CopyDBClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
743 
744 
745 
746  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
747 
748 
749  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
750 
751 
752  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
753 
754 
755  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
756 
757 
758  inline CopyDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
759 
760 
761  inline CopyDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
762 
763 
764  inline CopyDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
765 
766 
767  inline CopyDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
768 
769  private:
770 
771  Aws::String m_sourceDBClusterSnapshotIdentifier;
772  bool m_sourceDBClusterSnapshotIdentifierHasBeenSet;
773 
774  Aws::String m_targetDBClusterSnapshotIdentifier;
775  bool m_targetDBClusterSnapshotIdentifierHasBeenSet;
776 
777  Aws::String m_kmsKeyId;
778  bool m_kmsKeyIdHasBeenSet;
779 
780  Aws::String m_preSignedUrl;
781  bool m_preSignedUrlHasBeenSet;
782 
783  bool m_copyTags;
784  bool m_copyTagsHasBeenSet;
785 
786  Aws::Vector<Tag> m_tags;
787  bool m_tagsHasBeenSet;
788  };
789 
790 } // namespace Model
791 } // namespace RDS
792 } // namespace Aws
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
CopyDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CopyDBClusterSnapshotRequest & WithKmsKeyId(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const char *value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const char *value)
CopyDBClusterSnapshotRequest & AddTags(Tag &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const Aws::String &value)
void SetSourceDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & AddTags(const Tag &value)
void SetTargetDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithCopyTags(bool value)