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

The configuration for how much storage a user or group can use on the volume. *

See Also:

AWS * API Reference

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

A value that specifies whether the quota applies to a user or group.

*/ inline const OpenZFSQuotaType& GetType() const{ return m_type; } /** *

A value that specifies whether the quota applies to a user or group.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

A value that specifies whether the quota applies to a user or group.

*/ inline void SetType(const OpenZFSQuotaType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

A value that specifies whether the quota applies to a user or group.

*/ inline void SetType(OpenZFSQuotaType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

A value that specifies whether the quota applies to a user or group.

*/ inline OpenZFSUserOrGroupQuota& WithType(const OpenZFSQuotaType& value) { SetType(value); return *this;} /** *

A value that specifies whether the quota applies to a user or group.

*/ inline OpenZFSUserOrGroupQuota& WithType(OpenZFSQuotaType&& value) { SetType(std::move(value)); return *this;} /** *

The ID of the user or group.

*/ inline int GetId() const{ return m_id; } /** *

The ID of the user or group.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the user or group.

*/ inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the user or group.

*/ inline OpenZFSUserOrGroupQuota& WithId(int value) { SetId(value); return *this;} /** *

The amount of storage that the user or group can use in gibibytes (GiB).

*/ inline int GetStorageCapacityQuotaGiB() const{ return m_storageCapacityQuotaGiB; } /** *

The amount of storage that the user or group can use in gibibytes (GiB).

*/ inline bool StorageCapacityQuotaGiBHasBeenSet() const { return m_storageCapacityQuotaGiBHasBeenSet; } /** *

The amount of storage that the user or group can use in gibibytes (GiB).

*/ inline void SetStorageCapacityQuotaGiB(int value) { m_storageCapacityQuotaGiBHasBeenSet = true; m_storageCapacityQuotaGiB = value; } /** *

The amount of storage that the user or group can use in gibibytes (GiB).

*/ inline OpenZFSUserOrGroupQuota& WithStorageCapacityQuotaGiB(int value) { SetStorageCapacityQuotaGiB(value); return *this;} private: OpenZFSQuotaType m_type; bool m_typeHasBeenSet = false; int m_id; bool m_idHasBeenSet = false; int m_storageCapacityQuotaGiB; bool m_storageCapacityQuotaGiBHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws