AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
UserIndexCapacity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QuickSight {
20namespace Model {
21
29 public:
30 AWS_QUICKSIGHT_API UserIndexCapacity() = default;
31 AWS_QUICKSIGHT_API UserIndexCapacity(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUserArn() const { return m_userArn; }
40 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
41 template <typename UserArnT = Aws::String>
42 void SetUserArn(UserArnT&& value) {
43 m_userArnHasBeenSet = true;
44 m_userArn = std::forward<UserArnT>(value);
45 }
46 template <typename UserArnT = Aws::String>
47 UserIndexCapacity& WithUserArn(UserArnT&& value) {
48 SetUserArn(std::forward<UserArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUserName() const { return m_userName; }
58 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
59 template <typename UserNameT = Aws::String>
60 void SetUserName(UserNameT&& value) {
61 m_userNameHasBeenSet = true;
62 m_userName = std::forward<UserNameT>(value);
63 }
64 template <typename UserNameT = Aws::String>
65 UserIndexCapacity& WithUserName(UserNameT&& value) {
66 SetUserName(std::forward<UserNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEmail() const { return m_email; }
76 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
77 template <typename EmailT = Aws::String>
78 void SetEmail(EmailT&& value) {
79 m_emailHasBeenSet = true;
80 m_email = std::forward<EmailT>(value);
81 }
82 template <typename EmailT = Aws::String>
83 UserIndexCapacity& WithEmail(EmailT&& value) {
84 SetEmail(std::forward<EmailT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRole() const { return m_role; }
94 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
95 template <typename RoleT = Aws::String>
96 void SetRole(RoleT&& value) {
97 m_roleHasBeenSet = true;
98 m_role = std::forward<RoleT>(value);
99 }
100 template <typename RoleT = Aws::String>
101 UserIndexCapacity& WithRole(RoleT&& value) {
102 SetRole(std::forward<RoleT>(value));
103 return *this;
104 }
106
108
111 inline long long GetTotalCapacityBytes() const { return m_totalCapacityBytes; }
112 inline bool TotalCapacityBytesHasBeenSet() const { return m_totalCapacityBytesHasBeenSet; }
113 inline void SetTotalCapacityBytes(long long value) {
114 m_totalCapacityBytesHasBeenSet = true;
115 m_totalCapacityBytes = value;
116 }
117 inline UserIndexCapacity& WithTotalCapacityBytes(long long value) {
119 return *this;
120 }
122
124
127 inline long long GetTotalKBCapacityBytes() const { return m_totalKBCapacityBytes; }
128 inline bool TotalKBCapacityBytesHasBeenSet() const { return m_totalKBCapacityBytesHasBeenSet; }
129 inline void SetTotalKBCapacityBytes(long long value) {
130 m_totalKBCapacityBytesHasBeenSet = true;
131 m_totalKBCapacityBytes = value;
132 }
135 return *this;
136 }
138
140
143 inline long long GetTotalSpaceCapacityBytes() const { return m_totalSpaceCapacityBytes; }
144 inline bool TotalSpaceCapacityBytesHasBeenSet() const { return m_totalSpaceCapacityBytesHasBeenSet; }
145 inline void SetTotalSpaceCapacityBytes(long long value) {
146 m_totalSpaceCapacityBytesHasBeenSet = true;
147 m_totalSpaceCapacityBytes = value;
148 }
151 return *this;
152 }
154
156
159 inline int GetKbCount() const { return m_kbCount; }
160 inline bool KbCountHasBeenSet() const { return m_kbCountHasBeenSet; }
161 inline void SetKbCount(int value) {
162 m_kbCountHasBeenSet = true;
163 m_kbCount = value;
164 }
165 inline UserIndexCapacity& WithKbCount(int value) {
166 SetKbCount(value);
167 return *this;
168 }
170
172
175 inline int GetSpaceCount() const { return m_spaceCount; }
176 inline bool SpaceCountHasBeenSet() const { return m_spaceCountHasBeenSet; }
177 inline void SetSpaceCount(int value) {
178 m_spaceCountHasBeenSet = true;
179 m_spaceCount = value;
180 }
182 SetSpaceCount(value);
183 return *this;
184 }
186 private:
187 Aws::String m_userArn;
188
189 Aws::String m_userName;
190
191 Aws::String m_email;
192
193 Aws::String m_role;
194
195 long long m_totalCapacityBytes{0};
196
197 long long m_totalKBCapacityBytes{0};
198
199 long long m_totalSpaceCapacityBytes{0};
200
201 int m_kbCount{0};
202
203 int m_spaceCount{0};
204 bool m_userArnHasBeenSet = false;
205 bool m_userNameHasBeenSet = false;
206 bool m_emailHasBeenSet = false;
207 bool m_roleHasBeenSet = false;
208 bool m_totalCapacityBytesHasBeenSet = false;
209 bool m_totalKBCapacityBytesHasBeenSet = false;
210 bool m_totalSpaceCapacityBytesHasBeenSet = false;
211 bool m_kbCountHasBeenSet = false;
212 bool m_spaceCountHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace QuickSight
217} // namespace Aws
UserIndexCapacity & WithTotalCapacityBytes(long long value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API UserIndexCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
UserIndexCapacity & WithSpaceCount(int value)
UserIndexCapacity & WithKbCount(int value)
AWS_QUICKSIGHT_API UserIndexCapacity(Aws::Utils::Json::JsonView jsonValue)
UserIndexCapacity & WithRole(RoleT &&value)
UserIndexCapacity & WithUserArn(UserArnT &&value)
AWS_QUICKSIGHT_API UserIndexCapacity()=default
UserIndexCapacity & WithTotalKBCapacityBytes(long long value)
UserIndexCapacity & WithEmail(EmailT &&value)
UserIndexCapacity & WithUserName(UserNameT &&value)
UserIndexCapacity & WithTotalSpaceCapacityBytes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue