/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { class DescribeBulkImportJobResult { public: AWS_IOTSITEWISE_API DescribeBulkImportJobResult(); AWS_IOTSITEWISE_API DescribeBulkImportJobResult(const Aws::AmazonWebServiceResult& result); AWS_IOTSITEWISE_API DescribeBulkImportJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the job.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The ID of the job.

*/ inline void SetJobId(const Aws::String& value) { m_jobId = value; } /** *

The ID of the job.

*/ inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); } /** *

The ID of the job.

*/ inline void SetJobId(const char* value) { m_jobId.assign(value); } /** *

The ID of the job.

*/ inline DescribeBulkImportJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The ID of the job.

*/ inline DescribeBulkImportJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The ID of the job.

*/ inline DescribeBulkImportJobResult& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The unique name that helps identify the job request.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The unique name that helps identify the job request.

*/ inline void SetJobName(const Aws::String& value) { m_jobName = value; } /** *

The unique name that helps identify the job request.

*/ inline void SetJobName(Aws::String&& value) { m_jobName = std::move(value); } /** *

The unique name that helps identify the job request.

*/ inline void SetJobName(const char* value) { m_jobName.assign(value); } /** *

The unique name that helps identify the job request.

*/ inline DescribeBulkImportJobResult& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The unique name that helps identify the job request.

*/ inline DescribeBulkImportJobResult& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The unique name that helps identify the job request.

*/ inline DescribeBulkImportJobResult& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The status of the bulk import job can be one of following values.

    *
  • PENDING – IoT SiteWise is waiting for the current bulk * import job to finish.

  • CANCELLED – The bulk * import job has been canceled.

  • RUNNING – IoT * SiteWise is processing your request to import your data from Amazon S3.

    *
  • COMPLETED – IoT SiteWise successfully completed your * request to import data from Amazon S3.

  • FAILED – * IoT SiteWise couldn't process your request to import data from Amazon S3. You * can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

  • COMPLETED_WITH_FAILURES – * IoT SiteWise completed your request to import data from Amazon S3 with errors. * You can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

