AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SchemaResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9#include <aws/dms/model/DatabaseShortInfoResponse.h>
10#include <aws/dms/model/SchemaShortInfoResponse.h>
11#include <aws/dms/model/ServerShortInfoResponse.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService {
23namespace Model {
24
32 public:
33 AWS_DATABASEMIGRATIONSERVICE_API SchemaResponse() = default;
34 AWS_DATABASEMIGRATIONSERVICE_API SchemaResponse(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATABASEMIGRATIONSERVICE_API SchemaResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline long long GetCodeLineCount() const { return m_codeLineCount; }
44 inline bool CodeLineCountHasBeenSet() const { return m_codeLineCountHasBeenSet; }
45 inline void SetCodeLineCount(long long value) {
46 m_codeLineCountHasBeenSet = true;
47 m_codeLineCount = value;
48 }
49 inline SchemaResponse& WithCodeLineCount(long long value) {
50 SetCodeLineCount(value);
51 return *this;
52 }
54
56
60 inline long long GetCodeSize() const { return m_codeSize; }
61 inline bool CodeSizeHasBeenSet() const { return m_codeSizeHasBeenSet; }
62 inline void SetCodeSize(long long value) {
63 m_codeSizeHasBeenSet = true;
64 m_codeSize = value;
65 }
66 inline SchemaResponse& WithCodeSize(long long value) {
67 SetCodeSize(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetComplexity() const { return m_complexity; }
78 inline bool ComplexityHasBeenSet() const { return m_complexityHasBeenSet; }
79 template <typename ComplexityT = Aws::String>
80 void SetComplexity(ComplexityT&& value) {
81 m_complexityHasBeenSet = true;
82 m_complexity = std::forward<ComplexityT>(value);
83 }
84 template <typename ComplexityT = Aws::String>
85 SchemaResponse& WithComplexity(ComplexityT&& value) {
86 SetComplexity(std::forward<ComplexityT>(value));
87 return *this;
88 }
90
92
95 inline const ServerShortInfoResponse& GetServer() const { return m_server; }
96 inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; }
97 template <typename ServerT = ServerShortInfoResponse>
98 void SetServer(ServerT&& value) {
99 m_serverHasBeenSet = true;
100 m_server = std::forward<ServerT>(value);
101 }
102 template <typename ServerT = ServerShortInfoResponse>
103 SchemaResponse& WithServer(ServerT&& value) {
104 SetServer(std::forward<ServerT>(value));
105 return *this;
106 }
108
110
113 inline const DatabaseShortInfoResponse& GetDatabaseInstance() const { return m_databaseInstance; }
114 inline bool DatabaseInstanceHasBeenSet() const { return m_databaseInstanceHasBeenSet; }
115 template <typename DatabaseInstanceT = DatabaseShortInfoResponse>
116 void SetDatabaseInstance(DatabaseInstanceT&& value) {
117 m_databaseInstanceHasBeenSet = true;
118 m_databaseInstance = std::forward<DatabaseInstanceT>(value);
119 }
120 template <typename DatabaseInstanceT = DatabaseShortInfoResponse>
121 SchemaResponse& WithDatabaseInstance(DatabaseInstanceT&& value) {
122 SetDatabaseInstance(std::forward<DatabaseInstanceT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetSchemaId() const { return m_schemaId; }
132 inline bool SchemaIdHasBeenSet() const { return m_schemaIdHasBeenSet; }
133 template <typename SchemaIdT = Aws::String>
134 void SetSchemaId(SchemaIdT&& value) {
135 m_schemaIdHasBeenSet = true;
136 m_schemaId = std::forward<SchemaIdT>(value);
137 }
138 template <typename SchemaIdT = Aws::String>
139 SchemaResponse& WithSchemaId(SchemaIdT&& value) {
140 SetSchemaId(std::forward<SchemaIdT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
150 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
151 template <typename SchemaNameT = Aws::String>
152 void SetSchemaName(SchemaNameT&& value) {
153 m_schemaNameHasBeenSet = true;
154 m_schemaName = std::forward<SchemaNameT>(value);
155 }
156 template <typename SchemaNameT = Aws::String>
157 SchemaResponse& WithSchemaName(SchemaNameT&& value) {
158 SetSchemaName(std::forward<SchemaNameT>(value));
159 return *this;
160 }
162
164
165 inline const SchemaShortInfoResponse& GetOriginalSchema() const { return m_originalSchema; }
166 inline bool OriginalSchemaHasBeenSet() const { return m_originalSchemaHasBeenSet; }
167 template <typename OriginalSchemaT = SchemaShortInfoResponse>
168 void SetOriginalSchema(OriginalSchemaT&& value) {
169 m_originalSchemaHasBeenSet = true;
170 m_originalSchema = std::forward<OriginalSchemaT>(value);
171 }
172 template <typename OriginalSchemaT = SchemaShortInfoResponse>
173 SchemaResponse& WithOriginalSchema(OriginalSchemaT&& value) {
174 SetOriginalSchema(std::forward<OriginalSchemaT>(value));
175 return *this;
176 }
178
180
184 inline double GetSimilarity() const { return m_similarity; }
185 inline bool SimilarityHasBeenSet() const { return m_similarityHasBeenSet; }
186 inline void SetSimilarity(double value) {
187 m_similarityHasBeenSet = true;
188 m_similarity = value;
189 }
190 inline SchemaResponse& WithSimilarity(double value) {
191 SetSimilarity(value);
192 return *this;
193 }
195 private:
196 long long m_codeLineCount{0};
197
198 long long m_codeSize{0};
199
200 Aws::String m_complexity;
201
202 ServerShortInfoResponse m_server;
203
204 DatabaseShortInfoResponse m_databaseInstance;
205
206 Aws::String m_schemaId;
207
208 Aws::String m_schemaName;
209
210 SchemaShortInfoResponse m_originalSchema;
211
212 double m_similarity{0.0};
213 bool m_codeLineCountHasBeenSet = false;
214 bool m_codeSizeHasBeenSet = false;
215 bool m_complexityHasBeenSet = false;
216 bool m_serverHasBeenSet = false;
217 bool m_databaseInstanceHasBeenSet = false;
218 bool m_schemaIdHasBeenSet = false;
219 bool m_schemaNameHasBeenSet = false;
220 bool m_originalSchemaHasBeenSet = false;
221 bool m_similarityHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace DatabaseMigrationService
226} // namespace Aws
SchemaResponse & WithDatabaseInstance(DatabaseInstanceT &&value)
SchemaResponse & WithCodeSize(long long value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATABASEMIGRATIONSERVICE_API SchemaResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDatabaseInstance(DatabaseInstanceT &&value)
AWS_DATABASEMIGRATIONSERVICE_API SchemaResponse(Aws::Utils::Json::JsonView jsonValue)
SchemaResponse & WithOriginalSchema(OriginalSchemaT &&value)
const ServerShortInfoResponse & GetServer() const
AWS_DATABASEMIGRATIONSERVICE_API SchemaResponse()=default
SchemaResponse & WithCodeLineCount(long long value)
SchemaResponse & WithComplexity(ComplexityT &&value)
SchemaResponse & WithSchemaName(SchemaNameT &&value)
const DatabaseShortInfoResponse & GetDatabaseInstance() const
const SchemaShortInfoResponse & GetOriginalSchema() const
SchemaResponse & WithSchemaId(SchemaIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue