AWS SDK for C++  0.14.3
AWS SDK for C++
DeleteClusterRequest.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 Redshift
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
43  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
44 
52  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
53 
61  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
62 
70  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
71 
79  inline DeleteClusterRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
80 
88  inline DeleteClusterRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
89 
97  inline DeleteClusterRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
98 
107  inline bool GetSkipFinalClusterSnapshot() const{ return m_skipFinalClusterSnapshot; }
108 
117  inline void SetSkipFinalClusterSnapshot(bool value) { m_skipFinalClusterSnapshotHasBeenSet = true; m_skipFinalClusterSnapshot = value; }
118 
127  inline DeleteClusterRequest& WithSkipFinalClusterSnapshot(bool value) { SetSkipFinalClusterSnapshot(value); return *this;}
128 
137  inline const Aws::String& GetFinalClusterSnapshotIdentifier() const{ return m_finalClusterSnapshotIdentifier; }
138 
147  inline void SetFinalClusterSnapshotIdentifier(const Aws::String& value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier = value; }
148 
157  inline void SetFinalClusterSnapshotIdentifier(Aws::String&& value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier = value; }
158 
167  inline void SetFinalClusterSnapshotIdentifier(const char* value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier.assign(value); }
168 
177  inline DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(const Aws::String& value) { SetFinalClusterSnapshotIdentifier(value); return *this;}
178 
187  inline DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(Aws::String&& value) { SetFinalClusterSnapshotIdentifier(value); return *this;}
188 
197  inline DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(const char* value) { SetFinalClusterSnapshotIdentifier(value); return *this;}
198 
199  private:
200  Aws::String m_clusterIdentifier;
201  bool m_clusterIdentifierHasBeenSet;
202  bool m_skipFinalClusterSnapshot;
203  bool m_skipFinalClusterSnapshotHasBeenSet;
204  Aws::String m_finalClusterSnapshotIdentifier;
205  bool m_finalClusterSnapshotIdentifierHasBeenSet;
206  };
207 
208 } // namespace Model
209 } // namespace Redshift
210 } // namespace Aws
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(Aws::String &&value)
void SetClusterIdentifier(const Aws::String &value)
DeleteClusterRequest & WithClusterIdentifier(const Aws::String &value)
void SetFinalClusterSnapshotIdentifier(Aws::String &&value)
DeleteClusterRequest & WithSkipFinalClusterSnapshot(bool value)
#define AWS_REDSHIFT_API
DeleteClusterRequest & WithClusterIdentifier(const char *value)
const Aws::String & GetClusterIdentifier() const
const Aws::String & GetFinalClusterSnapshotIdentifier() const
void SetFinalClusterSnapshotIdentifier(const char *value)
void SetFinalClusterSnapshotIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(const char *value)
DeleteClusterRequest & WithClusterIdentifier(Aws::String &&value)
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(const Aws::String &value)
JSON (JavaScript Object Notation).