AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
QuotaContextInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
9#include <aws/service-quotas/model/AdjustableAtLevelEnum.h>
10#include <aws/service-quotas/model/QuotaContextScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ServiceQuotas {
22namespace Model {
23
39 public:
40 AWS_SERVICEQUOTAS_API QuotaContextInfo() = default;
41 AWS_SERVICEQUOTAS_API QuotaContextInfo(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEQUOTAS_API QuotaContextInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
52 inline QuotaContextScope GetContextScope() const { return m_contextScope; }
53 inline bool ContextScopeHasBeenSet() const { return m_contextScopeHasBeenSet; }
55 m_contextScopeHasBeenSet = true;
56 m_contextScope = value;
57 }
59 SetContextScope(value);
60 return *this;
61 }
63
65
68 inline const Aws::String& GetContextScopeType() const { return m_contextScopeType; }
69 inline bool ContextScopeTypeHasBeenSet() const { return m_contextScopeTypeHasBeenSet; }
70 template <typename ContextScopeTypeT = Aws::String>
71 void SetContextScopeType(ContextScopeTypeT&& value) {
72 m_contextScopeTypeHasBeenSet = true;
73 m_contextScopeType = std::forward<ContextScopeTypeT>(value);
74 }
75 template <typename ContextScopeTypeT = Aws::String>
76 QuotaContextInfo& WithContextScopeType(ContextScopeTypeT&& value) {
77 SetContextScopeType(std::forward<ContextScopeTypeT>(value));
78 return *this;
79 }
81
83
92 inline const Aws::String& GetContextId() const { return m_contextId; }
93 inline bool ContextIdHasBeenSet() const { return m_contextIdHasBeenSet; }
94 template <typename ContextIdT = Aws::String>
95 void SetContextId(ContextIdT&& value) {
96 m_contextIdHasBeenSet = true;
97 m_contextId = std::forward<ContextIdT>(value);
98 }
99 template <typename ContextIdT = Aws::String>
100 QuotaContextInfo& WithContextId(ContextIdT&& value) {
101 SetContextId(std::forward<ContextIdT>(value));
102 return *this;
103 }
105
107
115 inline AdjustableAtLevelEnum GetAdjustableAtLevel() const { return m_adjustableAtLevel; }
116 inline bool AdjustableAtLevelHasBeenSet() const { return m_adjustableAtLevelHasBeenSet; }
118 m_adjustableAtLevelHasBeenSet = true;
119 m_adjustableAtLevel = value;
120 }
123 return *this;
124 }
126 private:
128
129 Aws::String m_contextScopeType;
130
131 Aws::String m_contextId;
132
134 bool m_contextScopeHasBeenSet = false;
135 bool m_contextScopeTypeHasBeenSet = false;
136 bool m_contextIdHasBeenSet = false;
137 bool m_adjustableAtLevelHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace ServiceQuotas
142} // namespace Aws
AdjustableAtLevelEnum GetAdjustableAtLevel() const
QuotaContextInfo & WithContextId(ContextIdT &&value)
QuotaContextInfo & WithContextScope(QuotaContextScope value)
QuotaContextInfo & WithAdjustableAtLevel(AdjustableAtLevelEnum value)
QuotaContextInfo & WithContextScopeType(ContextScopeTypeT &&value)
void SetContextScope(QuotaContextScope value)
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContextScopeType(ContextScopeTypeT &&value)
AWS_SERVICEQUOTAS_API QuotaContextInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAdjustableAtLevel(AdjustableAtLevelEnum value)
const Aws::String & GetContextScopeType() const
AWS_SERVICEQUOTAS_API QuotaContextInfo()=default
AWS_SERVICEQUOTAS_API QuotaContextInfo(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue