AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
TimeWindow.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WellArchitected {
20namespace Model {
21
30 public:
31 AWS_WELLARCHITECTED_API TimeWindow() = default;
32 AWS_WELLARCHITECTED_API TimeWindow(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API TimeWindow& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::DateTime& GetFrom() const { return m_from; }
41 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
42 template <typename FromT = Aws::Utils::DateTime>
43 void SetFrom(FromT&& value) {
44 m_fromHasBeenSet = true;
45 m_from = std::forward<FromT>(value);
46 }
47 template <typename FromT = Aws::Utils::DateTime>
48 TimeWindow& WithFrom(FromT&& value) {
49 SetFrom(std::forward<FromT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetTo() const { return m_to; }
59 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
60 template <typename ToT = Aws::Utils::DateTime>
61 void SetTo(ToT&& value) {
62 m_toHasBeenSet = true;
63 m_to = std::forward<ToT>(value);
64 }
65 template <typename ToT = Aws::Utils::DateTime>
66 TimeWindow& WithTo(ToT&& value) {
67 SetTo(std::forward<ToT>(value));
68 return *this;
69 }
71 private:
72 Aws::Utils::DateTime m_from{};
73
75 bool m_fromHasBeenSet = false;
76 bool m_toHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace WellArchitected
81} // namespace Aws
const Aws::Utils::DateTime & GetTo() const
Definition TimeWindow.h:58
const Aws::Utils::DateTime & GetFrom() const
Definition TimeWindow.h:40
TimeWindow & WithTo(ToT &&value)
Definition TimeWindow.h:66
AWS_WELLARCHITECTED_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API TimeWindow()=default
TimeWindow & WithFrom(FromT &&value)
Definition TimeWindow.h:48
AWS_WELLARCHITECTED_API TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue