AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Range.h
1
6#pragma once
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>
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
34 class Range
35 {
36 public:
37 AWS_CUSTOMERPROFILES_API Range() = default;
38 AWS_CUSTOMERPROFILES_API Range(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CUSTOMERPROFILES_API Range& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetValue() const { return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
50 inline Range& WithValue(int value) { SetValue(value); return *this;}
52
54
57 inline Unit GetUnit() const { return m_unit; }
58 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
59 inline void SetUnit(Unit value) { m_unitHasBeenSet = true; m_unit = value; }
60 inline Range& WithUnit(Unit value) { SetUnit(value); return *this;}
62
64
70 inline const ValueRange& GetValueRange() const { return m_valueRange; }
71 inline bool ValueRangeHasBeenSet() const { return m_valueRangeHasBeenSet; }
72 template<typename ValueRangeT = ValueRange>
73 void SetValueRange(ValueRangeT&& value) { m_valueRangeHasBeenSet = true; m_valueRange = std::forward<ValueRangeT>(value); }
74 template<typename ValueRangeT = ValueRange>
75 Range& WithValueRange(ValueRangeT&& value) { SetValueRange(std::forward<ValueRangeT>(value)); return *this;}
77
79
87 inline const Aws::String& GetTimestampSource() const { return m_timestampSource; }
88 inline bool TimestampSourceHasBeenSet() const { return m_timestampSourceHasBeenSet; }
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>
92 Range& WithTimestampSource(TimestampSourceT&& value) { SetTimestampSource(std::forward<TimestampSourceT>(value)); return *this;}
94
96
105 inline const Aws::String& GetTimestampFormat() const { return m_timestampFormat; }
106 inline bool TimestampFormatHasBeenSet() const { return m_timestampFormatHasBeenSet; }
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>
110 Range& WithTimestampFormat(TimestampFormatT&& value) { SetTimestampFormat(std::forward<TimestampFormatT>(value)); return *this;}
112 private:
113
114 int m_value{0};
115 bool m_valueHasBeenSet = false;
116
117 Unit m_unit{Unit::NOT_SET};
118 bool m_unitHasBeenSet = false;
119
120 ValueRange m_valueRange;
121 bool m_valueRangeHasBeenSet = false;
122
123 Aws::String m_timestampSource;
124 bool m_timestampSourceHasBeenSet = false;
125
126 Aws::String m_timestampFormat;
127 bool m_timestampFormatHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CustomerProfiles
132} // namespace Aws
Range & WithUnit(Unit value)
Definition Range.h:60
void SetTimestampFormat(TimestampFormatT &&value)
Definition Range.h:108
Range & WithValueRange(ValueRangeT &&value)
Definition Range.h:75
Range & WithTimestampFormat(TimestampFormatT &&value)
Definition Range.h:110
const ValueRange & GetValueRange() const
Definition Range.h:70
const Aws::String & GetTimestampFormat() const
Definition Range.h:105
Range & WithTimestampSource(TimestampSourceT &&value)
Definition Range.h:92
AWS_CUSTOMERPROFILES_API Range(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimestampSource() const
Definition Range.h:87
bool TimestampSourceHasBeenSet() const
Definition Range.h:88
void SetTimestampSource(TimestampSourceT &&value)
Definition Range.h:90
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
bool TimestampFormatHasBeenSet() const
Definition Range.h:106
Range & WithValue(int value)
Definition Range.h:50
void SetValueRange(ValueRangeT &&value)
Definition Range.h:73
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