AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSnapshotRequest.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
28 {
29 public:
30 AWS_ELASTICACHE_API CreateSnapshotRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
37
38 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
50 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
51 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
52 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
53 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
54 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
56 inline CreateSnapshotRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
57 inline CreateSnapshotRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
59
61
65 inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
66 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
67 inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
68 inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
69 inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
70 inline CreateSnapshotRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
71 inline CreateSnapshotRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
72 inline CreateSnapshotRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
74
76
79 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
80 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
81 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
82 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
83 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
84 inline CreateSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
85 inline CreateSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
86 inline CreateSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
88
90
93 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
94 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
95 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
96 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
97 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
98 inline CreateSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
99 inline CreateSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
100 inline CreateSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
102
104
108 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
111 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
112 inline CreateSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
113 inline CreateSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
114 inline CreateSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
115 inline CreateSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
117 private:
118
119 Aws::String m_replicationGroupId;
120 bool m_replicationGroupIdHasBeenSet = false;
121
122 Aws::String m_cacheClusterId;
123 bool m_cacheClusterIdHasBeenSet = false;
124
125 Aws::String m_snapshotName;
126 bool m_snapshotNameHasBeenSet = false;
127
128 Aws::String m_kmsKeyId;
129 bool m_kmsKeyIdHasBeenSet = false;
130
131 Aws::Vector<Tag> m_tags;
132 bool m_tagsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ElastiCache
137} // namespace Aws
CreateSnapshotRequest & WithKmsKeyId(const char *value)
CreateSnapshotRequest & WithKmsKeyId(const Aws::String &value)
CreateSnapshotRequest & WithSnapshotName(Aws::String &&value)
CreateSnapshotRequest & WithCacheClusterId(const Aws::String &value)
CreateSnapshotRequest & WithReplicationGroupId(Aws::String &&value)
CreateSnapshotRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateSnapshotRequest & WithCacheClusterId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateSnapshotRequest & WithSnapshotName(const Aws::String &value)
CreateSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSnapshotRequest & WithSnapshotName(const char *value)
CreateSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSnapshotRequest & WithReplicationGroupId(const Aws::String &value)
CreateSnapshotRequest & WithKmsKeyId(Aws::String &&value)
CreateSnapshotRequest & WithCacheClusterId(const char *value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateSnapshotRequest & WithReplicationGroupId(const char *value)
CreateSnapshotRequest & AddTags(Tag &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector