AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DateRangeUnit& GetUnit() const{ return m_unit; }
55 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
56 inline void SetUnit(const DateRangeUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
57 inline void SetUnit(DateRangeUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
58 inline DateRange& WithUnit(const DateRangeUnit& value) { SetUnit(value); return *this;}
59 inline DateRange& WithUnit(DateRangeUnit&& value) { SetUnit(std::move(value)); return *this;}
61 private:
62
63 int m_value;
64 bool m_valueHasBeenSet = false;
65
66 DateRangeUnit m_unit;
67 bool m_unitHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace SecurityHub
72} // namespace Aws
void SetUnit(const DateRangeUnit &value)
Definition DateRange.h:56
void SetUnit(DateRangeUnit &&value)
Definition DateRange.h:57
AWS_SECURITYHUB_API DateRange()
DateRange & WithUnit(DateRangeUnit &&value)
Definition DateRange.h:59
AWS_SECURITYHUB_API DateRange & operator=(Aws::Utils::Json::JsonView jsonValue)
DateRange & WithUnit(const DateRangeUnit &value)
Definition DateRange.h:58
DateRange & WithValue(int value)
Definition DateRange.h:47
const DateRangeUnit & GetUnit() const
Definition DateRange.h:54
AWS_SECURITYHUB_API DateRange(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue