AWS SDK for C++  1.9.160
AWS SDK for C++
EnableSnapshotCopyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "EnableSnapshotCopy"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
47  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
48 
54  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
55 
61  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
62 
68  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
69 
75  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
76 
82  inline EnableSnapshotCopyRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
83 
89  inline EnableSnapshotCopyRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
90 
96  inline EnableSnapshotCopyRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
97 
98 
106  inline const Aws::String& GetDestinationRegion() const{ return m_destinationRegion; }
107 
115  inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
116 
124  inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
125 
133  inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::move(value); }
134 
142  inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
143 
151  inline EnableSnapshotCopyRequest& WithDestinationRegion(const Aws::String& value) { SetDestinationRegion(value); return *this;}
152 
160  inline EnableSnapshotCopyRequest& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(std::move(value)); return *this;}
161 
169  inline EnableSnapshotCopyRequest& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
170 
171 
177  inline int GetRetentionPeriod() const{ return m_retentionPeriod; }
178 
184  inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
185 
191  inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
192 
198  inline EnableSnapshotCopyRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
199 
200 
205  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
206 
211  inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
212 
217  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
218 
223  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
224 
229  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
230 
235  inline EnableSnapshotCopyRequest& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
236 
241  inline EnableSnapshotCopyRequest& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(std::move(value)); return *this;}
242 
247  inline EnableSnapshotCopyRequest& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
248 
249 
256  inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
257 
264  inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
265 
272  inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
273 
280  inline EnableSnapshotCopyRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;}
281 
282  private:
283 
284  Aws::String m_clusterIdentifier;
285  bool m_clusterIdentifierHasBeenSet;
286 
287  Aws::String m_destinationRegion;
288  bool m_destinationRegionHasBeenSet;
289 
290  int m_retentionPeriod;
291  bool m_retentionPeriodHasBeenSet;
292 
293  Aws::String m_snapshotCopyGrantName;
294  bool m_snapshotCopyGrantNameHasBeenSet;
295 
296  int m_manualSnapshotRetentionPeriod;
297  bool m_manualSnapshotRetentionPeriodHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace Redshift
302 } // namespace Aws
Aws::Redshift::Model::EnableSnapshotCopyRequest::RetentionPeriodHasBeenSet
bool RetentionPeriodHasBeenSet() const
Definition: EnableSnapshotCopyRequest.h:184
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetDestinationRegion
void SetDestinationRegion(const char *value)
Definition: EnableSnapshotCopyRequest.h:142
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::EnableSnapshotCopyRequest::DestinationRegionHasBeenSet
bool DestinationRegionHasBeenSet() const
Definition: EnableSnapshotCopyRequest.h:115
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithManualSnapshotRetentionPeriod
EnableSnapshotCopyRequest & WithManualSnapshotRetentionPeriod(int value)
Definition: EnableSnapshotCopyRequest.h:280
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithSnapshotCopyGrantName
EnableSnapshotCopyRequest & WithSnapshotCopyGrantName(const char *value)
Definition: EnableSnapshotCopyRequest.h:247
Aws::Redshift::Model::EnableSnapshotCopyRequest::ManualSnapshotRetentionPeriodHasBeenSet
bool ManualSnapshotRetentionPeriodHasBeenSet() const
Definition: EnableSnapshotCopyRequest.h:264
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetManualSnapshotRetentionPeriod
void SetManualSnapshotRetentionPeriod(int value)
Definition: EnableSnapshotCopyRequest.h:272
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(Aws::String &&value)
Definition: EnableSnapshotCopyRequest.h:223
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetDestinationRegion
void SetDestinationRegion(Aws::String &&value)
Definition: EnableSnapshotCopyRequest.h:133
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithSnapshotCopyGrantName
EnableSnapshotCopyRequest & WithSnapshotCopyGrantName(const Aws::String &value)
Definition: EnableSnapshotCopyRequest.h:235
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithRetentionPeriod
EnableSnapshotCopyRequest & WithRetentionPeriod(int value)
Definition: EnableSnapshotCopyRequest.h:198
RedshiftRequest.h
Aws::Redshift::Model::EnableSnapshotCopyRequest::GetDestinationRegion
const Aws::String & GetDestinationRegion() const
Definition: EnableSnapshotCopyRequest.h:106
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithDestinationRegion
EnableSnapshotCopyRequest & WithDestinationRegion(Aws::String &&value)
Definition: EnableSnapshotCopyRequest.h:160
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithClusterIdentifier
EnableSnapshotCopyRequest & WithClusterIdentifier(const Aws::String &value)
Definition: EnableSnapshotCopyRequest.h:82
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: EnableSnapshotCopyRequest.h:75
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithClusterIdentifier
EnableSnapshotCopyRequest & WithClusterIdentifier(const char *value)
Definition: EnableSnapshotCopyRequest.h:96
Aws::Redshift::Model::EnableSnapshotCopyRequest::EnableSnapshotCopyRequest
EnableSnapshotCopyRequest()
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithDestinationRegion
EnableSnapshotCopyRequest & WithDestinationRegion(const Aws::String &value)
Definition: EnableSnapshotCopyRequest.h:151
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithSnapshotCopyGrantName
EnableSnapshotCopyRequest & WithSnapshotCopyGrantName(Aws::String &&value)
Definition: EnableSnapshotCopyRequest.h:241
Aws::Redshift::Model::EnableSnapshotCopyRequest::GetManualSnapshotRetentionPeriod
int GetManualSnapshotRetentionPeriod() const
Definition: EnableSnapshotCopyRequest.h:256
Aws::Redshift::Model::EnableSnapshotCopyRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: EnableSnapshotCopyRequest.h:47
Aws::Redshift::Model::EnableSnapshotCopyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::EnableSnapshotCopyRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: EnableSnapshotCopyRequest.h:54
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithClusterIdentifier
EnableSnapshotCopyRequest & WithClusterIdentifier(Aws::String &&value)
Definition: EnableSnapshotCopyRequest.h:89
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetRetentionPeriod
void SetRetentionPeriod(int value)
Definition: EnableSnapshotCopyRequest.h:191
AWSString.h
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const Aws::String &value)
Definition: EnableSnapshotCopyRequest.h:217
Aws::Redshift::Model::EnableSnapshotCopyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const char *value)
Definition: EnableSnapshotCopyRequest.h:229
Aws::Redshift::Model::EnableSnapshotCopyRequest::GetSnapshotCopyGrantName
const Aws::String & GetSnapshotCopyGrantName() const
Definition: EnableSnapshotCopyRequest.h:205
Aws::Redshift::Model::EnableSnapshotCopyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableSnapshotCopyRequest.h:33
Aws::Redshift::Model::EnableSnapshotCopyRequest::WithDestinationRegion
EnableSnapshotCopyRequest & WithDestinationRegion(const char *value)
Definition: EnableSnapshotCopyRequest.h:169
Aws::Redshift::Model::EnableSnapshotCopyRequest::SnapshotCopyGrantNameHasBeenSet
bool SnapshotCopyGrantNameHasBeenSet() const
Definition: EnableSnapshotCopyRequest.h:211
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: EnableSnapshotCopyRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::EnableSnapshotCopyRequest::GetRetentionPeriod
int GetRetentionPeriod() const
Definition: EnableSnapshotCopyRequest.h:177
Aws::Redshift::Model::EnableSnapshotCopyRequest
Definition: EnableSnapshotCopyRequest.h:25
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: EnableSnapshotCopyRequest.h:68
Aws::Redshift::Model::EnableSnapshotCopyRequest::SetDestinationRegion
void SetDestinationRegion(const Aws::String &value)
Definition: EnableSnapshotCopyRequest.h:124