AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WorkDocs {
20namespace Model {
21
28 public:
29 AWS_WORKDOCS_API UserStorageMetadata() = default;
32 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline long long GetStorageUtilizedInBytes() const { return m_storageUtilizedInBytes; }
39 inline bool StorageUtilizedInBytesHasBeenSet() const { return m_storageUtilizedInBytesHasBeenSet; }
40 inline void SetStorageUtilizedInBytes(long long value) {
41 m_storageUtilizedInBytesHasBeenSet = true;
42 m_storageUtilizedInBytes = value;
43 }
46 return *this;
47 }
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) {
58 m_storageRuleHasBeenSet = true;
59 m_storageRule = std::forward<StorageRuleT>(value);
60 }
61 template <typename StorageRuleT = StorageRuleType>
62 UserStorageMetadata& WithStorageRule(StorageRuleT&& value) {
63 SetStorageRule(std::forward<StorageRuleT>(value));
64 return *this;
65 }
67 private:
68 long long m_storageUtilizedInBytes{0};
69
70 StorageRuleType m_storageRule;
71 bool m_storageUtilizedInBytesHasBeenSet = false;
72 bool m_storageRuleHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace WorkDocs
77} // 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