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

The storage capacity of an on-premises storage system resource (for example, * a volume).

See Also:

AWS * API Reference

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

The amount of space that's being used in a storage system resource.

*/ inline long long GetUsed() const{ return m_used; } /** *

The amount of space that's being used in a storage system resource.

*/ inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; } /** *

The amount of space that's being used in a storage system resource.

*/ inline void SetUsed(long long value) { m_usedHasBeenSet = true; m_used = value; } /** *

The amount of space that's being used in a storage system resource.

*/ inline Capacity& WithUsed(long long value) { SetUsed(value); return *this;} /** *

The total amount of space available in a storage system resource.

*/ inline long long GetProvisioned() const{ return m_provisioned; } /** *

The total amount of space available in a storage system resource.

*/ inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; } /** *

The total amount of space available in a storage system resource.

*/ inline void SetProvisioned(long long value) { m_provisionedHasBeenSet = true; m_provisioned = value; } /** *

The total amount of space available in a storage system resource.

*/ inline Capacity& WithProvisioned(long long value) { SetProvisioned(value); return *this;} /** *

The amount of space that's being used in a storage system resource without * accounting for compression or deduplication.

*/ inline long long GetLogicalUsed() const{ return m_logicalUsed; } /** *

The amount of space that's being used in a storage system resource without * accounting for compression or deduplication.

*/ inline bool LogicalUsedHasBeenSet() const { return m_logicalUsedHasBeenSet; } /** *

The amount of space that's being used in a storage system resource without * accounting for compression or deduplication.

*/ inline void SetLogicalUsed(long long value) { m_logicalUsedHasBeenSet = true; m_logicalUsed = value; } /** *

The amount of space that's being used in a storage system resource without * accounting for compression or deduplication.

*/ inline Capacity& WithLogicalUsed(long long value) { SetLogicalUsed(value); return *this;} private: long long m_used; bool m_usedHasBeenSet = false; long long m_provisioned; bool m_provisionedHasBeenSet = false; long long m_logicalUsed; bool m_logicalUsedHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws