AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
UserLimits.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/EffectiveLimit.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API UserLimits() = default;
33 AWS_QUICKSIGHT_API UserLimits(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API UserLimits& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetUserName() const { return m_userName; }
42 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
43 template <typename UserNameT = Aws::String>
44 void SetUserName(UserNameT&& value) {
45 m_userNameHasBeenSet = true;
46 m_userName = std::forward<UserNameT>(value);
47 }
48 template <typename UserNameT = Aws::String>
49 UserLimits& WithUserName(UserNameT&& value) {
50 SetUserName(std::forward<UserNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNamespace() const { return m_namespace; }
60 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
61 template <typename NamespaceT = Aws::String>
62 void SetNamespace(NamespaceT&& value) {
63 m_namespaceHasBeenSet = true;
64 m_namespace = std::forward<NamespaceT>(value);
65 }
66 template <typename NamespaceT = Aws::String>
67 UserLimits& WithNamespace(NamespaceT&& value) {
68 SetNamespace(std::forward<NamespaceT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<EffectiveLimit>& GetEffectiveLimits() const { return m_effectiveLimits; }
78 inline bool EffectiveLimitsHasBeenSet() const { return m_effectiveLimitsHasBeenSet; }
79 template <typename EffectiveLimitsT = Aws::Vector<EffectiveLimit>>
80 void SetEffectiveLimits(EffectiveLimitsT&& value) {
81 m_effectiveLimitsHasBeenSet = true;
82 m_effectiveLimits = std::forward<EffectiveLimitsT>(value);
83 }
84 template <typename EffectiveLimitsT = Aws::Vector<EffectiveLimit>>
85 UserLimits& WithEffectiveLimits(EffectiveLimitsT&& value) {
86 SetEffectiveLimits(std::forward<EffectiveLimitsT>(value));
87 return *this;
88 }
89 template <typename EffectiveLimitsT = EffectiveLimit>
90 UserLimits& AddEffectiveLimits(EffectiveLimitsT&& value) {
91 m_effectiveLimitsHasBeenSet = true;
92 m_effectiveLimits.emplace_back(std::forward<EffectiveLimitsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_userName;
98
99 Aws::String m_namespace;
100
101 Aws::Vector<EffectiveLimit> m_effectiveLimits;
102 bool m_userNameHasBeenSet = false;
103 bool m_namespaceHasBeenSet = false;
104 bool m_effectiveLimitsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace QuickSight
109} // namespace Aws
AWS_QUICKSIGHT_API UserLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EffectiveLimit > & GetEffectiveLimits() const
Definition UserLimits.h:77
AWS_QUICKSIGHT_API UserLimits()=default
const Aws::String & GetNamespace() const
Definition UserLimits.h:59
UserLimits & WithUserName(UserNameT &&value)
Definition UserLimits.h:49
void SetEffectiveLimits(EffectiveLimitsT &&value)
Definition UserLimits.h:80
void SetNamespace(NamespaceT &&value)
Definition UserLimits.h:62
const Aws::String & GetUserName() const
Definition UserLimits.h:41
UserLimits & WithEffectiveLimits(EffectiveLimitsT &&value)
Definition UserLimits.h:85
UserLimits & WithNamespace(NamespaceT &&value)
Definition UserLimits.h:67
void SetUserName(UserNameT &&value)
Definition UserLimits.h:44
UserLimits & AddEffectiveLimits(EffectiveLimitsT &&value)
Definition UserLimits.h:90
AWS_QUICKSIGHT_API UserLimits(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue