/** * 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 { /** *

Allows you to define a criteria to initiate the increase in rate of rollout * for a job.

See Also:

AWS * API Reference

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

The threshold for number of notified things that will initiate the increase * in rate of rollout.

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

The threshold for number of notified things that will initiate the increase * in rate of rollout.

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

The threshold for number of notified things that will initiate the increase * in rate of rollout.

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

The threshold for number of notified things that will initiate the increase * in rate of rollout.

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

The threshold for number of succeeded things that will initiate the increase * in rate of rollout.

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

The threshold for number of succeeded things that will initiate the increase * in rate of rollout.

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

The threshold for number of succeeded things that will initiate the increase * in rate of rollout.

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

The threshold for number of succeeded things that will initiate the increase * in rate of rollout.

*/ inline RateIncreaseCriteria& 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