AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Scope.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9#include <aws/inspector/model/ScopeType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector {
21namespace Model {
22
29class Scope {
30 public:
31 AWS_INSPECTOR_API Scope() = default;
32 AWS_INSPECTOR_API Scope(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR_API Scope& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ScopeType GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 inline void SetKey(ScopeType value) {
43 m_keyHasBeenSet = true;
44 m_key = value;
45 }
46 inline Scope& WithKey(ScopeType value) {
47 SetKey(value);
48 return *this;
49 }
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) {
60 m_valueHasBeenSet = true;
61 m_value = std::forward<ValueT>(value);
62 }
63 template <typename ValueT = Aws::String>
64 Scope& WithValue(ValueT&& value) {
65 SetValue(std::forward<ValueT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_value;
73 bool m_keyHasBeenSet = false;
74 bool m_valueHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Inspector
79} // namespace Aws
AWS_INSPECTOR_API Scope(Aws::Utils::Json::JsonView jsonValue)
Scope & WithValue(ValueT &&value)
Definition Scope.h:64
void SetKey(ScopeType value)
Definition Scope.h:42
AWS_INSPECTOR_API Scope()=default
bool KeyHasBeenSet() const
Definition Scope.h:41
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:46
AWS_INSPECTOR_API Scope & operator=(Aws::Utils::Json::JsonView jsonValue)
ScopeType GetKey() const
Definition Scope.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue