AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
TimePeriod.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Braket {
20namespace Model {
21
29 public:
30 AWS_BRAKET_API TimePeriod() = default;
31 AWS_BRAKET_API TimePeriod(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetStartAt() const { return m_startAt; }
40 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
41 template <typename StartAtT = Aws::Utils::DateTime>
42 void SetStartAt(StartAtT&& value) {
43 m_startAtHasBeenSet = true;
44 m_startAt = std::forward<StartAtT>(value);
45 }
46 template <typename StartAtT = Aws::Utils::DateTime>
47 TimePeriod& WithStartAt(StartAtT&& value) {
48 SetStartAt(std::forward<StartAtT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetEndAt() const { return m_endAt; }
58 inline bool EndAtHasBeenSet() const { return m_endAtHasBeenSet; }
59 template <typename EndAtT = Aws::Utils::DateTime>
60 void SetEndAt(EndAtT&& value) {
61 m_endAtHasBeenSet = true;
62 m_endAt = std::forward<EndAtT>(value);
63 }
64 template <typename EndAtT = Aws::Utils::DateTime>
65 TimePeriod& WithEndAt(EndAtT&& value) {
66 SetEndAt(std::forward<EndAtT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_startAt{};
72
73 Aws::Utils::DateTime m_endAt{};
74 bool m_startAtHasBeenSet = false;
75 bool m_endAtHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Braket
80} // namespace Aws
void SetStartAt(StartAtT &&value)
Definition TimePeriod.h:42
TimePeriod & WithEndAt(EndAtT &&value)
Definition TimePeriod.h:65
TimePeriod & WithStartAt(StartAtT &&value)
Definition TimePeriod.h:47
const Aws::Utils::DateTime & GetEndAt() const
Definition TimePeriod.h:57
AWS_BRAKET_API TimePeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BRAKET_API TimePeriod(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartAt() const
Definition TimePeriod.h:39
void SetEndAt(EndAtT &&value)
Definition TimePeriod.h:60
AWS_BRAKET_API TimePeriod()=default
AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue