AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ScopeType& GetKey() const{ return m_key; }
47 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
48 inline void SetKey(const ScopeType& value) { m_keyHasBeenSet = true; m_key = value; }
49 inline void SetKey(ScopeType&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
50 inline Scope& WithKey(const ScopeType& value) { SetKey(value); return *this;}
51 inline Scope& WithKey(ScopeType&& value) { SetKey(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetValue() const{ return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
61 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
62 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
63 inline Scope& WithValue(const Aws::String& value) { SetValue(value); return *this;}
64 inline Scope& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
65 inline Scope& WithValue(const char* value) { SetValue(value); return *this;}
67 private:
68
69 ScopeType m_key;
70 bool m_keyHasBeenSet = false;
71
72 Aws::String m_value;
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Inspector
78} // namespace Aws
void SetValue(const Aws::String &value)
Definition Scope.h:60
AWS_INSPECTOR_API Scope()
AWS_INSPECTOR_API Scope(Aws::Utils::Json::JsonView jsonValue)
void SetKey(const ScopeType &value)
Definition Scope.h:48
Scope & WithKey(ScopeType &&value)
Definition Scope.h:51
bool KeyHasBeenSet() const
Definition Scope.h:47
Scope & WithValue(const char *value)
Definition Scope.h:65
void SetValue(const char *value)
Definition Scope.h:62
Scope & WithKey(const ScopeType &value)
Definition Scope.h:50
bool ValueHasBeenSet() const
Definition Scope.h:59
const Aws::String & GetValue() const
Definition Scope.h:58
Scope & WithValue(const Aws::String &value)
Definition Scope.h:63
void SetKey(ScopeType &&value)
Definition Scope.h:49
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(Aws::String &&value)
Definition Scope.h:61
AWS_INSPECTOR_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
const ScopeType & GetKey() const
Definition Scope.h:46
Scope & WithValue(Aws::String &&value)
Definition Scope.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue