AWS SDK for C++  0.12.9
AWS SDK for C++
CreateClusterSnapshotRequest.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
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
46  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
47 
56  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
57 
66  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
67 
76  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
77 
86  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
87 
96  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(value); return *this;}
97 
106  inline CreateClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
107 
111  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
112 
116  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
117 
121  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
122 
126  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
127 
131  inline CreateClusterSnapshotRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
132 
136  inline CreateClusterSnapshotRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
137 
141  inline CreateClusterSnapshotRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
142 
146  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
147 
151  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
152 
156  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 
161  inline CreateClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
162 
166  inline CreateClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
167 
171  inline CreateClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
172 
176  inline CreateClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
177 
178  private:
179  Aws::String m_snapshotIdentifier;
180  bool m_snapshotIdentifierHasBeenSet;
181  Aws::String m_clusterIdentifier;
182  bool m_clusterIdentifierHasBeenSet;
183  Aws::Vector<Tag> m_tags;
184  bool m_tagsHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace Redshift
189 } // namespace Aws
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateClusterSnapshotRequest & WithClusterIdentifier(const Aws::String &value)
#define AWS_REDSHIFT_API
CreateClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
CreateClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateClusterSnapshotRequest & AddTags(Tag &&value)
CreateClusterSnapshotRequest & WithClusterIdentifier(const char *value)
CreateClusterSnapshotRequest & WithClusterIdentifier(Aws::String &&value)
CreateClusterSnapshotRequest & AddTags(const Tag &value)
CreateClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
JSON (JavaScript Object Notation).