AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AppConfig.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/AppConfigType.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 OpenSearchService
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API AppConfig() = default;
40 AWS_OPENSEARCHSERVICE_API AppConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API AppConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline AppConfigType GetKey() const { return m_key; }
51 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 inline void SetKey(AppConfigType value) { m_keyHasBeenSet = true; m_key = value; }
53 inline AppConfig& WithKey(AppConfigType value) { SetKey(value); return *this;}
55
57
60 inline const Aws::String& GetValue() const { return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 template<typename ValueT = Aws::String>
63 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
64 template<typename ValueT = Aws::String>
65 AppConfig& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
67 private:
68
70 bool m_keyHasBeenSet = false;
71
72 Aws::String m_value;
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace OpenSearchService
78} // namespace Aws
AppConfig & WithValue(ValueT &&value)
Definition AppConfig.h:65
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AppConfig & WithKey(AppConfigType value)
Definition AppConfig.h:53
const Aws::String & GetValue() const
Definition AppConfig.h:60
AWS_OPENSEARCHSERVICE_API AppConfig()=default
AWS_OPENSEARCHSERVICE_API AppConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AppConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKey(AppConfigType value)
Definition AppConfig.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue