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

The latest known metered size (in bytes) of data stored in the file system, * in its Value field, and the time at which that size was determined * in its Timestamp field. The value doesn't represent the size of a * consistent snapshot of the file system, but it is eventually consistent when * there are no writes to the file system. That is, the value represents the actual * size only if the file system is not modified for a period longer than a couple * of hours. Otherwise, the value is not necessarily the exact size the file system * was at any instant in time.

See Also:

AWS * API Reference

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

The latest known metered size (in bytes) of data stored in the file * system.

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

The latest known metered size (in bytes) of data stored in the file * system.

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

The latest known metered size (in bytes) of data stored in the file * system.

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

The latest known metered size (in bytes) of data stored in the file * system.

*/ inline FileSystemSize& WithValue(long long value) { SetValue(value); return *this;} /** *

The time at which the size of data, returned in the Value field, * was determined. The value is the integer number of seconds since * 1970-01-01T00:00:00Z.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The time at which the size of data, returned in the Value field, * was determined. The value is the integer number of seconds since * 1970-01-01T00:00:00Z.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time at which the size of data, returned in the Value field, * was determined. The value is the integer number of seconds since * 1970-01-01T00:00:00Z.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time at which the size of data, returned in the Value field, * was determined. The value is the integer number of seconds since * 1970-01-01T00:00:00Z.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The time at which the size of data, returned in the Value field, * was determined. The value is the integer number of seconds since * 1970-01-01T00:00:00Z.

*/ inline FileSystemSize& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The time at which the size of data, returned in the Value field, * was determined. The value is the integer number of seconds since * 1970-01-01T00:00:00Z.

*/ inline FileSystemSize& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The latest known metered size (in bytes) of data stored in the Infrequent * Access storage class.

*/ inline long long GetValueInIA() const{ return m_valueInIA; } /** *

The latest known metered size (in bytes) of data stored in the Infrequent * Access storage class.

*/ inline bool ValueInIAHasBeenSet() const { return m_valueInIAHasBeenSet; } /** *

The latest known metered size (in bytes) of data stored in the Infrequent * Access storage class.

*/ inline void SetValueInIA(long long value) { m_valueInIAHasBeenSet = true; m_valueInIA = value; } /** *

The latest known metered size (in bytes) of data stored in the Infrequent * Access storage class.

*/ inline FileSystemSize& WithValueInIA(long long value) { SetValueInIA(value); return *this;} /** *

The latest known metered size (in bytes) of data stored in the Standard * storage class.

*/ inline long long GetValueInStandard() const{ return m_valueInStandard; } /** *

The latest known metered size (in bytes) of data stored in the Standard * storage class.

*/ inline bool ValueInStandardHasBeenSet() const { return m_valueInStandardHasBeenSet; } /** *

The latest known metered size (in bytes) of data stored in the Standard * storage class.

*/ inline void SetValueInStandard(long long value) { m_valueInStandardHasBeenSet = true; m_valueInStandard = value; } /** *

The latest known metered size (in bytes) of data stored in the Standard * storage class.

*/ inline FileSystemSize& WithValueInStandard(long long value) { SetValueInStandard(value); return *this;} private: long long m_value; bool m_valueHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; long long m_valueInIA; bool m_valueInIAHasBeenSet = false; long long m_valueInStandard; bool m_valueInStandardHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws