AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
33 {
34 public:
35 AWS_OPENSEARCHSERVICE_API AppConfig();
36 AWS_OPENSEARCHSERVICE_API AppConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API AppConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const AppConfigType& GetKey() const{ return m_key; }
47 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
48 inline void SetKey(const AppConfigType& value) { m_keyHasBeenSet = true; m_key = value; }
49 inline void SetKey(AppConfigType&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
50 inline AppConfig& WithKey(const AppConfigType& value) { SetKey(value); return *this;}
51 inline AppConfig& WithKey(AppConfigType&& value) { SetKey(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetValue() const{ return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
61 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
62 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
63 inline AppConfig& WithValue(const Aws::String& value) { SetValue(value); return *this;}
64 inline AppConfig& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
65 inline AppConfig& WithValue(const char* value) { SetValue(value); return *this;}
67 private:
68
69 AppConfigType m_key;
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
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API AppConfig()
void SetKey(const AppConfigType &value)
Definition AppConfig.h:48
AppConfig & WithValue(Aws::String &&value)
Definition AppConfig.h:64
const AppConfigType & GetKey() const
Definition AppConfig.h:46
AppConfig & WithValue(const Aws::String &value)
Definition AppConfig.h:63
void SetValue(const char *value)
Definition AppConfig.h:62
void SetValue(Aws::String &&value)
Definition AppConfig.h:61
const Aws::String & GetValue() const
Definition AppConfig.h:58
AppConfig & WithKey(AppConfigType &&value)
Definition AppConfig.h:51
AppConfig & WithKey(const AppConfigType &value)
Definition AppConfig.h:50
AppConfig & WithValue(const char *value)
Definition AppConfig.h:65
AWS_OPENSEARCHSERVICE_API AppConfig(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition AppConfig.h:60
void SetKey(AppConfigType &&value)
Definition AppConfig.h:49
AWS_OPENSEARCHSERVICE_API AppConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue