AWS SDK for C++

AWS SDK for C++ Version 1.11.773

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/QuotaContextScope.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ServiceQuotas {
21namespace Model {
22
38 public:
39 AWS_SERVICEQUOTAS_API QuotaContextInfo() = default;
40 AWS_SERVICEQUOTAS_API QuotaContextInfo(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SERVICEQUOTAS_API QuotaContextInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
51 inline QuotaContextScope GetContextScope() const { return m_contextScope; }
52 inline bool ContextScopeHasBeenSet() const { return m_contextScopeHasBeenSet; }
54 m_contextScopeHasBeenSet = true;
55 m_contextScope = value;
56 }
58 SetContextScope(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetContextScopeType() const { return m_contextScopeType; }
68 inline bool ContextScopeTypeHasBeenSet() const { return m_contextScopeTypeHasBeenSet; }
69 template <typename ContextScopeTypeT = Aws::String>
70 void SetContextScopeType(ContextScopeTypeT&& value) {
71 m_contextScopeTypeHasBeenSet = true;
72 m_contextScopeType = std::forward<ContextScopeTypeT>(value);
73 }
74 template <typename ContextScopeTypeT = Aws::String>
75 QuotaContextInfo& WithContextScopeType(ContextScopeTypeT&& value) {
76 SetContextScopeType(std::forward<ContextScopeTypeT>(value));
77 return *this;
78 }
80
82
91 inline const Aws::String& GetContextId() const { return m_contextId; }
92 inline bool ContextIdHasBeenSet() const { return m_contextIdHasBeenSet; }
93 template <typename ContextIdT = Aws::String>
94 void SetContextId(ContextIdT&& value) {
95 m_contextIdHasBeenSet = true;
96 m_contextId = std::forward<ContextIdT>(value);
97 }
98 template <typename ContextIdT = Aws::String>
99 QuotaContextInfo& WithContextId(ContextIdT&& value) {
100 SetContextId(std::forward<ContextIdT>(value));
101 return *this;
102 }
104 private:
106
107 Aws::String m_contextScopeType;
108
109 Aws::String m_contextId;
110 bool m_contextScopeHasBeenSet = false;
111 bool m_contextScopeTypeHasBeenSet = false;
112 bool m_contextIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ServiceQuotas
117} // namespace Aws
QuotaContextInfo & WithContextId(ContextIdT &&value)
QuotaContextInfo & WithContextScope(QuotaContextScope 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)
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