AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
InsightField.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/InsightFieldType.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
30 public:
31 AWS_OPENSEARCHSERVICE_API InsightField() = default;
32 AWS_OPENSEARCHSERVICE_API InsightField(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API InsightField& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 InsightField& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline InsightFieldType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(InsightFieldType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetValue() const { return m_value; }
76 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
77 template <typename ValueT = Aws::String>
78 void SetValue(ValueT&& value) {
79 m_valueHasBeenSet = true;
80 m_value = std::forward<ValueT>(value);
81 }
82 template <typename ValueT = Aws::String>
83 InsightField& WithValue(ValueT&& value) {
84 SetValue(std::forward<ValueT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
92
93 Aws::String m_value;
94 bool m_nameHasBeenSet = false;
95 bool m_typeHasBeenSet = false;
96 bool m_valueHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace OpenSearchService
101} // namespace Aws
AWS_OPENSEARCHSERVICE_API InsightField()=default
AWS_OPENSEARCHSERVICE_API InsightField(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
InsightField & WithType(InsightFieldType value)
InsightField & WithValue(ValueT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API InsightField & operator=(Aws::Utils::Json::JsonView jsonValue)
InsightField & WithName(NameT &&value)
const Aws::String & GetValue() const
void SetType(InsightFieldType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue