/** * 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 IoT { namespace Model { /** *

The job process details.

See Also:

AWS * API Reference

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

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline const Aws::Vector& GetProcessingTargets() const{ return m_processingTargets; } /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline bool ProcessingTargetsHasBeenSet() const { return m_processingTargetsHasBeenSet; } /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline void SetProcessingTargets(const Aws::Vector& value) { m_processingTargetsHasBeenSet = true; m_processingTargets = value; } /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline void SetProcessingTargets(Aws::Vector&& value) { m_processingTargetsHasBeenSet = true; m_processingTargets = std::move(value); } /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline JobProcessDetails& WithProcessingTargets(const Aws::Vector& value) { SetProcessingTargets(value); return *this;} /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline JobProcessDetails& WithProcessingTargets(Aws::Vector&& value) { SetProcessingTargets(std::move(value)); return *this;} /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline JobProcessDetails& AddProcessingTargets(const Aws::String& value) { m_processingTargetsHasBeenSet = true; m_processingTargets.push_back(value); return *this; } /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline JobProcessDetails& AddProcessingTargets(Aws::String&& value) { m_processingTargetsHasBeenSet = true; m_processingTargets.push_back(std::move(value)); return *this; } /** *

The target devices to which the job execution is being rolled out. This value * will be null after the job execution has finished rolling out to all the target * devices.

*/ inline JobProcessDetails& AddProcessingTargets(const char* value) { m_processingTargetsHasBeenSet = true; m_processingTargets.push_back(value); return *this; } /** *

The number of things that cancelled the job.

*/ inline int GetNumberOfCanceledThings() const{ return m_numberOfCanceledThings; } /** *

The number of things that cancelled the job.

*/ inline bool NumberOfCanceledThingsHasBeenSet() const { return m_numberOfCanceledThingsHasBeenSet; } /** *

The number of things that cancelled the job.

*/ inline void SetNumberOfCanceledThings(int value) { m_numberOfCanceledThingsHasBeenSet = true; m_numberOfCanceledThings = value; } /** *

The number of things that cancelled the job.

*/ inline JobProcessDetails& WithNumberOfCanceledThings(int value) { SetNumberOfCanceledThings(value); return *this;} /** *

The number of things which successfully completed the job.

*/ inline int GetNumberOfSucceededThings() const{ return m_numberOfSucceededThings; } /** *

The number of things which successfully completed the job.

*/ inline bool NumberOfSucceededThingsHasBeenSet() const { return m_numberOfSucceededThingsHasBeenSet; } /** *

The number of things which successfully completed the job.

*/ inline void SetNumberOfSucceededThings(int value) { m_numberOfSucceededThingsHasBeenSet = true; m_numberOfSucceededThings = value; } /** *

The number of things which successfully completed the job.

*/ inline JobProcessDetails& WithNumberOfSucceededThings(int value) { SetNumberOfSucceededThings(value); return *this;} /** *

The number of things that failed executing the job.

*/ inline int GetNumberOfFailedThings() const{ return m_numberOfFailedThings; } /** *

The number of things that failed executing the job.

*/ inline bool NumberOfFailedThingsHasBeenSet() const { return m_numberOfFailedThingsHasBeenSet; } /** *

The number of things that failed executing the job.

*/ inline void SetNumberOfFailedThings(int value) { m_numberOfFailedThingsHasBeenSet = true; m_numberOfFailedThings = value; } /** *

The number of things that failed executing the job.

*/ inline JobProcessDetails& WithNumberOfFailedThings(int value) { SetNumberOfFailedThings(value); return *this;} /** *

The number of things that rejected the job.

*/ inline int GetNumberOfRejectedThings() const{ return m_numberOfRejectedThings; } /** *

The number of things that rejected the job.

*/ inline bool NumberOfRejectedThingsHasBeenSet() const { return m_numberOfRejectedThingsHasBeenSet; } /** *

The number of things that rejected the job.

*/ inline void SetNumberOfRejectedThings(int value) { m_numberOfRejectedThingsHasBeenSet = true; m_numberOfRejectedThings = value; } /** *

The number of things that rejected the job.

*/ inline JobProcessDetails& WithNumberOfRejectedThings(int value) { SetNumberOfRejectedThings(value); return *this;} /** *

The number of things that are awaiting execution of the job.

*/ inline int GetNumberOfQueuedThings() const{ return m_numberOfQueuedThings; } /** *

The number of things that are awaiting execution of the job.

*/ inline bool NumberOfQueuedThingsHasBeenSet() const { return m_numberOfQueuedThingsHasBeenSet; } /** *

The number of things that are awaiting execution of the job.

*/ inline void SetNumberOfQueuedThings(int value) { m_numberOfQueuedThingsHasBeenSet = true; m_numberOfQueuedThings = value; } /** *

The number of things that are awaiting execution of the job.

*/ inline JobProcessDetails& WithNumberOfQueuedThings(int value) { SetNumberOfQueuedThings(value); return *this;} /** *

The number of things currently executing the job.

*/ inline int GetNumberOfInProgressThings() const{ return m_numberOfInProgressThings; } /** *

The number of things currently executing the job.

*/ inline bool NumberOfInProgressThingsHasBeenSet() const { return m_numberOfInProgressThingsHasBeenSet; } /** *

The number of things currently executing the job.

*/ inline void SetNumberOfInProgressThings(int value) { m_numberOfInProgressThingsHasBeenSet = true; m_numberOfInProgressThings = value; } /** *

The number of things currently executing the job.

*/ inline JobProcessDetails& WithNumberOfInProgressThings(int value) { SetNumberOfInProgressThings(value); return *this;} /** *

The number of things that are no longer scheduled to execute the job because * they have been deleted or have been removed from the group that was a target of * the job.

*/ inline int GetNumberOfRemovedThings() const{ return m_numberOfRemovedThings; } /** *

The number of things that are no longer scheduled to execute the job because * they have been deleted or have been removed from the group that was a target of * the job.

*/ inline bool NumberOfRemovedThingsHasBeenSet() const { return m_numberOfRemovedThingsHasBeenSet; } /** *

The number of things that are no longer scheduled to execute the job because * they have been deleted or have been removed from the group that was a target of * the job.

*/ inline void SetNumberOfRemovedThings(int value) { m_numberOfRemovedThingsHasBeenSet = true; m_numberOfRemovedThings = value; } /** *

The number of things that are no longer scheduled to execute the job because * they have been deleted or have been removed from the group that was a target of * the job.

*/ inline JobProcessDetails& WithNumberOfRemovedThings(int value) { SetNumberOfRemovedThings(value); return *this;} /** *

The number of things whose job execution status is * TIMED_OUT.

*/ inline int GetNumberOfTimedOutThings() const{ return m_numberOfTimedOutThings; } /** *

The number of things whose job execution status is * TIMED_OUT.

*/ inline bool NumberOfTimedOutThingsHasBeenSet() const { return m_numberOfTimedOutThingsHasBeenSet; } /** *

The number of things whose job execution status is * TIMED_OUT.

*/ inline void SetNumberOfTimedOutThings(int value) { m_numberOfTimedOutThingsHasBeenSet = true; m_numberOfTimedOutThings = value; } /** *

The number of things whose job execution status is * TIMED_OUT.

*/ inline JobProcessDetails& WithNumberOfTimedOutThings(int value) { SetNumberOfTimedOutThings(value); return *this;} private: Aws::Vector m_processingTargets; bool m_processingTargetsHasBeenSet = false; int m_numberOfCanceledThings; bool m_numberOfCanceledThingsHasBeenSet = false; int m_numberOfSucceededThings; bool m_numberOfSucceededThingsHasBeenSet = false; int m_numberOfFailedThings; bool m_numberOfFailedThingsHasBeenSet = false; int m_numberOfRejectedThings; bool m_numberOfRejectedThingsHasBeenSet = false; int m_numberOfQueuedThings; bool m_numberOfQueuedThingsHasBeenSet = false; int m_numberOfInProgressThings; bool m_numberOfInProgressThingsHasBeenSet = false; int m_numberOfRemovedThings; bool m_numberOfRemovedThingsHasBeenSet = false; int m_numberOfTimedOutThings; bool m_numberOfTimedOutThingsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws