AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CalculatedAttributeValue.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API CalculatedAttributeValue() = default;
32 AWS_CUSTOMERPROFILES_API CalculatedAttributeValue(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCalculatedAttributeName() const { return m_calculatedAttributeName; }
41 inline bool CalculatedAttributeNameHasBeenSet() const { return m_calculatedAttributeNameHasBeenSet; }
42 template <typename CalculatedAttributeNameT = Aws::String>
43 void SetCalculatedAttributeName(CalculatedAttributeNameT&& value) {
44 m_calculatedAttributeNameHasBeenSet = true;
45 m_calculatedAttributeName = std::forward<CalculatedAttributeNameT>(value);
46 }
47 template <typename CalculatedAttributeNameT = Aws::String>
48 CalculatedAttributeValue& WithCalculatedAttributeName(CalculatedAttributeNameT&& value) {
49 SetCalculatedAttributeName(std::forward<CalculatedAttributeNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDisplayName() const { return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 template <typename DisplayNameT = Aws::String>
61 void SetDisplayName(DisplayNameT&& value) {
62 m_displayNameHasBeenSet = true;
63 m_displayName = std::forward<DisplayNameT>(value);
64 }
65 template <typename DisplayNameT = Aws::String>
67 SetDisplayName(std::forward<DisplayNameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetIsDataPartial() const { return m_isDataPartial; }
78 inline bool IsDataPartialHasBeenSet() const { return m_isDataPartialHasBeenSet; }
79 template <typename IsDataPartialT = Aws::String>
80 void SetIsDataPartial(IsDataPartialT&& value) {
81 m_isDataPartialHasBeenSet = true;
82 m_isDataPartial = std::forward<IsDataPartialT>(value);
83 }
84 template <typename IsDataPartialT = Aws::String>
86 SetIsDataPartial(std::forward<IsDataPartialT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetProfileId() const { return m_profileId; }
96 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
97 template <typename ProfileIdT = Aws::String>
98 void SetProfileId(ProfileIdT&& value) {
99 m_profileIdHasBeenSet = true;
100 m_profileId = std::forward<ProfileIdT>(value);
101 }
102 template <typename ProfileIdT = Aws::String>
104 SetProfileId(std::forward<ProfileIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetValue() const { return m_value; }
114 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
115 template <typename ValueT = Aws::String>
116 void SetValue(ValueT&& value) {
117 m_valueHasBeenSet = true;
118 m_value = std::forward<ValueT>(value);
119 }
120 template <typename ValueT = Aws::String>
122 SetValue(std::forward<ValueT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Utils::DateTime& GetLastObjectTimestamp() const { return m_lastObjectTimestamp; }
133 inline bool LastObjectTimestampHasBeenSet() const { return m_lastObjectTimestampHasBeenSet; }
134 template <typename LastObjectTimestampT = Aws::Utils::DateTime>
135 void SetLastObjectTimestamp(LastObjectTimestampT&& value) {
136 m_lastObjectTimestampHasBeenSet = true;
137 m_lastObjectTimestamp = std::forward<LastObjectTimestampT>(value);
138 }
139 template <typename LastObjectTimestampT = Aws::Utils::DateTime>
140 CalculatedAttributeValue& WithLastObjectTimestamp(LastObjectTimestampT&& value) {
141 SetLastObjectTimestamp(std::forward<LastObjectTimestampT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_calculatedAttributeName;
147
148 Aws::String m_displayName;
149
150 Aws::String m_isDataPartial;
151
152 Aws::String m_profileId;
153
154 Aws::String m_value;
155
156 Aws::Utils::DateTime m_lastObjectTimestamp{};
157 bool m_calculatedAttributeNameHasBeenSet = false;
158 bool m_displayNameHasBeenSet = false;
159 bool m_isDataPartialHasBeenSet = false;
160 bool m_profileIdHasBeenSet = false;
161 bool m_valueHasBeenSet = false;
162 bool m_lastObjectTimestampHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace CustomerProfiles
167} // namespace Aws
CalculatedAttributeValue & WithIsDataPartial(IsDataPartialT &&value)
AWS_CUSTOMERPROFILES_API CalculatedAttributeValue()=default
CalculatedAttributeValue & WithLastObjectTimestamp(LastObjectTimestampT &&value)
void SetCalculatedAttributeName(CalculatedAttributeNameT &&value)
AWS_CUSTOMERPROFILES_API CalculatedAttributeValue(Aws::Utils::Json::JsonView jsonValue)
CalculatedAttributeValue & WithCalculatedAttributeName(CalculatedAttributeNameT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API CalculatedAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
CalculatedAttributeValue & WithProfileId(ProfileIdT &&value)
CalculatedAttributeValue & WithDisplayName(DisplayNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue