AWS SDK for C++  1.8.71
AWS SDK for C++
CreateSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElastiCache
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
48 
53  inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
54 
59  inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
60 
65  inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
66 
71  inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
72 
77  inline CreateSnapshotRequest& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;}
78 
83  inline CreateSnapshotRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
84 
89  inline CreateSnapshotRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
90 
91 
96  inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
97 
102  inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
103 
108  inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
109 
114  inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
115 
120  inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
121 
126  inline CreateSnapshotRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
127 
132  inline CreateSnapshotRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
133 
138  inline CreateSnapshotRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
139 
140 
144  inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
145 
149  inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
150 
154  inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
155 
159  inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
160 
164  inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
165 
169  inline CreateSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
170 
174  inline CreateSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
175 
179  inline CreateSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
180 
181 
185  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
186 
190  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
191 
195  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
196 
200  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
201 
205  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
206 
210  inline CreateSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
211 
215  inline CreateSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
216 
220  inline CreateSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
221 
222  private:
223 
224  Aws::String m_replicationGroupId;
225  bool m_replicationGroupIdHasBeenSet;
226 
227  Aws::String m_cacheClusterId;
228  bool m_cacheClusterIdHasBeenSet;
229 
230  Aws::String m_snapshotName;
231  bool m_snapshotNameHasBeenSet;
232 
233  Aws::String m_kmsKeyId;
234  bool m_kmsKeyIdHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace ElastiCache
239 } // namespace Aws
CreateSnapshotRequest & WithSnapshotName(const Aws::String &value)
CreateSnapshotRequest & WithCacheClusterId(Aws::String &&value)
CreateSnapshotRequest & WithKmsKeyId(const Aws::String &value)
CreateSnapshotRequest & WithSnapshotName(Aws::String &&value)
CreateSnapshotRequest & WithReplicationGroupId(const Aws::String &value)
CreateSnapshotRequest & WithReplicationGroupId(Aws::String &&value)
CreateSnapshotRequest & WithSnapshotName(const char *value)
void SetReplicationGroupId(const Aws::String &value)
CreateSnapshotRequest & WithKmsKeyId(Aws::String &&value)
CreateSnapshotRequest & WithReplicationGroupId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
virtual const char * GetServiceRequestName() const override
CreateSnapshotRequest & WithCacheClusterId(const char *value)
CreateSnapshotRequest & WithCacheClusterId(const Aws::String &value)
CreateSnapshotRequest & WithKmsKeyId(const char *value)