AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles
22{
23namespace Model
24{
25
32 class Range
33 {
34 public:
35 AWS_CUSTOMERPROFILES_API Range();
36 AWS_CUSTOMERPROFILES_API Range(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API Range& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetValue() const{ return m_value; }
46 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
47 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
48 inline Range& WithValue(int value) { SetValue(value); return *this;}
50
52
55 inline const Unit& GetUnit() const{ return m_unit; }
56 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
57 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
58 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
59 inline Range& WithUnit(const Unit& value) { SetUnit(value); return *this;}
60 inline Range& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
62 private:
63
64 int m_value;
65 bool m_valueHasBeenSet = false;
66
67 Unit m_unit;
68 bool m_unitHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace CustomerProfiles
73} // namespace Aws
AWS_CUSTOMERPROFILES_API Range()
Range & WithUnit(const Unit &value)
Definition Range.h:59
AWS_CUSTOMERPROFILES_API Range(Aws::Utils::Json::JsonView jsonValue)
const Unit & GetUnit() const
Definition Range.h:55
void SetUnit(const Unit &value)
Definition Range.h:57
void SetUnit(Unit &&value)
Definition Range.h:58
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
Range & WithValue(int value)
Definition Range.h:48
AWS_CUSTOMERPROFILES_API Range & operator=(Aws::Utils::Json::JsonView jsonValue)
Range & WithUnit(Unit &&value)
Definition Range.h:60
Aws::Utils::Json::JsonValue JsonValue