AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TimestampRange.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/DateTime.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 Inspector
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_INSPECTOR_API TimestampRange() = default;
36 AWS_INSPECTOR_API TimestampRange(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetBeginDate() const { return m_beginDate; }
46 inline bool BeginDateHasBeenSet() const { return m_beginDateHasBeenSet; }
47 template<typename BeginDateT = Aws::Utils::DateTime>
48 void SetBeginDate(BeginDateT&& value) { m_beginDateHasBeenSet = true; m_beginDate = std::forward<BeginDateT>(value); }
49 template<typename BeginDateT = Aws::Utils::DateTime>
50 TimestampRange& WithBeginDate(BeginDateT&& value) { SetBeginDate(std::forward<BeginDateT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
58 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
59 template<typename EndDateT = Aws::Utils::DateTime>
60 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
61 template<typename EndDateT = Aws::Utils::DateTime>
62 TimestampRange& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
64 private:
65
66 Aws::Utils::DateTime m_beginDate{};
67 bool m_beginDateHasBeenSet = false;
68
69 Aws::Utils::DateTime m_endDate{};
70 bool m_endDateHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Inspector
75} // namespace Aws
void SetBeginDate(BeginDateT &&value)
AWS_INSPECTOR_API TimestampRange(Aws::Utils::Json::JsonView jsonValue)
TimestampRange & WithBeginDate(BeginDateT &&value)
AWS_INSPECTOR_API TimestampRange & operator=(Aws::Utils::Json::JsonView jsonValue)
TimestampRange & WithEndDate(EndDateT &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetBeginDate() const
AWS_INSPECTOR_API TimestampRange()=default
const Aws::Utils::DateTime & GetEndDate() const
Aws::Utils::Json::JsonValue JsonValue