AWS SDK for C++  0.14.3
AWS SDK for C++
CreateSnapshotRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace ElastiCache
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
40  inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
41 
46  inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
47 
52  inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
53 
58  inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
59 
64  inline CreateSnapshotRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
65 
70  inline CreateSnapshotRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(value); return *this;}
71 
76  inline CreateSnapshotRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
77 
81  inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
82 
86  inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
87 
91  inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
92 
96  inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
97 
101  inline CreateSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
102 
106  inline CreateSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(value); return *this;}
107 
111  inline CreateSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
112 
113  private:
114  Aws::String m_cacheClusterId;
115  bool m_cacheClusterIdHasBeenSet;
116  Aws::String m_snapshotName;
117  bool m_snapshotNameHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace ElastiCache
122 } // namespace Aws
CreateSnapshotRequest & WithSnapshotName(const Aws::String &value)
CreateSnapshotRequest & WithCacheClusterId(Aws::String &&value)
CreateSnapshotRequest & WithSnapshotName(Aws::String &&value)
CreateSnapshotRequest & WithSnapshotName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
CreateSnapshotRequest & WithCacheClusterId(const char *value)
CreateSnapshotRequest & WithCacheClusterId(const Aws::String &value)
JSON (JavaScript Object Notation).