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

The physical capacity of the Amazon Web Services Snow Family device. *

See Also:

AWS * API Reference

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

The amount of capacity available for use on the device.

*/ inline long long GetAvailable() const{ return m_available; } /** *

The amount of capacity available for use on the device.

*/ inline bool AvailableHasBeenSet() const { return m_availableHasBeenSet; } /** *

The amount of capacity available for use on the device.

*/ inline void SetAvailable(long long value) { m_availableHasBeenSet = true; m_available = value; } /** *

The amount of capacity available for use on the device.

*/ inline Capacity& WithAvailable(long long value) { SetAvailable(value); return *this;} /** *

The name of the type of capacity, such as memory.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the type of capacity, such as memory.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the type of capacity, such as memory.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the type of capacity, such as memory.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the type of capacity, such as memory.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the type of capacity, such as memory.

*/ inline Capacity& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the type of capacity, such as memory.

*/ inline Capacity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the type of capacity, such as memory.

*/ inline Capacity& WithName(const char* value) { SetName(value); return *this;} /** *

The total capacity on the device.

*/ inline long long GetTotal() const{ return m_total; } /** *

The total capacity on the device.

*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *

The total capacity on the device.

*/ inline void SetTotal(long long value) { m_totalHasBeenSet = true; m_total = value; } /** *

The total capacity on the device.

*/ inline Capacity& WithTotal(long long value) { SetTotal(value); return *this;} /** *

The unit of measure for the type of capacity.

*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *

The unit of measure for the type of capacity.

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

The unit of measure for the type of capacity.

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

The unit of measure for the type of capacity.

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

The unit of measure for the type of capacity.

*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *

The unit of measure for the type of capacity.

*/ inline Capacity& WithUnit(const Aws::String& value) { SetUnit(value); return *this;} /** *

The unit of measure for the type of capacity.

*/ inline Capacity& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;} /** *

The unit of measure for the type of capacity.

*/ inline Capacity& WithUnit(const char* value) { SetUnit(value); return *this;} /** *

The amount of capacity used on the device.

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

The amount of capacity used on the device.

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

The amount of capacity used on the device.

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

The amount of capacity used on the device.

*/ inline Capacity& WithUsed(long long value) { SetUsed(value); return *this;} private: long long m_available; bool m_availableHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; long long m_total; bool m_totalHasBeenSet = false; Aws::String m_unit; bool m_unitHasBeenSet = false; long long m_used; bool m_usedHasBeenSet = false; }; } // namespace Model } // namespace SnowDeviceManagement } // namespace Aws