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

The criteria to initiate the increase in rate of rollout for a * job.

See Also:

AWS * API Reference

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

When this number of things have been notified, it will initiate an increase * in the rollout rate.

*/ inline int GetNumberOfNotifiedThings() const{ return m_numberOfNotifiedThings; } /** *

When this number of things have been notified, it will initiate an increase * in the rollout rate.

*/ inline bool NumberOfNotifiedThingsHasBeenSet() const { return m_numberOfNotifiedThingsHasBeenSet; } /** *

When this number of things have been notified, it will initiate an increase * in the rollout rate.

*/ inline void SetNumberOfNotifiedThings(int value) { m_numberOfNotifiedThingsHasBeenSet = true; m_numberOfNotifiedThings = value; } /** *

When this number of things have been notified, it will initiate an increase * in the rollout rate.

*/ inline AwsJobRateIncreaseCriteria& WithNumberOfNotifiedThings(int value) { SetNumberOfNotifiedThings(value); return *this;} /** *

When this number of things have succeeded in their job execution, it will * initiate an increase in the rollout rate.

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

When this number of things have succeeded in their job execution, it will * initiate an increase in the rollout rate.

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

When this number of things have succeeded in their job execution, it will * initiate an increase in the rollout rate.

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

When this number of things have succeeded in their job execution, it will * initiate an increase in the rollout rate.

*/ inline AwsJobRateIncreaseCriteria& WithNumberOfSucceededThings(int value) { SetNumberOfSucceededThings(value); return *this;} private: int m_numberOfNotifiedThings; bool m_numberOfNotifiedThingsHasBeenSet = false; int m_numberOfSucceededThings; bool m_numberOfSucceededThingsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws