AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ObjectAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/ComparisonOperator.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
31 public:
32 AWS_CUSTOMERPROFILES_API ObjectAttribute() = default;
33 AWS_CUSTOMERPROFILES_API ObjectAttribute(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API ObjectAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSource() const { return m_source; }
42 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
43 template <typename SourceT = Aws::String>
44 void SetSource(SourceT&& value) {
45 m_sourceHasBeenSet = true;
46 m_source = std::forward<SourceT>(value);
47 }
48 template <typename SourceT = Aws::String>
49 ObjectAttribute& WithSource(SourceT&& value) {
50 SetSource(std::forward<SourceT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFieldName() const { return m_fieldName; }
60 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
61 template <typename FieldNameT = Aws::String>
62 void SetFieldName(FieldNameT&& value) {
63 m_fieldNameHasBeenSet = true;
64 m_fieldName = std::forward<FieldNameT>(value);
65 }
66 template <typename FieldNameT = Aws::String>
67 ObjectAttribute& WithFieldName(FieldNameT&& value) {
68 SetFieldName(std::forward<FieldNameT>(value));
69 return *this;
70 }
72
74
77 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
78 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
80 m_comparisonOperatorHasBeenSet = true;
81 m_comparisonOperator = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
94 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
95 template <typename ValuesT = Aws::Vector<Aws::String>>
96 void SetValues(ValuesT&& value) {
97 m_valuesHasBeenSet = true;
98 m_values = std::forward<ValuesT>(value);
99 }
100 template <typename ValuesT = Aws::Vector<Aws::String>>
101 ObjectAttribute& WithValues(ValuesT&& value) {
102 SetValues(std::forward<ValuesT>(value));
103 return *this;
104 }
105 template <typename ValuesT = Aws::String>
106 ObjectAttribute& AddValues(ValuesT&& value) {
107 m_valuesHasBeenSet = true;
108 m_values.emplace_back(std::forward<ValuesT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_source;
114
115 Aws::String m_fieldName;
116
118
120 bool m_sourceHasBeenSet = false;
121 bool m_fieldNameHasBeenSet = false;
122 bool m_comparisonOperatorHasBeenSet = false;
123 bool m_valuesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace CustomerProfiles
128} // namespace Aws
ObjectAttribute & WithSource(SourceT &&value)
AWS_CUSTOMERPROFILES_API ObjectAttribute()=default
ObjectAttribute & WithComparisonOperator(ComparisonOperator value)
ComparisonOperator GetComparisonOperator() const
AWS_CUSTOMERPROFILES_API ObjectAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
ObjectAttribute & WithValues(ValuesT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ObjectAttribute & AddValues(ValuesT &&value)
void SetComparisonOperator(ComparisonOperator value)
AWS_CUSTOMERPROFILES_API ObjectAttribute(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
ObjectAttribute & WithFieldName(FieldNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue