AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DateInterval.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 Support
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SUPPORT_API DateInterval() = default;
36 AWS_SUPPORT_API DateInterval(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetStartDateTime() const { return m_startDateTime; }
47 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
48 template<typename StartDateTimeT = Aws::String>
49 void SetStartDateTime(StartDateTimeT&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::forward<StartDateTimeT>(value); }
50 template<typename StartDateTimeT = Aws::String>
51 DateInterval& WithStartDateTime(StartDateTimeT&& value) { SetStartDateTime(std::forward<StartDateTimeT>(value)); return *this;}
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) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
62 template<typename EndDateTimeT = Aws::String>
63 DateInterval& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
65 private:
66
67 Aws::String m_startDateTime;
68 bool m_startDateTimeHasBeenSet = false;
69
70 Aws::String m_endDateTime;
71 bool m_endDateTimeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Support
76} // 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