AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
TimestampRange.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector {
20namespace Model {
21
29 public:
30 AWS_INSPECTOR_API TimestampRange() = default;
31 AWS_INSPECTOR_API TimestampRange(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetBeginDate() const { return m_beginDate; }
40 inline bool BeginDateHasBeenSet() const { return m_beginDateHasBeenSet; }
41 template <typename BeginDateT = Aws::Utils::DateTime>
42 void SetBeginDate(BeginDateT&& value) {
43 m_beginDateHasBeenSet = true;
44 m_beginDate = std::forward<BeginDateT>(value);
45 }
46 template <typename BeginDateT = Aws::Utils::DateTime>
47 TimestampRange& WithBeginDate(BeginDateT&& value) {
48 SetBeginDate(std::forward<BeginDateT>(value));
49 return *this;
50 }
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) {
61 m_endDateHasBeenSet = true;
62 m_endDate = std::forward<EndDateT>(value);
63 }
64 template <typename EndDateT = Aws::Utils::DateTime>
65 TimestampRange& WithEndDate(EndDateT&& value) {
66 SetEndDate(std::forward<EndDateT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_beginDate{};
72
73 Aws::Utils::DateTime m_endDate{};
74 bool m_beginDateHasBeenSet = false;
75 bool m_endDateHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Inspector
80} // 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