AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QuotaContextInfo.h
1
6#pragma once
7#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
8#include <aws/service-quotas/model/QuotaContextScope.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServiceQuotas
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_SERVICEQUOTAS_API QuotaContextInfo() = default;
45 AWS_SERVICEQUOTAS_API QuotaContextInfo(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SERVICEQUOTAS_API QuotaContextInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
57 inline QuotaContextScope GetContextScope() const { return m_contextScope; }
58 inline bool ContextScopeHasBeenSet() const { return m_contextScopeHasBeenSet; }
59 inline void SetContextScope(QuotaContextScope value) { m_contextScopeHasBeenSet = true; m_contextScope = value; }
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) { m_contextScopeTypeHasBeenSet = true; m_contextScopeType = std::forward<ContextScopeTypeT>(value); }
71 template<typename ContextScopeTypeT = Aws::String>
72 QuotaContextInfo& WithContextScopeType(ContextScopeTypeT&& value) { SetContextScopeType(std::forward<ContextScopeTypeT>(value)); return *this;}
74
76
85 inline const Aws::String& GetContextId() const { return m_contextId; }
86 inline bool ContextIdHasBeenSet() const { return m_contextIdHasBeenSet; }
87 template<typename ContextIdT = Aws::String>
88 void SetContextId(ContextIdT&& value) { m_contextIdHasBeenSet = true; m_contextId = std::forward<ContextIdT>(value); }
89 template<typename ContextIdT = Aws::String>
90 QuotaContextInfo& WithContextId(ContextIdT&& value) { SetContextId(std::forward<ContextIdT>(value)); return *this;}
92 private:
93
95 bool m_contextScopeHasBeenSet = false;
96
97 Aws::String m_contextScopeType;
98 bool m_contextScopeTypeHasBeenSet = false;
99
100 Aws::String m_contextId;
101 bool m_contextIdHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ServiceQuotas
106} // 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