*/ inline const JobStatus& GetJobStatus() const{ return m_jobStatus; } /** *

The status of the bulk import job can be one of following values.

    *
  • PENDING – IoT SiteWise is waiting for the current bulk * import job to finish.

  • CANCELLED – The bulk * import job has been canceled.

  • RUNNING – IoT * SiteWise is processing your request to import your data from Amazon S3.

    *
  • COMPLETED – IoT SiteWise successfully completed your * request to import data from Amazon S3.

  • FAILED – * IoT SiteWise couldn't process your request to import data from Amazon S3. You * can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

  • COMPLETED_WITH_FAILURES – * IoT SiteWise completed your request to import data from Amazon S3 with errors. * You can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

*/ inline void SetJobStatus(const JobStatus& value) { m_jobStatus = value; } /** *

The status of the bulk import job can be one of following values.

    *
  • PENDING – IoT SiteWise is waiting for the current bulk * import job to finish.

  • CANCELLED – The bulk * import job has been canceled.

  • RUNNING – IoT * SiteWise is processing your request to import your data from Amazon S3.

    *
  • COMPLETED – IoT SiteWise successfully completed your * request to import data from Amazon S3.

  • FAILED – * IoT SiteWise couldn't process your request to import data from Amazon S3. You * can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

  • COMPLETED_WITH_FAILURES – * IoT SiteWise completed your request to import data from Amazon S3 with errors. * You can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

*/ inline void SetJobStatus(JobStatus&& value) { m_jobStatus = std::move(value); } /** *

The status of the bulk import job can be one of following values.

    *
  • PENDING – IoT SiteWise is waiting for the current bulk * import job to finish.

  • CANCELLED – The bulk * import job has been canceled.

  • RUNNING – IoT * SiteWise is processing your request to import your data from Amazon S3.

    *
  • COMPLETED – IoT SiteWise successfully completed your * request to import data from Amazon S3.

  • FAILED – * IoT SiteWise couldn't process your request to import data from Amazon S3. You * can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

  • COMPLETED_WITH_FAILURES – * IoT SiteWise completed your request to import data from Amazon S3 with errors. * You can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

*/ inline DescribeBulkImportJobResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} /** *

The status of the bulk import job can be one of following values.

    *
  • PENDING – IoT SiteWise is waiting for the current bulk * import job to finish.

  • CANCELLED – The bulk * import job has been canceled.

  • RUNNING – IoT * SiteWise is processing your request to import your data from Amazon S3.

    *
  • COMPLETED – IoT SiteWise successfully completed your * request to import data from Amazon S3.

  • FAILED – * IoT SiteWise couldn't process your request to import data from Amazon S3. You * can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

  • COMPLETED_WITH_FAILURES – * IoT SiteWise completed your request to import data from Amazon S3 with errors. * You can use logs saved in the specified error report location in Amazon S3 to * troubleshoot issues.

*/ inline DescribeBulkImportJobResult& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;} /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline const Aws::String& GetJobRoleArn() const{ return m_jobRoleArn; } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline void SetJobRoleArn(const Aws::String& value) { m_jobRoleArn = value; } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline void SetJobRoleArn(Aws::String&& value) { m_jobRoleArn = std::move(value); } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline void SetJobRoleArn(const char* value) { m_jobRoleArn.assign(value); } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline DescribeBulkImportJobResult& WithJobRoleArn(const Aws::String& value) { SetJobRoleArn(value); return *this;} /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline DescribeBulkImportJobResult& WithJobRoleArn(Aws::String&& value) { SetJobRoleArn(std::move(value)); return *this;} /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline DescribeBulkImportJobResult& WithJobRoleArn(const char* value) { SetJobRoleArn(value); return *this;} /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline const Aws::Vector& GetFiles() const{ return m_files; } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline void SetFiles(const Aws::Vector& value) { m_files = value; } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline void SetFiles(Aws::Vector&& value) { m_files = std::move(value); } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline DescribeBulkImportJobResult& WithFiles(const Aws::Vector& value) { SetFiles(value); return *this;} /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline DescribeBulkImportJobResult& WithFiles(Aws::Vector&& value) { SetFiles(std::move(value)); return *this;} /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline DescribeBulkImportJobResult& AddFiles(const File& value) { m_files.push_back(value); return *this; } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline DescribeBulkImportJobResult& AddFiles(File&& value) { m_files.push_back(std::move(value)); return *this; } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline const ErrorReportLocation& GetErrorReportLocation() const{ return m_errorReportLocation; } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline void SetErrorReportLocation(const ErrorReportLocation& value) { m_errorReportLocation = value; } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline void SetErrorReportLocation(ErrorReportLocation&& value) { m_errorReportLocation = std::move(value); } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline DescribeBulkImportJobResult& WithErrorReportLocation(const ErrorReportLocation& value) { SetErrorReportLocation(value); return *this;} /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline DescribeBulkImportJobResult& WithErrorReportLocation(ErrorReportLocation&& value) { SetErrorReportLocation(std::move(value)); return *this;} /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline const JobConfiguration& GetJobConfiguration() const{ return m_jobConfiguration; } /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline void SetJobConfiguration(const JobConfiguration& value) { m_jobConfiguration = value; } /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline void SetJobConfiguration(JobConfiguration&& value) { m_jobConfiguration = std::move(value); } /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline DescribeBulkImportJobResult& WithJobConfiguration(const JobConfiguration& value) { SetJobConfiguration(value); return *this;} /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline DescribeBulkImportJobResult& WithJobConfiguration(JobConfiguration&& value) { SetJobConfiguration(std::move(value)); return *this;} /** *

The date the job was created, in Unix epoch TIME.

*/ inline const Aws::Utils::DateTime& GetJobCreationDate() const{ return m_jobCreationDate; } /** *

The date the job was created, in Unix epoch TIME.

*/ inline void SetJobCreationDate(const Aws::Utils::DateTime& value) { m_jobCreationDate = value; } /** *

The date the job was created, in Unix epoch TIME.

*/ inline void SetJobCreationDate(Aws::Utils::DateTime&& value) { m_jobCreationDate = std::move(value); } /** *

The date the job was created, in Unix epoch TIME.

*/ inline DescribeBulkImportJobResult& WithJobCreationDate(const Aws::Utils::DateTime& value) { SetJobCreationDate(value); return *this;} /** *

The date the job was created, in Unix epoch TIME.

*/ inline DescribeBulkImportJobResult& WithJobCreationDate(Aws::Utils::DateTime&& value) { SetJobCreationDate(std::move(value)); return *this;} /** *

The date the job was last updated, in Unix epoch time.

*/ inline const Aws::Utils::DateTime& GetJobLastUpdateDate() const{ return m_jobLastUpdateDate; } /** *

The date the job was last updated, in Unix epoch time.

*/ inline void SetJobLastUpdateDate(const Aws::Utils::DateTime& value) { m_jobLastUpdateDate = value; } /** *

The date the job was last updated, in Unix epoch time.

*/ inline void SetJobLastUpdateDate(Aws::Utils::DateTime&& value) { m_jobLastUpdateDate = std::move(value); } /** *

The date the job was last updated, in Unix epoch time.

*/ inline DescribeBulkImportJobResult& WithJobLastUpdateDate(const Aws::Utils::DateTime& value) { SetJobLastUpdateDate(value); return *this;} /** *

The date the job was last updated, in Unix epoch time.

*/ inline DescribeBulkImportJobResult& WithJobLastUpdateDate(Aws::Utils::DateTime&& value) { SetJobLastUpdateDate(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeBulkImportJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeBulkImportJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeBulkImportJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_jobId; Aws::String m_jobName; JobStatus m_jobStatus; Aws::String m_jobRoleArn; Aws::Vector m_files; ErrorReportLocation m_errorReportLocation; JobConfiguration m_jobConfiguration; Aws::Utils::DateTime m_jobCreationDate; Aws::Utils::DateTime m_jobLastUpdateDate; Aws::String m_requestId; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws