AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ObjectAttribute.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/model/ComparisonOperator.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CustomerProfiles
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CUSTOMERPROFILES_API ObjectAttribute() = default;
38 AWS_CUSTOMERPROFILES_API ObjectAttribute(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CUSTOMERPROFILES_API ObjectAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetSource() const { return m_source; }
48 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
49 template<typename SourceT = Aws::String>
50 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
51 template<typename SourceT = Aws::String>
52 ObjectAttribute& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
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) { m_fieldNameHasBeenSet = true; m_fieldName = std::forward<FieldNameT>(value); }
63 template<typename FieldNameT = Aws::String>
64 ObjectAttribute& WithFieldName(FieldNameT&& value) { SetFieldName(std::forward<FieldNameT>(value)); return *this;}
66
68
71 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
72 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
73 inline void SetComparisonOperator(ComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
76
78
81 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
82 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
83 template<typename ValuesT = Aws::Vector<Aws::String>>
84 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
85 template<typename ValuesT = Aws::Vector<Aws::String>>
86 ObjectAttribute& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
87 template<typename ValuesT = Aws::String>
88 ObjectAttribute& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
90 private:
91
92 Aws::String m_source;
93 bool m_sourceHasBeenSet = false;
94
95 Aws::String m_fieldName;
96 bool m_fieldNameHasBeenSet = false;
97
99 bool m_comparisonOperatorHasBeenSet = false;
100
102 bool m_valuesHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CustomerProfiles
107} // 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