AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteReplicationGroupRequest.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& GetReplicationGroupId() const{ return m_replicationGroupId; }
41 
46  inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
47 
52  inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
53 
58  inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
59 
64  inline DeleteReplicationGroupRequest& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;}
65 
70  inline DeleteReplicationGroupRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(value); return *this;}
71 
76  inline DeleteReplicationGroupRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
77 
82  inline bool GetRetainPrimaryCluster() const{ return m_retainPrimaryCluster; }
83 
88  inline void SetRetainPrimaryCluster(bool value) { m_retainPrimaryClusterHasBeenSet = true; m_retainPrimaryCluster = value; }
89 
94  inline DeleteReplicationGroupRequest& WithRetainPrimaryCluster(bool value) { SetRetainPrimaryCluster(value); return *this;}
95 
102  inline const Aws::String& GetFinalSnapshotIdentifier() const{ return m_finalSnapshotIdentifier; }
103 
110  inline void SetFinalSnapshotIdentifier(const Aws::String& value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier = value; }
111 
118  inline void SetFinalSnapshotIdentifier(Aws::String&& value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier = value; }
119 
126  inline void SetFinalSnapshotIdentifier(const char* value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier.assign(value); }
127 
134  inline DeleteReplicationGroupRequest& WithFinalSnapshotIdentifier(const Aws::String& value) { SetFinalSnapshotIdentifier(value); return *this;}
135 
142  inline DeleteReplicationGroupRequest& WithFinalSnapshotIdentifier(Aws::String&& value) { SetFinalSnapshotIdentifier(value); return *this;}
143 
150  inline DeleteReplicationGroupRequest& WithFinalSnapshotIdentifier(const char* value) { SetFinalSnapshotIdentifier(value); return *this;}
151 
152  private:
153  Aws::String m_replicationGroupId;
154  bool m_replicationGroupIdHasBeenSet;
155  bool m_retainPrimaryCluster;
156  bool m_retainPrimaryClusterHasBeenSet;
157  Aws::String m_finalSnapshotIdentifier;
158  bool m_finalSnapshotIdentifierHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace ElastiCache
163 } // namespace Aws
DeleteReplicationGroupRequest & WithRetainPrimaryCluster(bool value)
DeleteReplicationGroupRequest & WithFinalSnapshotIdentifier(const Aws::String &value)
DeleteReplicationGroupRequest & WithReplicationGroupId(Aws::String &&value)
DeleteReplicationGroupRequest & WithFinalSnapshotIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteReplicationGroupRequest & WithFinalSnapshotIdentifier(const char *value)
DeleteReplicationGroupRequest & WithReplicationGroupId(const char *value)
DeleteReplicationGroupRequest & WithReplicationGroupId(const Aws::String &value)
#define AWS_ELASTICACHE_API
JSON (JavaScript Object Notation).