AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyServerlessCacheSnapshotRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CopyServerlessCacheSnapshot"; }
33
34 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::String& GetSourceServerlessCacheSnapshotName() const{ return m_sourceServerlessCacheSnapshotName; }
47 inline bool SourceServerlessCacheSnapshotNameHasBeenSet() const { return m_sourceServerlessCacheSnapshotNameHasBeenSet; }
48 inline void SetSourceServerlessCacheSnapshotName(const Aws::String& value) { m_sourceServerlessCacheSnapshotNameHasBeenSet = true; m_sourceServerlessCacheSnapshotName = value; }
49 inline void SetSourceServerlessCacheSnapshotName(Aws::String&& value) { m_sourceServerlessCacheSnapshotNameHasBeenSet = true; m_sourceServerlessCacheSnapshotName = std::move(value); }
50 inline void SetSourceServerlessCacheSnapshotName(const char* value) { m_sourceServerlessCacheSnapshotNameHasBeenSet = true; m_sourceServerlessCacheSnapshotName.assign(value); }
55
57
61 inline const Aws::String& GetTargetServerlessCacheSnapshotName() const{ return m_targetServerlessCacheSnapshotName; }
62 inline bool TargetServerlessCacheSnapshotNameHasBeenSet() const { return m_targetServerlessCacheSnapshotNameHasBeenSet; }
63 inline void SetTargetServerlessCacheSnapshotName(const Aws::String& value) { m_targetServerlessCacheSnapshotNameHasBeenSet = true; m_targetServerlessCacheSnapshotName = value; }
64 inline void SetTargetServerlessCacheSnapshotName(Aws::String&& value) { m_targetServerlessCacheSnapshotNameHasBeenSet = true; m_targetServerlessCacheSnapshotName = std::move(value); }
65 inline void SetTargetServerlessCacheSnapshotName(const char* value) { m_targetServerlessCacheSnapshotNameHasBeenSet = true; m_targetServerlessCacheSnapshotName.assign(value); }
70
72
76 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
77 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
78 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
79 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
80 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
81 inline CopyServerlessCacheSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
82 inline CopyServerlessCacheSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
83 inline CopyServerlessCacheSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
85
87
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CopyServerlessCacheSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CopyServerlessCacheSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CopyServerlessCacheSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CopyServerlessCacheSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_sourceServerlessCacheSnapshotName;
104 bool m_sourceServerlessCacheSnapshotNameHasBeenSet = false;
105
106 Aws::String m_targetServerlessCacheSnapshotName;
107 bool m_targetServerlessCacheSnapshotNameHasBeenSet = false;
108
109 Aws::String m_kmsKeyId;
110 bool m_kmsKeyIdHasBeenSet = false;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace ElastiCache
118} // namespace Aws
CopyServerlessCacheSnapshotRequest & WithSourceServerlessCacheSnapshotName(const Aws::String &value)
CopyServerlessCacheSnapshotRequest & WithKmsKeyId(Aws::String &&value)
CopyServerlessCacheSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CopyServerlessCacheSnapshotRequest & WithTargetServerlessCacheSnapshotName(Aws::String &&value)
CopyServerlessCacheSnapshotRequest & WithTargetServerlessCacheSnapshotName(const Aws::String &value)
CopyServerlessCacheSnapshotRequest & WithSourceServerlessCacheSnapshotName(Aws::String &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CopyServerlessCacheSnapshotRequest & WithSourceServerlessCacheSnapshotName(const char *value)
CopyServerlessCacheSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyServerlessCacheSnapshotRequest & AddTags(const Tag &value)
CopyServerlessCacheSnapshotRequest & WithKmsKeyId(const Aws::String &value)
CopyServerlessCacheSnapshotRequest & WithTargetServerlessCacheSnapshotName(const char *value)
CopyServerlessCacheSnapshotRequest & WithKmsKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector