AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserStorageMetadata.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/model/StorageRuleType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkDocs
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_WORKDOCS_API UserStorageMetadata() = default;
37 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline long long GetStorageUtilizedInBytes() const { return m_storageUtilizedInBytes; }
45 inline bool StorageUtilizedInBytesHasBeenSet() const { return m_storageUtilizedInBytesHasBeenSet; }
46 inline void SetStorageUtilizedInBytes(long long value) { m_storageUtilizedInBytesHasBeenSet = true; m_storageUtilizedInBytes = value; }
47 inline UserStorageMetadata& WithStorageUtilizedInBytes(long long value) { SetStorageUtilizedInBytes(value); return *this;}
49
51
54 inline const StorageRuleType& GetStorageRule() const { return m_storageRule; }
55 inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
56 template<typename StorageRuleT = StorageRuleType>
57 void SetStorageRule(StorageRuleT&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::forward<StorageRuleT>(value); }
58 template<typename StorageRuleT = StorageRuleType>
59 UserStorageMetadata& WithStorageRule(StorageRuleT&& value) { SetStorageRule(std::forward<StorageRuleT>(value)); return *this;}
61 private:
62
63 long long m_storageUtilizedInBytes{0};
64 bool m_storageUtilizedInBytesHasBeenSet = false;
65
66 StorageRuleType m_storageRule;
67 bool m_storageRuleHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace WorkDocs
72} // namespace Aws
UserStorageMetadata & WithStorageUtilizedInBytes(long long value)
AWS_WORKDOCS_API UserStorageMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const StorageRuleType & GetStorageRule() const
AWS_WORKDOCS_API UserStorageMetadata(Aws::Utils::Json::JsonView jsonValue)
UserStorageMetadata & WithStorageRule(StorageRuleT &&value)
AWS_WORKDOCS_API UserStorageMetadata()=default
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue