AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBeginDate(const Aws::Utils::DateTime& value) { m_beginDateHasBeenSet = true; m_beginDate = value; }
48 inline void SetBeginDate(Aws::Utils::DateTime&& value) { m_beginDateHasBeenSet = true; m_beginDate = std::move(value); }
49 inline TimestampRange& WithBeginDate(const Aws::Utils::DateTime& value) { SetBeginDate(value); return *this;}
50 inline TimestampRange& WithBeginDate(Aws::Utils::DateTime&& value) { SetBeginDate(std::move(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 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
60 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
61 inline TimestampRange& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
62 inline TimestampRange& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(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
TimestampRange & WithBeginDate(const Aws::Utils::DateTime &value)
TimestampRange & WithEndDate(Aws::Utils::DateTime &&value)
AWS_INSPECTOR_API TimestampRange(Aws::Utils::Json::JsonView jsonValue)
void SetEndDate(Aws::Utils::DateTime &&value)
void SetBeginDate(Aws::Utils::DateTime &&value)
AWS_INSPECTOR_API TimestampRange & operator=(Aws::Utils::Json::JsonView jsonValue)
TimestampRange & WithBeginDate(Aws::Utils::DateTime &&value)
TimestampRange & WithEndDate(const Aws::Utils::DateTime &value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBeginDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetBeginDate() const
void SetEndDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndDate() const
Aws::Utils::Json::JsonValue JsonValue