AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
EffectiveLimit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/LimitSource.h>
10#include <aws/quicksight/model/LimitUnit.h>
11#include <aws/quicksight/model/ResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
33 public:
34 AWS_QUICKSIGHT_API EffectiveLimit() = default;
35 AWS_QUICKSIGHT_API EffectiveLimit(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API EffectiveLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline ResourceType GetResourceType() const { return m_resourceType; }
44 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
45 inline void SetResourceType(ResourceType value) {
46 m_resourceTypeHasBeenSet = true;
47 m_resourceType = value;
48 }
50 SetResourceType(value);
51 return *this;
52 }
54
56
59 inline long long GetLimitValue() const { return m_limitValue; }
60 inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
61 inline void SetLimitValue(long long value) {
62 m_limitValueHasBeenSet = true;
63 m_limitValue = value;
64 }
65 inline EffectiveLimit& WithLimitValue(long long value) {
66 SetLimitValue(value);
67 return *this;
68 }
70
72
75 inline LimitUnit GetLimitUnit() const { return m_limitUnit; }
76 inline bool LimitUnitHasBeenSet() const { return m_limitUnitHasBeenSet; }
77 inline void SetLimitUnit(LimitUnit value) {
78 m_limitUnitHasBeenSet = true;
79 m_limitUnit = value;
80 }
82 SetLimitUnit(value);
83 return *this;
84 }
86
88
98 inline LimitSource GetSource() const { return m_source; }
99 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
100 inline void SetSource(LimitSource value) {
101 m_sourceHasBeenSet = true;
102 m_source = value;
103 }
105 SetSource(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetProfileId() const { return m_profileId; }
115 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
116 template <typename ProfileIdT = Aws::String>
117 void SetProfileId(ProfileIdT&& value) {
118 m_profileIdHasBeenSet = true;
119 m_profileId = std::forward<ProfileIdT>(value);
120 }
121 template <typename ProfileIdT = Aws::String>
122 EffectiveLimit& WithProfileId(ProfileIdT&& value) {
123 SetProfileId(std::forward<ProfileIdT>(value));
124 return *this;
125 }
127 private:
128 ResourceType m_resourceType{ResourceType::NOT_SET};
129
130 long long m_limitValue{0};
131
132 LimitUnit m_limitUnit{LimitUnit::NOT_SET};
133
135
136 Aws::String m_profileId;
137 bool m_resourceTypeHasBeenSet = false;
138 bool m_limitValueHasBeenSet = false;
139 bool m_limitUnitHasBeenSet = false;
140 bool m_sourceHasBeenSet = false;
141 bool m_profileIdHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace QuickSight
146} // namespace Aws
AWS_QUICKSIGHT_API EffectiveLimit(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceType value)
EffectiveLimit & WithSource(LimitSource value)
const Aws::String & GetProfileId() const
EffectiveLimit & WithProfileId(ProfileIdT &&value)
AWS_QUICKSIGHT_API EffectiveLimit()=default
EffectiveLimit & WithResourceType(ResourceType value)
AWS_QUICKSIGHT_API EffectiveLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectiveLimit & WithLimitValue(long long value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProfileId(ProfileIdT &&value)
EffectiveLimit & WithLimitUnit(LimitUnit value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue