7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/Unit.h>
9#include <aws/customer-profiles/model/ValueRange.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
23namespace CustomerProfiles
37 AWS_CUSTOMERPROFILES_API
Range() =
default;
47 inline int GetValue()
const {
return m_value; }
49 inline void SetValue(
int value) { m_valueHasBeenSet =
true; m_value = value; }
59 inline void SetUnit(
Unit value) { m_unitHasBeenSet =
true; m_unit = value; }
72 template<
typename ValueRangeT = ValueRange>
73 void SetValueRange(ValueRangeT&& value) { m_valueRangeHasBeenSet =
true; m_valueRange = std::forward<ValueRangeT>(value); }
74 template<
typename ValueRangeT = ValueRange>
89 template<
typename TimestampSourceT = Aws::String>
90 void SetTimestampSource(TimestampSourceT&& value) { m_timestampSourceHasBeenSet =
true; m_timestampSource = std::forward<TimestampSourceT>(value); }
91 template<
typename TimestampSourceT = Aws::String>
107 template<
typename TimestampFormatT = Aws::String>
108 void SetTimestampFormat(TimestampFormatT&& value) { m_timestampFormatHasBeenSet =
true; m_timestampFormat = std::forward<TimestampFormatT>(value); }
109 template<
typename TimestampFormatT = Aws::String>
115 bool m_valueHasBeenSet =
false;
118 bool m_unitHasBeenSet =
false;
120 ValueRange m_valueRange;
121 bool m_valueRangeHasBeenSet =
false;
124 bool m_timestampSourceHasBeenSet =
false;
127 bool m_timestampFormatHasBeenSet =
false;
Range & WithUnit(Unit value)
void SetTimestampFormat(TimestampFormatT &&value)
Range & WithValueRange(ValueRangeT &&value)
Range & WithTimestampFormat(TimestampFormatT &&value)
const ValueRange & GetValueRange() const
bool ValueHasBeenSet() const
const Aws::String & GetTimestampFormat() const
Range & WithTimestampSource(TimestampSourceT &&value)
AWS_CUSTOMERPROFILES_API Range(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimestampSource() const
bool TimestampSourceHasBeenSet() const
bool ValueRangeHasBeenSet() const
void SetTimestampSource(TimestampSourceT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
bool TimestampFormatHasBeenSet() const
Range & WithValue(int value)
void SetValueRange(ValueRangeT &&value)
AWS_CUSTOMERPROFILES_API Range & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Range()=default
bool UnitHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue