AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DatetimeRange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/license-manager/LicenseManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LicenseManager {
20namespace Model {
21
28 public:
29 AWS_LICENSEMANAGER_API DatetimeRange() = default;
30 AWS_LICENSEMANAGER_API DatetimeRange(Aws::Utils::Json::JsonView jsonValue);
31 AWS_LICENSEMANAGER_API DatetimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetBegin() const { return m_begin; }
39 inline bool BeginHasBeenSet() const { return m_beginHasBeenSet; }
40 template <typename BeginT = Aws::String>
41 void SetBegin(BeginT&& value) {
42 m_beginHasBeenSet = true;
43 m_begin = std::forward<BeginT>(value);
44 }
45 template <typename BeginT = Aws::String>
46 DatetimeRange& WithBegin(BeginT&& value) {
47 SetBegin(std::forward<BeginT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEnd() const { return m_end; }
57 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
58 template <typename EndT = Aws::String>
59 void SetEnd(EndT&& value) {
60 m_endHasBeenSet = true;
61 m_end = std::forward<EndT>(value);
62 }
63 template <typename EndT = Aws::String>
64 DatetimeRange& WithEnd(EndT&& value) {
65 SetEnd(std::forward<EndT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_begin;
71
72 Aws::String m_end;
73 bool m_beginHasBeenSet = false;
74 bool m_endHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace LicenseManager
79} // namespace Aws
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LICENSEMANAGER_API DatetimeRange()=default
DatetimeRange & WithBegin(BeginT &&value)
DatetimeRange & WithEnd(EndT &&value)
AWS_LICENSEMANAGER_API DatetimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEnd() const
AWS_LICENSEMANAGER_API DatetimeRange(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBegin() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue