AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RangeOverride.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/RangeUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
29 public:
30 AWS_CUSTOMERPROFILES_API RangeOverride() = default;
31 AWS_CUSTOMERPROFILES_API RangeOverride(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API RangeOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetStart() const { return m_start; }
40 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
41 inline void SetStart(int value) {
42 m_startHasBeenSet = true;
43 m_start = value;
44 }
45 inline RangeOverride& WithStart(int value) {
46 SetStart(value);
47 return *this;
48 }
50
52
55 inline int GetEnd() const { return m_end; }
56 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
57 inline void SetEnd(int value) {
58 m_endHasBeenSet = true;
59 m_end = value;
60 }
61 inline RangeOverride& WithEnd(int value) {
62 SetEnd(value);
63 return *this;
64 }
66
68
71 inline RangeUnit GetUnit() const { return m_unit; }
72 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
73 inline void SetUnit(RangeUnit value) {
74 m_unitHasBeenSet = true;
75 m_unit = value;
76 }
78 SetUnit(value);
79 return *this;
80 }
82 private:
83 int m_start{0};
84
85 int m_end{0};
86
88 bool m_startHasBeenSet = false;
89 bool m_endHasBeenSet = false;
90 bool m_unitHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace CustomerProfiles
95} // namespace Aws
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API RangeOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API RangeOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API RangeOverride()=default
RangeOverride & WithUnit(RangeUnit value)
Aws::Utils::Json::JsonValue JsonValue