AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ConnectionHeaderParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridge_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EventBridge {
20namespace Model {
21
30 public:
31 AWS_EVENTBRIDGE_API ConnectionHeaderParameter() = default;
34 AWS_EVENTBRIDGE_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>
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>
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
76 inline bool GetIsValueSecret() const { return m_isValueSecret; }
77 inline bool IsValueSecretHasBeenSet() const { return m_isValueSecretHasBeenSet; }
78 inline void SetIsValueSecret(bool value) {
79 m_isValueSecretHasBeenSet = true;
80 m_isValueSecret = value;
81 }
83 SetIsValueSecret(value);
84 return *this;
85 }
87 private:
88 Aws::String m_key;
89
90 Aws::String m_value;
91
92 bool m_isValueSecret{false};
93 bool m_keyHasBeenSet = false;
94 bool m_valueHasBeenSet = false;
95 bool m_isValueSecretHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace EventBridge
100} // namespace Aws
ConnectionHeaderParameter & WithValue(ValueT &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionHeaderParameter & WithKey(KeyT &&value)
ConnectionHeaderParameter & WithIsValueSecret(bool value)
AWS_EVENTBRIDGE_API ConnectionHeaderParameter(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API ConnectionHeaderParameter()=default
AWS_EVENTBRIDGE_API ConnectionHeaderParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue