AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AppConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/AppConfigType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
32class AppConfig {
33 public:
34 AWS_OPENSEARCHSERVICE_API AppConfig() = default;
35 AWS_OPENSEARCHSERVICE_API AppConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API AppConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline AppConfigType GetKey() const { return m_key; }
45 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
46 inline void SetKey(AppConfigType value) {
47 m_keyHasBeenSet = true;
48 m_key = value;
49 }
51 SetKey(value);
52 return *this;
53 }
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) {
64 m_valueHasBeenSet = true;
65 m_value = std::forward<ValueT>(value);
66 }
67 template <typename ValueT = Aws::String>
68 AppConfig& WithValue(ValueT&& value) {
69 SetValue(std::forward<ValueT>(value));
70 return *this;
71 }
73 private:
75
76 Aws::String m_value;
77 bool m_keyHasBeenSet = false;
78 bool m_valueHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace OpenSearchService
83} // namespace Aws
AppConfig & WithValue(ValueT &&value)
Definition AppConfig.h:68
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AppConfig & WithKey(AppConfigType value)
Definition AppConfig.h:50
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:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue