AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSnapshotCopyConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RedshiftServerless {
15namespace Model {
16
20 public:
21 AWS_REDSHIFTSERVERLESS_API CreateSnapshotCopyConfigurationRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotCopyConfiguration"; }
28
29 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
30
31 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetDestinationKmsKeyId() const { return m_destinationKmsKeyId; }
39 inline bool DestinationKmsKeyIdHasBeenSet() const { return m_destinationKmsKeyIdHasBeenSet; }
40 template <typename DestinationKmsKeyIdT = Aws::String>
41 void SetDestinationKmsKeyId(DestinationKmsKeyIdT&& value) {
42 m_destinationKmsKeyIdHasBeenSet = true;
43 m_destinationKmsKeyId = std::forward<DestinationKmsKeyIdT>(value);
44 }
45 template <typename DestinationKmsKeyIdT = Aws::String>
47 SetDestinationKmsKeyId(std::forward<DestinationKmsKeyIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
58 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
59 template <typename DestinationRegionT = Aws::String>
60 void SetDestinationRegion(DestinationRegionT&& value) {
61 m_destinationRegionHasBeenSet = true;
62 m_destinationRegion = std::forward<DestinationRegionT>(value);
63 }
64 template <typename DestinationRegionT = Aws::String>
66 SetDestinationRegion(std::forward<DestinationRegionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
76 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
77 template <typename NamespaceNameT = Aws::String>
78 void SetNamespaceName(NamespaceNameT&& value) {
79 m_namespaceNameHasBeenSet = true;
80 m_namespaceName = std::forward<NamespaceNameT>(value);
81 }
82 template <typename NamespaceNameT = Aws::String>
84 SetNamespaceName(std::forward<NamespaceNameT>(value));
85 return *this;
86 }
88
90
94 inline int GetSnapshotRetentionPeriod() const { return m_snapshotRetentionPeriod; }
95 inline bool SnapshotRetentionPeriodHasBeenSet() const { return m_snapshotRetentionPeriodHasBeenSet; }
96 inline void SetSnapshotRetentionPeriod(int value) {
97 m_snapshotRetentionPeriodHasBeenSet = true;
98 m_snapshotRetentionPeriod = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_destinationKmsKeyId;
107
108 Aws::String m_destinationRegion;
109
110 Aws::String m_namespaceName;
111
112 int m_snapshotRetentionPeriod{0};
113 bool m_destinationKmsKeyIdHasBeenSet = false;
114 bool m_destinationRegionHasBeenSet = false;
115 bool m_namespaceNameHasBeenSet = false;
116 bool m_snapshotRetentionPeriodHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace RedshiftServerless
121} // 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