AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DateRange.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/DateRangeUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
27class DateRange {
28 public:
29 AWS_SECURITYHUB_API DateRange() = default;
30 AWS_SECURITYHUB_API DateRange(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API DateRange& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetValue() const { return m_value; }
39 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
40 inline void SetValue(int value) {
41 m_valueHasBeenSet = true;
42 m_value = value;
43 }
44 inline DateRange& WithValue(int value) {
45 SetValue(value);
46 return *this;
47 }
49
51
54 inline DateRangeUnit GetUnit() const { return m_unit; }
55 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
56 inline void SetUnit(DateRangeUnit value) {
57 m_unitHasBeenSet = true;
58 m_unit = value;
59 }
61 SetUnit(value);
62 return *this;
63 }
65 private:
66 int m_value{0};
67
69 bool m_valueHasBeenSet = false;
70 bool m_unitHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace SecurityHub
75} // namespace Aws
DateRange & WithUnit(DateRangeUnit value)
Definition DateRange.h:60
AWS_SECURITYHUB_API DateRange()=default
AWS_SECURITYHUB_API DateRange & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(DateRangeUnit value)
Definition DateRange.h:56
DateRange & WithValue(int value)
Definition DateRange.h:44
AWS_SECURITYHUB_API DateRange(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
DateRangeUnit GetUnit() const
Definition DateRange.h:54
Aws::Utils::Json::JsonValue JsonValue