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

A structure that contains information about the quota period.

See * Also:

AWS * API Reference

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

The value of a period.

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

The value of a period.

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

The value of a period.

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

The value of a period.

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

The time unit of a period.

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

The time unit of a period.

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

The time unit of a period.

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

The time unit of a period.

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

The time unit of a period.

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

The time unit of a period.

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