AWS SDK for C++  0.14.3
AWS SDK for C++
EnableSnapshotCopyRequest.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 
41  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
42 
48  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
49 
55  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
56 
62  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
63 
69  inline EnableSnapshotCopyRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
70 
76  inline EnableSnapshotCopyRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
77 
83  inline EnableSnapshotCopyRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
84 
91  inline const Aws::String& GetDestinationRegion() const{ return m_destinationRegion; }
92 
99  inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
100 
107  inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
108 
115  inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
116 
123  inline EnableSnapshotCopyRequest& WithDestinationRegion(const Aws::String& value) { SetDestinationRegion(value); return *this;}
124 
131  inline EnableSnapshotCopyRequest& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(value); return *this;}
132 
139  inline EnableSnapshotCopyRequest& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
140 
146  inline int GetRetentionPeriod() const{ return m_retentionPeriod; }
147 
153  inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
154 
160  inline EnableSnapshotCopyRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
161 
166  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
167 
172  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
173 
178  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
179 
184  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
185 
190  inline EnableSnapshotCopyRequest& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
191 
196  inline EnableSnapshotCopyRequest& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(value); return *this;}
197 
202  inline EnableSnapshotCopyRequest& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
203 
204  private:
205  Aws::String m_clusterIdentifier;
206  bool m_clusterIdentifierHasBeenSet;
207  Aws::String m_destinationRegion;
208  bool m_destinationRegionHasBeenSet;
209  int m_retentionPeriod;
210  bool m_retentionPeriodHasBeenSet;
211  Aws::String m_snapshotCopyGrantName;
212  bool m_snapshotCopyGrantNameHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace Redshift
217 } // namespace Aws
EnableSnapshotCopyRequest & WithSnapshotCopyGrantName(Aws::String &&value)
EnableSnapshotCopyRequest & WithSnapshotCopyGrantName(const char *value)
EnableSnapshotCopyRequest & WithDestinationRegion(Aws::String &&value)
EnableSnapshotCopyRequest & WithRetentionPeriod(int value)
#define AWS_REDSHIFT_API
EnableSnapshotCopyRequest & WithClusterIdentifier(Aws::String &&value)
EnableSnapshotCopyRequest & WithDestinationRegion(const char *value)
EnableSnapshotCopyRequest & WithSnapshotCopyGrantName(const Aws::String &value)
EnableSnapshotCopyRequest & WithDestinationRegion(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EnableSnapshotCopyRequest & WithClusterIdentifier(const Aws::String &value)
EnableSnapshotCopyRequest & WithClusterIdentifier(const char *value)
JSON (JavaScript Object Notation).