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

Describes the storage for a user.

See Also:

AWS * API Reference

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

The amount of storage used, in bytes.

*/ inline long long GetStorageUtilizedInBytes() const{ return m_storageUtilizedInBytes; } /** *

The amount of storage used, in bytes.

*/ inline bool StorageUtilizedInBytesHasBeenSet() const { return m_storageUtilizedInBytesHasBeenSet; } /** *

The amount of storage used, in bytes.

*/ inline void SetStorageUtilizedInBytes(long long value) { m_storageUtilizedInBytesHasBeenSet = true; m_storageUtilizedInBytes = value; } /** *

The amount of storage used, in bytes.

*/ inline UserStorageMetadata& WithStorageUtilizedInBytes(long long value) { SetStorageUtilizedInBytes(value); return *this;} /** *

The storage for a user.

*/ inline const StorageRuleType& GetStorageRule() const{ return m_storageRule; } /** *

The storage for a user.

*/ inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; } /** *

The storage for a user.

*/ inline void SetStorageRule(const StorageRuleType& value) { m_storageRuleHasBeenSet = true; m_storageRule = value; } /** *

The storage for a user.

*/ inline void SetStorageRule(StorageRuleType&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::move(value); } /** *

The storage for a user.

*/ inline UserStorageMetadata& WithStorageRule(const StorageRuleType& value) { SetStorageRule(value); return *this;} /** *

The storage for a user.

*/ inline UserStorageMetadata& WithStorageRule(StorageRuleType&& value) { SetStorageRule(std::move(value)); return *this;} private: long long m_storageUtilizedInBytes; bool m_storageUtilizedInBytesHasBeenSet = false; StorageRuleType m_storageRule; bool m_storageRuleHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws