AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
SpaceContributor.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
28 public:
29 AWS_QUICKSIGHT_API SpaceContributor() = default;
30 AWS_QUICKSIGHT_API SpaceContributor(Aws::Utils::Json::JsonView jsonValue);
32 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetUserName() const { return m_userName; }
39 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
40 template <typename UserNameT = Aws::String>
41 void SetUserName(UserNameT&& value) {
42 m_userNameHasBeenSet = true;
43 m_userName = std::forward<UserNameT>(value);
44 }
45 template <typename UserNameT = Aws::String>
46 SpaceContributor& WithUserName(UserNameT&& value) {
47 SetUserName(std::forward<UserNameT>(value));
48 return *this;
49 }
51
53
56 inline long long GetRawFileSizeBytes() const { return m_rawFileSizeBytes; }
57 inline bool RawFileSizeBytesHasBeenSet() const { return m_rawFileSizeBytesHasBeenSet; }
58 inline void SetRawFileSizeBytes(long long value) {
59 m_rawFileSizeBytesHasBeenSet = true;
60 m_rawFileSizeBytes = value;
61 }
62 inline SpaceContributor& WithRawFileSizeBytes(long long value) {
64 return *this;
65 }
67
69
72 inline double GetPercentage() const { return m_percentage; }
73 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
74 inline void SetPercentage(double value) {
75 m_percentageHasBeenSet = true;
76 m_percentage = value;
77 }
78 inline SpaceContributor& WithPercentage(double value) {
79 SetPercentage(value);
80 return *this;
81 }
83 private:
84 Aws::String m_userName;
85
86 long long m_rawFileSizeBytes{0};
87
88 double m_percentage{0.0};
89 bool m_userNameHasBeenSet = false;
90 bool m_rawFileSizeBytesHasBeenSet = false;
91 bool m_percentageHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace QuickSight
96} // namespace Aws
const Aws::String & GetUserName() const
SpaceContributor & WithUserName(UserNameT &&value)
AWS_QUICKSIGHT_API SpaceContributor(Aws::Utils::Json::JsonView jsonValue)
SpaceContributor & WithPercentage(double value)
AWS_QUICKSIGHT_API SpaceContributor & operator=(Aws::Utils::Json::JsonView jsonValue)
SpaceContributor & WithRawFileSizeBytes(long long value)
AWS_QUICKSIGHT_API SpaceContributor()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue