/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { class CreateBulkImportJobResult { public: AWS_IOTSITEWISE_API CreateBulkImportJobResult(); AWS_IOTSITEWISE_API CreateBulkImportJobResult(const Aws::AmazonWebServiceResult& result); AWS_IOTSITEWISE_API CreateBulkImportJobResult& 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 CreateBulkImportJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The ID of the job.

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

The ID of the job.

*/ inline CreateBulkImportJobResult& 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 CreateBulkImportJobResult& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The unique name that helps identify the job request.

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

The unique name that helps identify the job request.

*/ inline CreateBulkImportJobResult& 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 CreateBulkImportJobResult& 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 CreateBulkImportJobResult& WithJobStatus(JobStatus&& value) { SetJobStatus(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 CreateBulkImportJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateBulkImportJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateBulkImportJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_jobId; Aws::String m_jobName; JobStatus m_jobStatus; Aws::String m_requestId; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws