AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Range.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/Unit.h>
10#include <aws/customer-profiles/model/ValueRange.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
30class Range {
31 public:
32 AWS_CUSTOMERPROFILES_API Range() = default;
33 AWS_CUSTOMERPROFILES_API Range(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Range& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 inline void SetValue(int value) {
44 m_valueHasBeenSet = true;
45 m_value = value;
46 }
47 inline Range& WithValue(int value) {
48 SetValue(value);
49 return *this;
50 }
52
54
57 inline Unit GetUnit() const { return m_unit; }
58 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
59 inline void SetUnit(Unit value) {
60 m_unitHasBeenSet = true;
61 m_unit = value;
62 }
63 inline Range& WithUnit(Unit value) {
64 SetUnit(value);
65 return *this;
66 }
68
70
76 inline const ValueRange& GetValueRange() const { return m_valueRange; }
77 inline bool ValueRangeHasBeenSet() const { return m_valueRangeHasBeenSet; }
78 template <typename ValueRangeT = ValueRange>
79 void SetValueRange(ValueRangeT&& value) {
80 m_valueRangeHasBeenSet = true;
81 m_valueRange = std::forward<ValueRangeT>(value);
82 }
83 template <typename ValueRangeT = ValueRange>
84 Range& WithValueRange(ValueRangeT&& value) {
85 SetValueRange(std::forward<ValueRangeT>(value));
86 return *this;
87 }
89
91
99 inline const Aws::String& GetTimestampSource() const { return m_timestampSource; }
100 inline bool TimestampSourceHasBeenSet() const { return m_timestampSourceHasBeenSet; }
101 template <typename TimestampSourceT = Aws::String>
102 void SetTimestampSource(TimestampSourceT&& value) {
103 m_timestampSourceHasBeenSet = true;
104 m_timestampSource = std::forward<TimestampSourceT>(value);
105 }
106 template <typename TimestampSourceT = Aws::String>
107 Range& WithTimestampSource(TimestampSourceT&& value) {
108 SetTimestampSource(std::forward<TimestampSourceT>(value));
109 return *this;
110 }
112
114
123 inline const Aws::String& GetTimestampFormat() const { return m_timestampFormat; }
124 inline bool TimestampFormatHasBeenSet() const { return m_timestampFormatHasBeenSet; }
125 template <typename TimestampFormatT = Aws::String>
126 void SetTimestampFormat(TimestampFormatT&& value) {
127 m_timestampFormatHasBeenSet = true;
128 m_timestampFormat = std::forward<TimestampFormatT>(value);
129 }
130 template <typename TimestampFormatT = Aws::String>
131 Range& WithTimestampFormat(TimestampFormatT&& value) {
132 SetTimestampFormat(std::forward<TimestampFormatT>(value));
133 return *this;
134 }
136 private:
137 int m_value{0};
138
139 Unit m_unit{Unit::NOT_SET};
140
141 ValueRange m_valueRange;
142
143 Aws::String m_timestampSource;
144
145 Aws::String m_timestampFormat;
146 bool m_valueHasBeenSet = false;
147 bool m_unitHasBeenSet = false;
148 bool m_valueRangeHasBeenSet = false;
149 bool m_timestampSourceHasBeenSet = false;
150 bool m_timestampFormatHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace CustomerProfiles
155} // namespace Aws
Range & WithUnit(Unit value)
Definition Range.h:63
void SetTimestampFormat(TimestampFormatT &&value)
Definition Range.h:126
Range & WithValueRange(ValueRangeT &&value)
Definition Range.h:84
Range & WithTimestampFormat(TimestampFormatT &&value)
Definition Range.h:131
const ValueRange & GetValueRange() const
Definition Range.h:76
const Aws::String & GetTimestampFormat() const
Definition Range.h:123
Range & WithTimestampSource(TimestampSourceT &&value)
Definition Range.h:107
AWS_CUSTOMERPROFILES_API Range(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimestampSource() const
Definition Range.h:99
bool TimestampSourceHasBeenSet() const
Definition Range.h:100
void SetTimestampSource(TimestampSourceT &&value)
Definition Range.h:102
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
bool TimestampFormatHasBeenSet() const
Definition Range.h:124
Range & WithValue(int value)
Definition Range.h:47
void SetValueRange(ValueRangeT &&value)
Definition Range.h:79
AWS_CUSTOMERPROFILES_API Range & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Range()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue