AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStartDateTime(const Aws::String& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
49 inline void SetStartDateTime(Aws::String&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::move(value); }
50 inline void SetStartDateTime(const char* value) { m_startDateTimeHasBeenSet = true; m_startDateTime.assign(value); }
51 inline DateInterval& WithStartDateTime(const Aws::String& value) { SetStartDateTime(value); return *this;}
52 inline DateInterval& WithStartDateTime(Aws::String&& value) { SetStartDateTime(std::move(value)); return *this;}
53 inline DateInterval& WithStartDateTime(const char* value) { SetStartDateTime(value); return *this;}
55
57
60 inline const Aws::String& GetEndDateTime() const{ return m_endDateTime; }
61 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
62 inline void SetEndDateTime(const Aws::String& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
63 inline void SetEndDateTime(Aws::String&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
64 inline void SetEndDateTime(const char* value) { m_endDateTimeHasBeenSet = true; m_endDateTime.assign(value); }
65 inline DateInterval& WithEndDateTime(const Aws::String& value) { SetEndDateTime(value); return *this;}
66 inline DateInterval& WithEndDateTime(Aws::String&& value) { SetEndDateTime(std::move(value)); return *this;}
67 inline DateInterval& WithEndDateTime(const char* value) { SetEndDateTime(value); return *this;}
69 private:
70
71 Aws::String m_startDateTime;
72 bool m_startDateTimeHasBeenSet = false;
73
74 Aws::String m_endDateTime;
75 bool m_endDateTimeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Support
80} // namespace Aws
const Aws::String & GetStartDateTime() const
const Aws::String & GetEndDateTime() const
void SetEndDateTime(Aws::String &&value)
void SetEndDateTime(const char *value)
void SetStartDateTime(const Aws::String &value)
DateInterval & WithStartDateTime(Aws::String &&value)
void SetEndDateTime(const Aws::String &value)
DateInterval & WithStartDateTime(const char *value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
DateInterval & WithEndDateTime(const Aws::String &value)
AWS_SUPPORT_API DateInterval(Aws::Utils::Json::JsonView jsonValue)
DateInterval & WithEndDateTime(Aws::String &&value)
void SetStartDateTime(Aws::String &&value)
AWS_SUPPORT_API DateInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartDateTime(const char *value)
DateInterval & WithStartDateTime(const Aws::String &value)
DateInterval & WithEndDateTime(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue