AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DateInterval.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/support/Support_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Support {
20namespace Model {
21
29 public:
30 AWS_SUPPORT_API DateInterval() = default;
31 AWS_SUPPORT_API DateInterval(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetStartDateTime() const { return m_startDateTime; }
41 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
42 template <typename StartDateTimeT = Aws::String>
43 void SetStartDateTime(StartDateTimeT&& value) {
44 m_startDateTimeHasBeenSet = true;
45 m_startDateTime = std::forward<StartDateTimeT>(value);
46 }
47 template <typename StartDateTimeT = Aws::String>
48 DateInterval& WithStartDateTime(StartDateTimeT&& value) {
49 SetStartDateTime(std::forward<StartDateTimeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
59 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
60 template <typename EndDateTimeT = Aws::String>
61 void SetEndDateTime(EndDateTimeT&& value) {
62 m_endDateTimeHasBeenSet = true;
63 m_endDateTime = std::forward<EndDateTimeT>(value);
64 }
65 template <typename EndDateTimeT = Aws::String>
66 DateInterval& WithEndDateTime(EndDateTimeT&& value) {
67 SetEndDateTime(std::forward<EndDateTimeT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_startDateTime;
73
74 Aws::String m_endDateTime;
75 bool m_startDateTimeHasBeenSet = false;
76 bool m_endDateTimeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Support
81} // namespace Aws
const Aws::String & GetStartDateTime() const
void SetEndDateTime(EndDateTimeT &&value)
DateInterval & WithStartDateTime(StartDateTimeT &&value)
const Aws::String & GetEndDateTime() const
DateInterval & WithEndDateTime(EndDateTimeT &&value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORT_API DateInterval(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API DateInterval()=default
AWS_SUPPORT_API DateInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartDateTime(StartDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue