AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RedshiftPropertiesPatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/RedshiftCredentials.h>
10#include <aws/datazone/model/RedshiftLineageSyncConfigurationInput.h>
11#include <aws/datazone/model/RedshiftStorageProperties.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataZone {
23namespace Model {
24
31 public:
32 AWS_DATAZONE_API RedshiftPropertiesPatch() = default;
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const RedshiftStorageProperties& GetStorage() const { return m_storage; }
42 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
43 template <typename StorageT = RedshiftStorageProperties>
44 void SetStorage(StorageT&& value) {
45 m_storageHasBeenSet = true;
46 m_storage = std::forward<StorageT>(value);
47 }
48 template <typename StorageT = RedshiftStorageProperties>
50 SetStorage(std::forward<StorageT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
60 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
61 template <typename DatabaseNameT = Aws::String>
62 void SetDatabaseName(DatabaseNameT&& value) {
63 m_databaseNameHasBeenSet = true;
64 m_databaseName = std::forward<DatabaseNameT>(value);
65 }
66 template <typename DatabaseNameT = Aws::String>
67 RedshiftPropertiesPatch& WithDatabaseName(DatabaseNameT&& value) {
68 SetDatabaseName(std::forward<DatabaseNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetHost() const { return m_host; }
78 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
79 template <typename HostT = Aws::String>
80 void SetHost(HostT&& value) {
81 m_hostHasBeenSet = true;
82 m_host = std::forward<HostT>(value);
83 }
84 template <typename HostT = Aws::String>
86 SetHost(std::forward<HostT>(value));
87 return *this;
88 }
90
92
95 inline int GetPort() const { return m_port; }
96 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
97 inline void SetPort(int value) {
98 m_portHasBeenSet = true;
99 m_port = value;
100 }
102 SetPort(value);
103 return *this;
104 }
106
108
111 inline const RedshiftCredentials& GetCredentials() const { return m_credentials; }
112 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
113 template <typename CredentialsT = RedshiftCredentials>
114 void SetCredentials(CredentialsT&& value) {
115 m_credentialsHasBeenSet = true;
116 m_credentials = std::forward<CredentialsT>(value);
117 }
118 template <typename CredentialsT = RedshiftCredentials>
120 SetCredentials(std::forward<CredentialsT>(value));
121 return *this;
122 }
124
126
129 inline const RedshiftLineageSyncConfigurationInput& GetLineageSync() const { return m_lineageSync; }
130 inline bool LineageSyncHasBeenSet() const { return m_lineageSyncHasBeenSet; }
131 template <typename LineageSyncT = RedshiftLineageSyncConfigurationInput>
132 void SetLineageSync(LineageSyncT&& value) {
133 m_lineageSyncHasBeenSet = true;
134 m_lineageSync = std::forward<LineageSyncT>(value);
135 }
136 template <typename LineageSyncT = RedshiftLineageSyncConfigurationInput>
138 SetLineageSync(std::forward<LineageSyncT>(value));
139 return *this;
140 }
142 private:
144
145 Aws::String m_databaseName;
146
147 Aws::String m_host;
148
149 int m_port{0};
150
151 RedshiftCredentials m_credentials;
152
153 RedshiftLineageSyncConfigurationInput m_lineageSync;
154 bool m_storageHasBeenSet = false;
155 bool m_databaseNameHasBeenSet = false;
156 bool m_hostHasBeenSet = false;
157 bool m_portHasBeenSet = false;
158 bool m_credentialsHasBeenSet = false;
159 bool m_lineageSyncHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace DataZone
164} // namespace Aws
AWS_DATAZONE_API RedshiftPropertiesPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const RedshiftStorageProperties & GetStorage() const
RedshiftPropertiesPatch & WithStorage(StorageT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
RedshiftPropertiesPatch & WithPort(int value)
RedshiftPropertiesPatch & WithCredentials(CredentialsT &&value)
RedshiftPropertiesPatch & WithLineageSync(LineageSyncT &&value)
const RedshiftCredentials & GetCredentials() const
RedshiftPropertiesPatch & WithHost(HostT &&value)
const RedshiftLineageSyncConfigurationInput & GetLineageSync() const
RedshiftPropertiesPatch & WithDatabaseName(DatabaseNameT &&value)
AWS_DATAZONE_API RedshiftPropertiesPatch(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API RedshiftPropertiesPatch()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue