AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Scope.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/inspector/model/ScopeType.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 Inspector
23{
24namespace Model
25{
26
33 class Scope
34 {
35 public:
36 AWS_INSPECTOR_API Scope() = default;
37 AWS_INSPECTOR_API Scope(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ScopeType GetKey() const { return m_key; }
47 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
48 inline void SetKey(ScopeType value) { m_keyHasBeenSet = true; m_key = value; }
49 inline Scope& WithKey(ScopeType value) { SetKey(value); return *this;}
51
53
56 inline const Aws::String& GetValue() const { return m_value; }
57 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
58 template<typename ValueT = Aws::String>
59 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
60 template<typename ValueT = Aws::String>
61 Scope& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
63 private:
64
66 bool m_keyHasBeenSet = false;
67
68 Aws::String m_value;
69 bool m_valueHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Inspector
74} // namespace Aws
AWS_INSPECTOR_API Scope(Aws::Utils::Json::JsonView jsonValue)
Scope & WithValue(ValueT &&value)
Definition Scope.h:61
void SetKey(ScopeType value)
Definition Scope.h:48
AWS_INSPECTOR_API Scope()=default
bool KeyHasBeenSet() const
Definition Scope.h:47
bool ValueHasBeenSet() const
Definition Scope.h:57
void SetValue(ValueT &&value)
Definition Scope.h:59
const Aws::String & GetValue() const
Definition Scope.h:56
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
Scope & WithKey(ScopeType value)
Definition Scope.h:49
AWS_INSPECTOR_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
ScopeType GetKey() const
Definition Scope.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue