AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSnapshotCopyConfigurationRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace RedshiftServerless
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_REDSHIFTSERVERLESS_API CreateSnapshotCopyConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotCopyConfiguration"; }
31
32 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetDestinationKmsKeyId() const { return m_destinationKmsKeyId; }
43 inline bool DestinationKmsKeyIdHasBeenSet() const { return m_destinationKmsKeyIdHasBeenSet; }
44 template<typename DestinationKmsKeyIdT = Aws::String>
45 void SetDestinationKmsKeyId(DestinationKmsKeyIdT&& value) { m_destinationKmsKeyIdHasBeenSet = true; m_destinationKmsKeyId = std::forward<DestinationKmsKeyIdT>(value); }
46 template<typename DestinationKmsKeyIdT = Aws::String>
47 CreateSnapshotCopyConfigurationRequest& WithDestinationKmsKeyId(DestinationKmsKeyIdT&& value) { SetDestinationKmsKeyId(std::forward<DestinationKmsKeyIdT>(value)); return *this;}
49
51
55 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
56 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
57 template<typename DestinationRegionT = Aws::String>
58 void SetDestinationRegion(DestinationRegionT&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::forward<DestinationRegionT>(value); }
59 template<typename DestinationRegionT = Aws::String>
60 CreateSnapshotCopyConfigurationRequest& WithDestinationRegion(DestinationRegionT&& value) { SetDestinationRegion(std::forward<DestinationRegionT>(value)); return *this;}
62
64
67 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
68 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
69 template<typename NamespaceNameT = Aws::String>
70 void SetNamespaceName(NamespaceNameT&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::forward<NamespaceNameT>(value); }
71 template<typename NamespaceNameT = Aws::String>
72 CreateSnapshotCopyConfigurationRequest& WithNamespaceName(NamespaceNameT&& value) { SetNamespaceName(std::forward<NamespaceNameT>(value)); return *this;}
74
76
80 inline int GetSnapshotRetentionPeriod() const { return m_snapshotRetentionPeriod; }
81 inline bool SnapshotRetentionPeriodHasBeenSet() const { return m_snapshotRetentionPeriodHasBeenSet; }
82 inline void SetSnapshotRetentionPeriod(int value) { m_snapshotRetentionPeriodHasBeenSet = true; m_snapshotRetentionPeriod = value; }
85 private:
86
87 Aws::String m_destinationKmsKeyId;
88 bool m_destinationKmsKeyIdHasBeenSet = false;
89
90 Aws::String m_destinationRegion;
91 bool m_destinationRegionHasBeenSet = false;
92
93 Aws::String m_namespaceName;
94 bool m_namespaceNameHasBeenSet = false;
95
96 int m_snapshotRetentionPeriod{0};
97 bool m_snapshotRetentionPeriodHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace RedshiftServerless
102} // namespace Aws
CreateSnapshotCopyConfigurationRequest & WithDestinationRegion(DestinationRegionT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSnapshotCopyConfigurationRequest & WithNamespaceName(NamespaceNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
AWS_REDSHIFTSERVERLESS_API CreateSnapshotCopyConfigurationRequest()=default
CreateSnapshotCopyConfigurationRequest & WithDestinationKmsKeyId(DestinationKmsKeyIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String