/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { /** *

Contains a job summary information.

See Also:

AWS * API Reference

*/ class JobSummary { public: AWS_IOTSITEWISE_API JobSummary(); AWS_IOTSITEWISE_API JobSummary(Aws::Utils::Json::JsonView jsonValue); AWS_IOTSITEWISE_API JobSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the job.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the job.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the job.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the job.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the job.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the job.

*/ inline JobSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the job.

*/ inline JobSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the job.

*/ inline JobSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The unique name that helps identify the job request.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The unique name that helps identify the job request.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The unique name that helps identify the job request.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The unique name that helps identify the job request.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The unique name that helps identify the job request.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The unique name that helps identify the job request.

*/ inline JobSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The unique name that helps identify the job request.

*/ inline JobSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The unique name that helps identify the job request.

*/ inline JobSummary& WithName(const char* value) { SetName(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& GetStatus() const{ return m_status; } /** *

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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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 SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = 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 SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = 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 JobSummary& WithStatus(const JobStatus& value) { SetStatus(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 JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; JobStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws