1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/machinelearning/MachineLearning_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/DateTime.h> 10 #include <aws/machinelearning/model/EntityStatus.h> 11 #include <aws/machinelearning/model/RedshiftMetadata.h> 12 #include <aws/machinelearning/model/RDSMetadata.h> 13 #include <utility> 14 15 namespace Aws 16 { 17 template<typename RESULT_TYPE> 18 class AmazonWebServiceResult; 19 20 namespace Utils 21 { 22 namespace Json 23 { 24 class JsonValue; 25 } // namespace Json 26 } // namespace Utils 27 namespace MachineLearning 28 { 29 namespace Model 30 { 31 /** 32 * <p>Represents the output of a <code>GetDataSource</code> operation and describes 33 * a <code>DataSource</code>.</p><p><h3>See Also:</h3> <a 34 * href="http://docs.aws.amazon.com/goto/WebAPI/machinelearning-2014-12-12/GetDataSourceOutput">AWS 35 * API Reference</a></p> 36 */ 37 class AWS_MACHINELEARNING_API GetDataSourceResult 38 { 39 public: 40 GetDataSourceResult(); 41 GetDataSourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 42 GetDataSourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 43 44 45 /** 46 * <p>The ID assigned to the <code>DataSource</code> at creation. This value should 47 * be identical to the value of the <code>DataSourceId</code> in the request.</p> 48 */ GetDataSourceId()49 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } 50 51 /** 52 * <p>The ID assigned to the <code>DataSource</code> at creation. This value should 53 * be identical to the value of the <code>DataSourceId</code> in the request.</p> 54 */ SetDataSourceId(const Aws::String & value)55 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceId = value; } 56 57 /** 58 * <p>The ID assigned to the <code>DataSource</code> at creation. This value should 59 * be identical to the value of the <code>DataSourceId</code> in the request.</p> 60 */ SetDataSourceId(Aws::String && value)61 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceId = std::move(value); } 62 63 /** 64 * <p>The ID assigned to the <code>DataSource</code> at creation. This value should 65 * be identical to the value of the <code>DataSourceId</code> in the request.</p> 66 */ SetDataSourceId(const char * value)67 inline void SetDataSourceId(const char* value) { m_dataSourceId.assign(value); } 68 69 /** 70 * <p>The ID assigned to the <code>DataSource</code> at creation. This value should 71 * be identical to the value of the <code>DataSourceId</code> in the request.</p> 72 */ WithDataSourceId(const Aws::String & value)73 inline GetDataSourceResult& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} 74 75 /** 76 * <p>The ID assigned to the <code>DataSource</code> at creation. This value should 77 * be identical to the value of the <code>DataSourceId</code> in the request.</p> 78 */ WithDataSourceId(Aws::String && value)79 inline GetDataSourceResult& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} 80 81 /** 82 * <p>The ID assigned to the <code>DataSource</code> at creation. This value should 83 * be identical to the value of the <code>DataSourceId</code> in the request.</p> 84 */ WithDataSourceId(const char * value)85 inline GetDataSourceResult& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} 86 87 88 /** 89 * <p>The location of the data file or directory in Amazon Simple Storage Service 90 * (Amazon S3).</p> 91 */ GetDataLocationS3()92 inline const Aws::String& GetDataLocationS3() const{ return m_dataLocationS3; } 93 94 /** 95 * <p>The location of the data file or directory in Amazon Simple Storage Service 96 * (Amazon S3).</p> 97 */ SetDataLocationS3(const Aws::String & value)98 inline void SetDataLocationS3(const Aws::String& value) { m_dataLocationS3 = value; } 99 100 /** 101 * <p>The location of the data file or directory in Amazon Simple Storage Service 102 * (Amazon S3).</p> 103 */ SetDataLocationS3(Aws::String && value)104 inline void SetDataLocationS3(Aws::String&& value) { m_dataLocationS3 = std::move(value); } 105 106 /** 107 * <p>The location of the data file or directory in Amazon Simple Storage Service 108 * (Amazon S3).</p> 109 */ SetDataLocationS3(const char * value)110 inline void SetDataLocationS3(const char* value) { m_dataLocationS3.assign(value); } 111 112 /** 113 * <p>The location of the data file or directory in Amazon Simple Storage Service 114 * (Amazon S3).</p> 115 */ WithDataLocationS3(const Aws::String & value)116 inline GetDataSourceResult& WithDataLocationS3(const Aws::String& value) { SetDataLocationS3(value); return *this;} 117 118 /** 119 * <p>The location of the data file or directory in Amazon Simple Storage Service 120 * (Amazon S3).</p> 121 */ WithDataLocationS3(Aws::String && value)122 inline GetDataSourceResult& WithDataLocationS3(Aws::String&& value) { SetDataLocationS3(std::move(value)); return *this;} 123 124 /** 125 * <p>The location of the data file or directory in Amazon Simple Storage Service 126 * (Amazon S3).</p> 127 */ WithDataLocationS3(const char * value)128 inline GetDataSourceResult& WithDataLocationS3(const char* value) { SetDataLocationS3(value); return *this;} 129 130 131 /** 132 * <p>A JSON string that represents the splitting and rearrangement requirement 133 * used when this <code>DataSource</code> was created.</p> 134 */ GetDataRearrangement()135 inline const Aws::String& GetDataRearrangement() const{ return m_dataRearrangement; } 136 137 /** 138 * <p>A JSON string that represents the splitting and rearrangement requirement 139 * used when this <code>DataSource</code> was created.</p> 140 */ SetDataRearrangement(const Aws::String & value)141 inline void SetDataRearrangement(const Aws::String& value) { m_dataRearrangement = value; } 142 143 /** 144 * <p>A JSON string that represents the splitting and rearrangement requirement 145 * used when this <code>DataSource</code> was created.</p> 146 */ SetDataRearrangement(Aws::String && value)147 inline void SetDataRearrangement(Aws::String&& value) { m_dataRearrangement = std::move(value); } 148 149 /** 150 * <p>A JSON string that represents the splitting and rearrangement requirement 151 * used when this <code>DataSource</code> was created.</p> 152 */ SetDataRearrangement(const char * value)153 inline void SetDataRearrangement(const char* value) { m_dataRearrangement.assign(value); } 154 155 /** 156 * <p>A JSON string that represents the splitting and rearrangement requirement 157 * used when this <code>DataSource</code> was created.</p> 158 */ WithDataRearrangement(const Aws::String & value)159 inline GetDataSourceResult& WithDataRearrangement(const Aws::String& value) { SetDataRearrangement(value); return *this;} 160 161 /** 162 * <p>A JSON string that represents the splitting and rearrangement requirement 163 * used when this <code>DataSource</code> was created.</p> 164 */ WithDataRearrangement(Aws::String && value)165 inline GetDataSourceResult& WithDataRearrangement(Aws::String&& value) { SetDataRearrangement(std::move(value)); return *this;} 166 167 /** 168 * <p>A JSON string that represents the splitting and rearrangement requirement 169 * used when this <code>DataSource</code> was created.</p> 170 */ WithDataRearrangement(const char * value)171 inline GetDataSourceResult& WithDataRearrangement(const char* value) { SetDataRearrangement(value); return *this;} 172 173 174 /** 175 * <p>The AWS user account from which the <code>DataSource</code> was created. The 176 * account type can be either an AWS root account or an AWS Identity and Access 177 * Management (IAM) user account.</p> 178 */ GetCreatedByIamUser()179 inline const Aws::String& GetCreatedByIamUser() const{ return m_createdByIamUser; } 180 181 /** 182 * <p>The AWS user account from which the <code>DataSource</code> was created. The 183 * account type can be either an AWS root account or an AWS Identity and Access 184 * Management (IAM) user account.</p> 185 */ SetCreatedByIamUser(const Aws::String & value)186 inline void SetCreatedByIamUser(const Aws::String& value) { m_createdByIamUser = value; } 187 188 /** 189 * <p>The AWS user account from which the <code>DataSource</code> was created. The 190 * account type can be either an AWS root account or an AWS Identity and Access 191 * Management (IAM) user account.</p> 192 */ SetCreatedByIamUser(Aws::String && value)193 inline void SetCreatedByIamUser(Aws::String&& value) { m_createdByIamUser = std::move(value); } 194 195 /** 196 * <p>The AWS user account from which the <code>DataSource</code> was created. The 197 * account type can be either an AWS root account or an AWS Identity and Access 198 * Management (IAM) user account.</p> 199 */ SetCreatedByIamUser(const char * value)200 inline void SetCreatedByIamUser(const char* value) { m_createdByIamUser.assign(value); } 201 202 /** 203 * <p>The AWS user account from which the <code>DataSource</code> was created. The 204 * account type can be either an AWS root account or an AWS Identity and Access 205 * Management (IAM) user account.</p> 206 */ WithCreatedByIamUser(const Aws::String & value)207 inline GetDataSourceResult& WithCreatedByIamUser(const Aws::String& value) { SetCreatedByIamUser(value); return *this;} 208 209 /** 210 * <p>The AWS user account from which the <code>DataSource</code> was created. The 211 * account type can be either an AWS root account or an AWS Identity and Access 212 * Management (IAM) user account.</p> 213 */ WithCreatedByIamUser(Aws::String && value)214 inline GetDataSourceResult& WithCreatedByIamUser(Aws::String&& value) { SetCreatedByIamUser(std::move(value)); return *this;} 215 216 /** 217 * <p>The AWS user account from which the <code>DataSource</code> was created. The 218 * account type can be either an AWS root account or an AWS Identity and Access 219 * Management (IAM) user account.</p> 220 */ WithCreatedByIamUser(const char * value)221 inline GetDataSourceResult& WithCreatedByIamUser(const char* value) { SetCreatedByIamUser(value); return *this;} 222 223 224 /** 225 * <p>The time that the <code>DataSource</code> was created. The time is expressed 226 * in epoch time.</p> 227 */ GetCreatedAt()228 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } 229 230 /** 231 * <p>The time that the <code>DataSource</code> was created. The time is expressed 232 * in epoch time.</p> 233 */ SetCreatedAt(const Aws::Utils::DateTime & value)234 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } 235 236 /** 237 * <p>The time that the <code>DataSource</code> was created. The time is expressed 238 * in epoch time.</p> 239 */ SetCreatedAt(Aws::Utils::DateTime && value)240 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } 241 242 /** 243 * <p>The time that the <code>DataSource</code> was created. The time is expressed 244 * in epoch time.</p> 245 */ WithCreatedAt(const Aws::Utils::DateTime & value)246 inline GetDataSourceResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} 247 248 /** 249 * <p>The time that the <code>DataSource</code> was created. The time is expressed 250 * in epoch time.</p> 251 */ WithCreatedAt(Aws::Utils::DateTime && value)252 inline GetDataSourceResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} 253 254 255 /** 256 * <p>The time of the most recent edit to the <code>DataSource</code>. The time is 257 * expressed in epoch time.</p> 258 */ GetLastUpdatedAt()259 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } 260 261 /** 262 * <p>The time of the most recent edit to the <code>DataSource</code>. The time is 263 * expressed in epoch time.</p> 264 */ SetLastUpdatedAt(const Aws::Utils::DateTime & value)265 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; } 266 267 /** 268 * <p>The time of the most recent edit to the <code>DataSource</code>. The time is 269 * expressed in epoch time.</p> 270 */ SetLastUpdatedAt(Aws::Utils::DateTime && value)271 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); } 272 273 /** 274 * <p>The time of the most recent edit to the <code>DataSource</code>. The time is 275 * expressed in epoch time.</p> 276 */ WithLastUpdatedAt(const Aws::Utils::DateTime & value)277 inline GetDataSourceResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} 278 279 /** 280 * <p>The time of the most recent edit to the <code>DataSource</code>. The time is 281 * expressed in epoch time.</p> 282 */ WithLastUpdatedAt(Aws::Utils::DateTime && value)283 inline GetDataSourceResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} 284 285 286 /** 287 * <p>The total size of observations in the data files.</p> 288 */ GetDataSizeInBytes()289 inline long long GetDataSizeInBytes() const{ return m_dataSizeInBytes; } 290 291 /** 292 * <p>The total size of observations in the data files.</p> 293 */ SetDataSizeInBytes(long long value)294 inline void SetDataSizeInBytes(long long value) { m_dataSizeInBytes = value; } 295 296 /** 297 * <p>The total size of observations in the data files.</p> 298 */ WithDataSizeInBytes(long long value)299 inline GetDataSourceResult& WithDataSizeInBytes(long long value) { SetDataSizeInBytes(value); return *this;} 300 301 302 /** 303 * <p>The number of data files referenced by the <code>DataSource</code>.</p> 304 */ GetNumberOfFiles()305 inline long long GetNumberOfFiles() const{ return m_numberOfFiles; } 306 307 /** 308 * <p>The number of data files referenced by the <code>DataSource</code>.</p> 309 */ SetNumberOfFiles(long long value)310 inline void SetNumberOfFiles(long long value) { m_numberOfFiles = value; } 311 312 /** 313 * <p>The number of data files referenced by the <code>DataSource</code>.</p> 314 */ WithNumberOfFiles(long long value)315 inline GetDataSourceResult& WithNumberOfFiles(long long value) { SetNumberOfFiles(value); return *this;} 316 317 318 /** 319 * <p>A user-supplied name or description of the <code>DataSource</code>.</p> 320 */ GetName()321 inline const Aws::String& GetName() const{ return m_name; } 322 323 /** 324 * <p>A user-supplied name or description of the <code>DataSource</code>.</p> 325 */ SetName(const Aws::String & value)326 inline void SetName(const Aws::String& value) { m_name = value; } 327 328 /** 329 * <p>A user-supplied name or description of the <code>DataSource</code>.</p> 330 */ SetName(Aws::String && value)331 inline void SetName(Aws::String&& value) { m_name = std::move(value); } 332 333 /** 334 * <p>A user-supplied name or description of the <code>DataSource</code>.</p> 335 */ SetName(const char * value)336 inline void SetName(const char* value) { m_name.assign(value); } 337 338 /** 339 * <p>A user-supplied name or description of the <code>DataSource</code>.</p> 340 */ WithName(const Aws::String & value)341 inline GetDataSourceResult& WithName(const Aws::String& value) { SetName(value); return *this;} 342 343 /** 344 * <p>A user-supplied name or description of the <code>DataSource</code>.</p> 345 */ WithName(Aws::String && value)346 inline GetDataSourceResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 347 348 /** 349 * <p>A user-supplied name or description of the <code>DataSource</code>.</p> 350 */ WithName(const char * value)351 inline GetDataSourceResult& WithName(const char* value) { SetName(value); return *this;} 352 353 354 /** 355 * <p>The current status of the <code>DataSource</code>. This element can have one 356 * of the following values:</p> <ul> <li> <p> <code>PENDING</code> - Amazon ML 357 * submitted a request to create a <code>DataSource</code>.</p> </li> <li> <p> 358 * <code>INPROGRESS</code> - The creation process is underway.</p> </li> <li> <p> 359 * <code>FAILED</code> - The request to create a <code>DataSource</code> did not 360 * run to completion. It is not usable.</p> </li> <li> <p> <code>COMPLETED</code> - 361 * The creation process completed successfully.</p> </li> <li> <p> 362 * <code>DELETED</code> - The <code>DataSource</code> is marked as deleted. It is 363 * not usable.</p> </li> </ul> 364 */ GetStatus()365 inline const EntityStatus& GetStatus() const{ return m_status; } 366 367 /** 368 * <p>The current status of the <code>DataSource</code>. This element can have one 369 * of the following values:</p> <ul> <li> <p> <code>PENDING</code> - Amazon ML 370 * submitted a request to create a <code>DataSource</code>.</p> </li> <li> <p> 371 * <code>INPROGRESS</code> - The creation process is underway.</p> </li> <li> <p> 372 * <code>FAILED</code> - The request to create a <code>DataSource</code> did not 373 * run to completion. It is not usable.</p> </li> <li> <p> <code>COMPLETED</code> - 374 * The creation process completed successfully.</p> </li> <li> <p> 375 * <code>DELETED</code> - The <code>DataSource</code> is marked as deleted. It is 376 * not usable.</p> </li> </ul> 377 */ SetStatus(const EntityStatus & value)378 inline void SetStatus(const EntityStatus& value) { m_status = value; } 379 380 /** 381 * <p>The current status of the <code>DataSource</code>. This element can have one 382 * of the following values:</p> <ul> <li> <p> <code>PENDING</code> - Amazon ML 383 * submitted a request to create a <code>DataSource</code>.</p> </li> <li> <p> 384 * <code>INPROGRESS</code> - The creation process is underway.</p> </li> <li> <p> 385 * <code>FAILED</code> - The request to create a <code>DataSource</code> did not 386 * run to completion. It is not usable.</p> </li> <li> <p> <code>COMPLETED</code> - 387 * The creation process completed successfully.</p> </li> <li> <p> 388 * <code>DELETED</code> - The <code>DataSource</code> is marked as deleted. It is 389 * not usable.</p> </li> </ul> 390 */ SetStatus(EntityStatus && value)391 inline void SetStatus(EntityStatus&& value) { m_status = std::move(value); } 392 393 /** 394 * <p>The current status of the <code>DataSource</code>. This element can have one 395 * of the following values:</p> <ul> <li> <p> <code>PENDING</code> - Amazon ML 396 * submitted a request to create a <code>DataSource</code>.</p> </li> <li> <p> 397 * <code>INPROGRESS</code> - The creation process is underway.</p> </li> <li> <p> 398 * <code>FAILED</code> - The request to create a <code>DataSource</code> did not 399 * run to completion. It is not usable.</p> </li> <li> <p> <code>COMPLETED</code> - 400 * The creation process completed successfully.</p> </li> <li> <p> 401 * <code>DELETED</code> - The <code>DataSource</code> is marked as deleted. It is 402 * not usable.</p> </li> </ul> 403 */ WithStatus(const EntityStatus & value)404 inline GetDataSourceResult& WithStatus(const EntityStatus& value) { SetStatus(value); return *this;} 405 406 /** 407 * <p>The current status of the <code>DataSource</code>. This element can have one 408 * of the following values:</p> <ul> <li> <p> <code>PENDING</code> - Amazon ML 409 * submitted a request to create a <code>DataSource</code>.</p> </li> <li> <p> 410 * <code>INPROGRESS</code> - The creation process is underway.</p> </li> <li> <p> 411 * <code>FAILED</code> - The request to create a <code>DataSource</code> did not 412 * run to completion. It is not usable.</p> </li> <li> <p> <code>COMPLETED</code> - 413 * The creation process completed successfully.</p> </li> <li> <p> 414 * <code>DELETED</code> - The <code>DataSource</code> is marked as deleted. It is 415 * not usable.</p> </li> </ul> 416 */ WithStatus(EntityStatus && value)417 inline GetDataSourceResult& WithStatus(EntityStatus&& value) { SetStatus(std::move(value)); return *this;} 418 419 420 /** 421 * <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> 422 * operations.</p> 423 */ GetLogUri()424 inline const Aws::String& GetLogUri() const{ return m_logUri; } 425 426 /** 427 * <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> 428 * operations.</p> 429 */ SetLogUri(const Aws::String & value)430 inline void SetLogUri(const Aws::String& value) { m_logUri = value; } 431 432 /** 433 * <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> 434 * operations.</p> 435 */ SetLogUri(Aws::String && value)436 inline void SetLogUri(Aws::String&& value) { m_logUri = std::move(value); } 437 438 /** 439 * <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> 440 * operations.</p> 441 */ SetLogUri(const char * value)442 inline void SetLogUri(const char* value) { m_logUri.assign(value); } 443 444 /** 445 * <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> 446 * operations.</p> 447 */ WithLogUri(const Aws::String & value)448 inline GetDataSourceResult& WithLogUri(const Aws::String& value) { SetLogUri(value); return *this;} 449 450 /** 451 * <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> 452 * operations.</p> 453 */ WithLogUri(Aws::String && value)454 inline GetDataSourceResult& WithLogUri(Aws::String&& value) { SetLogUri(std::move(value)); return *this;} 455 456 /** 457 * <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> 458 * operations.</p> 459 */ WithLogUri(const char * value)460 inline GetDataSourceResult& WithLogUri(const char* value) { SetLogUri(value); return *this;} 461 462 463 /** 464 * <p>The user-supplied description of the most recent details about creating the 465 * <code>DataSource</code>.</p> 466 */ GetMessage()467 inline const Aws::String& GetMessage() const{ return m_message; } 468 469 /** 470 * <p>The user-supplied description of the most recent details about creating the 471 * <code>DataSource</code>.</p> 472 */ SetMessage(const Aws::String & value)473 inline void SetMessage(const Aws::String& value) { m_message = value; } 474 475 /** 476 * <p>The user-supplied description of the most recent details about creating the 477 * <code>DataSource</code>.</p> 478 */ SetMessage(Aws::String && value)479 inline void SetMessage(Aws::String&& value) { m_message = std::move(value); } 480 481 /** 482 * <p>The user-supplied description of the most recent details about creating the 483 * <code>DataSource</code>.</p> 484 */ SetMessage(const char * value)485 inline void SetMessage(const char* value) { m_message.assign(value); } 486 487 /** 488 * <p>The user-supplied description of the most recent details about creating the 489 * <code>DataSource</code>.</p> 490 */ WithMessage(const Aws::String & value)491 inline GetDataSourceResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 492 493 /** 494 * <p>The user-supplied description of the most recent details about creating the 495 * <code>DataSource</code>.</p> 496 */ WithMessage(Aws::String && value)497 inline GetDataSourceResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 498 499 /** 500 * <p>The user-supplied description of the most recent details about creating the 501 * <code>DataSource</code>.</p> 502 */ WithMessage(const char * value)503 inline GetDataSourceResult& WithMessage(const char* value) { SetMessage(value); return *this;} 504 505 506 GetRedshiftMetadata()507 inline const RedshiftMetadata& GetRedshiftMetadata() const{ return m_redshiftMetadata; } 508 509 SetRedshiftMetadata(const RedshiftMetadata & value)510 inline void SetRedshiftMetadata(const RedshiftMetadata& value) { m_redshiftMetadata = value; } 511 512 SetRedshiftMetadata(RedshiftMetadata && value)513 inline void SetRedshiftMetadata(RedshiftMetadata&& value) { m_redshiftMetadata = std::move(value); } 514 515 WithRedshiftMetadata(const RedshiftMetadata & value)516 inline GetDataSourceResult& WithRedshiftMetadata(const RedshiftMetadata& value) { SetRedshiftMetadata(value); return *this;} 517 518 WithRedshiftMetadata(RedshiftMetadata && value)519 inline GetDataSourceResult& WithRedshiftMetadata(RedshiftMetadata&& value) { SetRedshiftMetadata(std::move(value)); return *this;} 520 521 522 GetRDSMetadata()523 inline const RDSMetadata& GetRDSMetadata() const{ return m_rDSMetadata; } 524 525 SetRDSMetadata(const RDSMetadata & value)526 inline void SetRDSMetadata(const RDSMetadata& value) { m_rDSMetadata = value; } 527 528 SetRDSMetadata(RDSMetadata && value)529 inline void SetRDSMetadata(RDSMetadata&& value) { m_rDSMetadata = std::move(value); } 530 531 WithRDSMetadata(const RDSMetadata & value)532 inline GetDataSourceResult& WithRDSMetadata(const RDSMetadata& value) { SetRDSMetadata(value); return *this;} 533 534 WithRDSMetadata(RDSMetadata && value)535 inline GetDataSourceResult& WithRDSMetadata(RDSMetadata&& value) { SetRDSMetadata(std::move(value)); return *this;} 536 537 538 GetRoleARN()539 inline const Aws::String& GetRoleARN() const{ return m_roleARN; } 540 541 SetRoleARN(const Aws::String & value)542 inline void SetRoleARN(const Aws::String& value) { m_roleARN = value; } 543 544 SetRoleARN(Aws::String && value)545 inline void SetRoleARN(Aws::String&& value) { m_roleARN = std::move(value); } 546 547 SetRoleARN(const char * value)548 inline void SetRoleARN(const char* value) { m_roleARN.assign(value); } 549 550 WithRoleARN(const Aws::String & value)551 inline GetDataSourceResult& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} 552 553 WithRoleARN(Aws::String && value)554 inline GetDataSourceResult& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} 555 556 WithRoleARN(const char * value)557 inline GetDataSourceResult& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} 558 559 560 /** 561 * <p> The parameter is <code>true</code> if statistics need to be generated from 562 * the observation data. </p> 563 */ GetComputeStatistics()564 inline bool GetComputeStatistics() const{ return m_computeStatistics; } 565 566 /** 567 * <p> The parameter is <code>true</code> if statistics need to be generated from 568 * the observation data. </p> 569 */ SetComputeStatistics(bool value)570 inline void SetComputeStatistics(bool value) { m_computeStatistics = value; } 571 572 /** 573 * <p> The parameter is <code>true</code> if statistics need to be generated from 574 * the observation data. </p> 575 */ WithComputeStatistics(bool value)576 inline GetDataSourceResult& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;} 577 578 579 /** 580 * <p>The approximate CPU time in milliseconds that Amazon Machine Learning spent 581 * processing the <code>DataSource</code>, normalized and scaled on computation 582 * resources. <code>ComputeTime</code> is only available if the 583 * <code>DataSource</code> is in the <code>COMPLETED</code> state and the 584 * <code>ComputeStatistics</code> is set to true.</p> 585 */ GetComputeTime()586 inline long long GetComputeTime() const{ return m_computeTime; } 587 588 /** 589 * <p>The approximate CPU time in milliseconds that Amazon Machine Learning spent 590 * processing the <code>DataSource</code>, normalized and scaled on computation 591 * resources. <code>ComputeTime</code> is only available if the 592 * <code>DataSource</code> is in the <code>COMPLETED</code> state and the 593 * <code>ComputeStatistics</code> is set to true.</p> 594 */ SetComputeTime(long long value)595 inline void SetComputeTime(long long value) { m_computeTime = value; } 596 597 /** 598 * <p>The approximate CPU time in milliseconds that Amazon Machine Learning spent 599 * processing the <code>DataSource</code>, normalized and scaled on computation 600 * resources. <code>ComputeTime</code> is only available if the 601 * <code>DataSource</code> is in the <code>COMPLETED</code> state and the 602 * <code>ComputeStatistics</code> is set to true.</p> 603 */ WithComputeTime(long long value)604 inline GetDataSourceResult& WithComputeTime(long long value) { SetComputeTime(value); return *this;} 605 606 607 /** 608 * <p>The epoch time when Amazon Machine Learning marked the 609 * <code>DataSource</code> as <code>COMPLETED</code> or <code>FAILED</code>. 610 * <code>FinishedAt</code> is only available when the <code>DataSource</code> is in 611 * the <code>COMPLETED</code> or <code>FAILED</code> state.</p> 612 */ GetFinishedAt()613 inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; } 614 615 /** 616 * <p>The epoch time when Amazon Machine Learning marked the 617 * <code>DataSource</code> as <code>COMPLETED</code> or <code>FAILED</code>. 618 * <code>FinishedAt</code> is only available when the <code>DataSource</code> is in 619 * the <code>COMPLETED</code> or <code>FAILED</code> state.</p> 620 */ SetFinishedAt(const Aws::Utils::DateTime & value)621 inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAt = value; } 622 623 /** 624 * <p>The epoch time when Amazon Machine Learning marked the 625 * <code>DataSource</code> as <code>COMPLETED</code> or <code>FAILED</code>. 626 * <code>FinishedAt</code> is only available when the <code>DataSource</code> is in 627 * the <code>COMPLETED</code> or <code>FAILED</code> state.</p> 628 */ SetFinishedAt(Aws::Utils::DateTime && value)629 inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAt = std::move(value); } 630 631 /** 632 * <p>The epoch time when Amazon Machine Learning marked the 633 * <code>DataSource</code> as <code>COMPLETED</code> or <code>FAILED</code>. 634 * <code>FinishedAt</code> is only available when the <code>DataSource</code> is in 635 * the <code>COMPLETED</code> or <code>FAILED</code> state.</p> 636 */ WithFinishedAt(const Aws::Utils::DateTime & value)637 inline GetDataSourceResult& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;} 638 639 /** 640 * <p>The epoch time when Amazon Machine Learning marked the 641 * <code>DataSource</code> as <code>COMPLETED</code> or <code>FAILED</code>. 642 * <code>FinishedAt</code> is only available when the <code>DataSource</code> is in 643 * the <code>COMPLETED</code> or <code>FAILED</code> state.</p> 644 */ WithFinishedAt(Aws::Utils::DateTime && value)645 inline GetDataSourceResult& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(std::move(value)); return *this;} 646 647 648 /** 649 * <p>The epoch time when Amazon Machine Learning marked the 650 * <code>DataSource</code> as <code>INPROGRESS</code>. <code>StartedAt</code> isn't 651 * available if the <code>DataSource</code> is in the <code>PENDING</code> 652 * state.</p> 653 */ GetStartedAt()654 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } 655 656 /** 657 * <p>The epoch time when Amazon Machine Learning marked the 658 * <code>DataSource</code> as <code>INPROGRESS</code>. <code>StartedAt</code> isn't 659 * available if the <code>DataSource</code> is in the <code>PENDING</code> 660 * state.</p> 661 */ SetStartedAt(const Aws::Utils::DateTime & value)662 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; } 663 664 /** 665 * <p>The epoch time when Amazon Machine Learning marked the 666 * <code>DataSource</code> as <code>INPROGRESS</code>. <code>StartedAt</code> isn't 667 * available if the <code>DataSource</code> is in the <code>PENDING</code> 668 * state.</p> 669 */ SetStartedAt(Aws::Utils::DateTime && value)670 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); } 671 672 /** 673 * <p>The epoch time when Amazon Machine Learning marked the 674 * <code>DataSource</code> as <code>INPROGRESS</code>. <code>StartedAt</code> isn't 675 * available if the <code>DataSource</code> is in the <code>PENDING</code> 676 * state.</p> 677 */ WithStartedAt(const Aws::Utils::DateTime & value)678 inline GetDataSourceResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} 679 680 /** 681 * <p>The epoch time when Amazon Machine Learning marked the 682 * <code>DataSource</code> as <code>INPROGRESS</code>. <code>StartedAt</code> isn't 683 * available if the <code>DataSource</code> is in the <code>PENDING</code> 684 * state.</p> 685 */ WithStartedAt(Aws::Utils::DateTime && value)686 inline GetDataSourceResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} 687 688 689 /** 690 * <p>The schema used by all of the data files of this <code>DataSource</code>.</p> 691 * <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p> 692 */ GetDataSourceSchema()693 inline const Aws::String& GetDataSourceSchema() const{ return m_dataSourceSchema; } 694 695 /** 696 * <p>The schema used by all of the data files of this <code>DataSource</code>.</p> 697 * <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p> 698 */ SetDataSourceSchema(const Aws::String & value)699 inline void SetDataSourceSchema(const Aws::String& value) { m_dataSourceSchema = value; } 700 701 /** 702 * <p>The schema used by all of the data files of this <code>DataSource</code>.</p> 703 * <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p> 704 */ SetDataSourceSchema(Aws::String && value)705 inline void SetDataSourceSchema(Aws::String&& value) { m_dataSourceSchema = std::move(value); } 706 707 /** 708 * <p>The schema used by all of the data files of this <code>DataSource</code>.</p> 709 * <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p> 710 */ SetDataSourceSchema(const char * value)711 inline void SetDataSourceSchema(const char* value) { m_dataSourceSchema.assign(value); } 712 713 /** 714 * <p>The schema used by all of the data files of this <code>DataSource</code>.</p> 715 * <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p> 716 */ WithDataSourceSchema(const Aws::String & value)717 inline GetDataSourceResult& WithDataSourceSchema(const Aws::String& value) { SetDataSourceSchema(value); return *this;} 718 719 /** 720 * <p>The schema used by all of the data files of this <code>DataSource</code>.</p> 721 * <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p> 722 */ WithDataSourceSchema(Aws::String && value)723 inline GetDataSourceResult& WithDataSourceSchema(Aws::String&& value) { SetDataSourceSchema(std::move(value)); return *this;} 724 725 /** 726 * <p>The schema used by all of the data files of this <code>DataSource</code>.</p> 727 * <p> <b>Note:</b> This parameter is provided as part of the verbose format.</p> 728 */ WithDataSourceSchema(const char * value)729 inline GetDataSourceResult& WithDataSourceSchema(const char* value) { SetDataSourceSchema(value); return *this;} 730 731 private: 732 733 Aws::String m_dataSourceId; 734 735 Aws::String m_dataLocationS3; 736 737 Aws::String m_dataRearrangement; 738 739 Aws::String m_createdByIamUser; 740 741 Aws::Utils::DateTime m_createdAt; 742 743 Aws::Utils::DateTime m_lastUpdatedAt; 744 745 long long m_dataSizeInBytes; 746 747 long long m_numberOfFiles; 748 749 Aws::String m_name; 750 751 EntityStatus m_status; 752 753 Aws::String m_logUri; 754 755 Aws::String m_message; 756 757 RedshiftMetadata m_redshiftMetadata; 758 759 RDSMetadata m_rDSMetadata; 760 761 Aws::String m_roleARN; 762 763 bool m_computeStatistics; 764 765 long long m_computeTime; 766 767 Aws::Utils::DateTime m_finishedAt; 768 769 Aws::Utils::DateTime m_startedAt; 770 771 Aws::String m_dataSourceSchema; 772 }; 773 774 } // namespace Model 775 } // namespace MachineLearning 776 } // namespace Aws 777