AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
DivergentField.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/DiffFieldPolicy.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 DivergentField() = default;
32 AWS_OPENSEARCHSERVICE_API DivergentField(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API DivergentField& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPath() const { return m_path; }
41 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
42 template <typename PathT = Aws::String>
43 void SetPath(PathT&& value) {
44 m_pathHasBeenSet = true;
45 m_path = std::forward<PathT>(value);
46 }
47 template <typename PathT = Aws::String>
48 DivergentField& WithPath(PathT&& value) {
49 SetPath(std::forward<PathT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSourceValue() const { return m_sourceValue; }
59 inline bool SourceValueHasBeenSet() const { return m_sourceValueHasBeenSet; }
60 template <typename SourceValueT = Aws::String>
61 void SetSourceValue(SourceValueT&& value) {
62 m_sourceValueHasBeenSet = true;
63 m_sourceValue = std::forward<SourceValueT>(value);
64 }
65 template <typename SourceValueT = Aws::String>
66 DivergentField& WithSourceValue(SourceValueT&& value) {
67 SetSourceValue(std::forward<SourceValueT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTargetValue() const { return m_targetValue; }
77 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
78 template <typename TargetValueT = Aws::String>
79 void SetTargetValue(TargetValueT&& value) {
80 m_targetValueHasBeenSet = true;
81 m_targetValue = std::forward<TargetValueT>(value);
82 }
83 template <typename TargetValueT = Aws::String>
84 DivergentField& WithTargetValue(TargetValueT&& value) {
85 SetTargetValue(std::forward<TargetValueT>(value));
86 return *this;
87 }
89
91
94 inline DiffFieldPolicy GetPolicy() const { return m_policy; }
95 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
96 inline void SetPolicy(DiffFieldPolicy value) {
97 m_policyHasBeenSet = true;
98 m_policy = value;
99 }
101 SetPolicy(value);
102 return *this;
103 }
105 private:
106 Aws::String m_path;
107
108 Aws::String m_sourceValue;
109
110 Aws::String m_targetValue;
111
113 bool m_pathHasBeenSet = false;
114 bool m_sourceValueHasBeenSet = false;
115 bool m_targetValueHasBeenSet = false;
116 bool m_policyHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace OpenSearchService
121} // namespace Aws
AWS_OPENSEARCHSERVICE_API DivergentField(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API DivergentField & operator=(Aws::Utils::Json::JsonView jsonValue)
DivergentField & WithTargetValue(TargetValueT &&value)
DivergentField & WithPolicy(DiffFieldPolicy value)
DivergentField & WithPath(PathT &&value)
AWS_OPENSEARCHSERVICE_API DivergentField()=default
DivergentField & WithSourceValue(SourceValueT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue