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

Information about the quota period.

See Also:

AWS * API Reference

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

The value.

*/ inline int GetPeriodValue() const{ return m_periodValue; } /** *

The value.

*/ inline bool PeriodValueHasBeenSet() const { return m_periodValueHasBeenSet; } /** *

The value.

*/ inline void SetPeriodValue(int value) { m_periodValueHasBeenSet = true; m_periodValue = value; } /** *

The value.

*/ inline QuotaPeriod& WithPeriodValue(int value) { SetPeriodValue(value); return *this;} /** *

The time unit.

*/ inline const PeriodUnit& GetPeriodUnit() const{ return m_periodUnit; } /** *

The time unit.

*/ inline bool PeriodUnitHasBeenSet() const { return m_periodUnitHasBeenSet; } /** *

The time unit.

*/ inline void SetPeriodUnit(const PeriodUnit& value) { m_periodUnitHasBeenSet = true; m_periodUnit = value; } /** *

The time unit.

*/ inline void SetPeriodUnit(PeriodUnit&& value) { m_periodUnitHasBeenSet = true; m_periodUnit = std::move(value); } /** *

The time unit.

*/ inline QuotaPeriod& WithPeriodUnit(const PeriodUnit& value) { SetPeriodUnit(value); return *this;} /** *

The time unit.

*/ inline QuotaPeriod& WithPeriodUnit(PeriodUnit&& value) { SetPeriodUnit(std::move(value)); return *this;} private: int m_periodValue; bool m_periodValueHasBeenSet = false; PeriodUnit m_periodUnit; bool m_periodUnitHasBeenSet = false; }; } // namespace Model } // namespace ServiceQuotas } // namespace Aws