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

Specifies a current quota for an Amazon Macie account.

See * Also:

AWS * API Reference

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

Specifies whether the account has met the quota that corresponds to the * metric specified by the UsageByAccount.type field in the response.

*/ inline bool GetIsServiceLimited() const{ return m_isServiceLimited; } /** *

Specifies whether the account has met the quota that corresponds to the * metric specified by the UsageByAccount.type field in the response.

*/ inline bool IsServiceLimitedHasBeenSet() const { return m_isServiceLimitedHasBeenSet; } /** *

Specifies whether the account has met the quota that corresponds to the * metric specified by the UsageByAccount.type field in the response.

*/ inline void SetIsServiceLimited(bool value) { m_isServiceLimitedHasBeenSet = true; m_isServiceLimited = value; } /** *

Specifies whether the account has met the quota that corresponds to the * metric specified by the UsageByAccount.type field in the response.

*/ inline ServiceLimit& WithIsServiceLimited(bool value) { SetIsServiceLimited(value); return *this;} /** *

The unit of measurement for the value specified by the value field.

*/ inline const Unit& GetUnit() const{ return m_unit; } /** *

The unit of measurement for the value specified by the value field.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

The unit of measurement for the value specified by the value field.

*/ inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

The unit of measurement for the value specified by the value field.

*/ inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

The unit of measurement for the value specified by the value field.

*/ inline ServiceLimit& WithUnit(const Unit& value) { SetUnit(value); return *this;} /** *

The unit of measurement for the value specified by the value field.

*/ inline ServiceLimit& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;} /** *

The value for the metric specified by the UsageByAccount.type field in the * response.

*/ inline long long GetValue() const{ return m_value; } /** *

The value for the metric specified by the UsageByAccount.type field in the * response.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value for the metric specified by the UsageByAccount.type field in the * response.

*/ inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value for the metric specified by the UsageByAccount.type field in the * response.

*/ inline ServiceLimit& WithValue(long long value) { SetValue(value); return *this;} private: bool m_isServiceLimited; bool m_isServiceLimitedHasBeenSet = false; Unit m_unit; bool m_unitHasBeenSet = false; long long m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws