AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API DateRange() = default;
35 AWS_SECURITYHUB_API DateRange(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API DateRange& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline int GetValue() const { return m_value; }
45 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
46 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
47 inline DateRange& WithValue(int value) { SetValue(value); return *this;}
49
51
54 inline DateRangeUnit GetUnit() const { return m_unit; }
55 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
56 inline void SetUnit(DateRangeUnit value) { m_unitHasBeenSet = true; m_unit = value; }
57 inline DateRange& WithUnit(DateRangeUnit value) { SetUnit(value); return *this;}
59 private:
60
61 int m_value{0};
62 bool m_valueHasBeenSet = false;
63
65 bool m_unitHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace SecurityHub
70} // namespace Aws
DateRange & WithUnit(DateRangeUnit value)
Definition DateRange.h:57
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:47
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