AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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