AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
34 {
35 public:
36 AWS_SERVICEQUOTAS_API QuotaContextInfo();
37 AWS_SERVICEQUOTAS_API QuotaContextInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICEQUOTAS_API QuotaContextInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const QuotaContextScope& GetContextScope() const{ return m_contextScope; }
48 inline bool ContextScopeHasBeenSet() const { return m_contextScopeHasBeenSet; }
49 inline void SetContextScope(const QuotaContextScope& value) { m_contextScopeHasBeenSet = true; m_contextScope = value; }
50 inline void SetContextScope(QuotaContextScope&& value) { m_contextScopeHasBeenSet = true; m_contextScope = std::move(value); }
51 inline QuotaContextInfo& WithContextScope(const QuotaContextScope& value) { SetContextScope(value); return *this;}
52 inline QuotaContextInfo& WithContextScope(QuotaContextScope&& value) { SetContextScope(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetContextScopeType() const{ return m_contextScopeType; }
61 inline bool ContextScopeTypeHasBeenSet() const { return m_contextScopeTypeHasBeenSet; }
62 inline void SetContextScopeType(const Aws::String& value) { m_contextScopeTypeHasBeenSet = true; m_contextScopeType = value; }
63 inline void SetContextScopeType(Aws::String&& value) { m_contextScopeTypeHasBeenSet = true; m_contextScopeType = std::move(value); }
64 inline void SetContextScopeType(const char* value) { m_contextScopeTypeHasBeenSet = true; m_contextScopeType.assign(value); }
65 inline QuotaContextInfo& WithContextScopeType(const Aws::String& value) { SetContextScopeType(value); return *this;}
66 inline QuotaContextInfo& WithContextScopeType(Aws::String&& value) { SetContextScopeType(std::move(value)); return *this;}
67 inline QuotaContextInfo& WithContextScopeType(const char* value) { SetContextScopeType(value); return *this;}
69
71
76 inline const Aws::String& GetContextId() const{ return m_contextId; }
77 inline bool ContextIdHasBeenSet() const { return m_contextIdHasBeenSet; }
78 inline void SetContextId(const Aws::String& value) { m_contextIdHasBeenSet = true; m_contextId = value; }
79 inline void SetContextId(Aws::String&& value) { m_contextIdHasBeenSet = true; m_contextId = std::move(value); }
80 inline void SetContextId(const char* value) { m_contextIdHasBeenSet = true; m_contextId.assign(value); }
81 inline QuotaContextInfo& WithContextId(const Aws::String& value) { SetContextId(value); return *this;}
82 inline QuotaContextInfo& WithContextId(Aws::String&& value) { SetContextId(std::move(value)); return *this;}
83 inline QuotaContextInfo& WithContextId(const char* value) { SetContextId(value); return *this;}
85 private:
86
87 QuotaContextScope m_contextScope;
88 bool m_contextScopeHasBeenSet = false;
89
90 Aws::String m_contextScopeType;
91 bool m_contextScopeTypeHasBeenSet = false;
92
93 Aws::String m_contextId;
94 bool m_contextIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ServiceQuotas
99} // namespace Aws
void SetContextScope(QuotaContextScope &&value)
QuotaContextInfo & WithContextScopeType(Aws::String &&value)
void SetContextScope(const QuotaContextScope &value)
QuotaContextInfo & WithContextScopeType(const char *value)
QuotaContextInfo & WithContextScope(const QuotaContextScope &value)
QuotaContextInfo & WithContextId(const Aws::String &value)
QuotaContextInfo & WithContextScope(QuotaContextScope &&value)
QuotaContextInfo & WithContextId(Aws::String &&value)
QuotaContextInfo & WithContextId(const char *value)
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
const QuotaContextScope & GetContextScope() const
AWS_SERVICEQUOTAS_API QuotaContextInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContextScopeType(const Aws::String &value)
QuotaContextInfo & WithContextScopeType(const Aws::String &value)
const Aws::String & GetContextScopeType() const
AWS_SERVICEQUOTAS_API QuotaContextInfo(Aws::Utils::Json::JsonView jsonValue)
void SetContextId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue