AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TimeRange.h
1
6#pragma once
7#include <aws/billing/Billing_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 Billing {
20namespace Model {
21
28class TimeRange {
29 public:
30 AWS_BILLING_API TimeRange() = default;
31 AWS_BILLING_API TimeRange(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BILLING_API TimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetBeginDateInclusive() const { return m_beginDateInclusive; }
40 inline bool BeginDateInclusiveHasBeenSet() const { return m_beginDateInclusiveHasBeenSet; }
41 template <typename BeginDateInclusiveT = Aws::Utils::DateTime>
42 void SetBeginDateInclusive(BeginDateInclusiveT&& value) {
43 m_beginDateInclusiveHasBeenSet = true;
44 m_beginDateInclusive = std::forward<BeginDateInclusiveT>(value);
45 }
46 template <typename BeginDateInclusiveT = Aws::Utils::DateTime>
47 TimeRange& WithBeginDateInclusive(BeginDateInclusiveT&& value) {
48 SetBeginDateInclusive(std::forward<BeginDateInclusiveT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetEndDateInclusive() const { return m_endDateInclusive; }
58 inline bool EndDateInclusiveHasBeenSet() const { return m_endDateInclusiveHasBeenSet; }
59 template <typename EndDateInclusiveT = Aws::Utils::DateTime>
60 void SetEndDateInclusive(EndDateInclusiveT&& value) {
61 m_endDateInclusiveHasBeenSet = true;
62 m_endDateInclusive = std::forward<EndDateInclusiveT>(value);
63 }
64 template <typename EndDateInclusiveT = Aws::Utils::DateTime>
65 TimeRange& WithEndDateInclusive(EndDateInclusiveT&& value) {
66 SetEndDateInclusive(std::forward<EndDateInclusiveT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_beginDateInclusive{};
72
73 Aws::Utils::DateTime m_endDateInclusive{};
74 bool m_beginDateInclusiveHasBeenSet = false;
75 bool m_endDateInclusiveHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Billing
80} // namespace Aws
const Aws::Utils::DateTime & GetBeginDateInclusive() const
Definition TimeRange.h:39
void SetBeginDateInclusive(BeginDateInclusiveT &&value)
Definition TimeRange.h:42
void SetEndDateInclusive(EndDateInclusiveT &&value)
Definition TimeRange.h:60
bool EndDateInclusiveHasBeenSet() const
Definition TimeRange.h:58
TimeRange & WithEndDateInclusive(EndDateInclusiveT &&value)
Definition TimeRange.h:65
AWS_BILLING_API TimeRange(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndDateInclusive() const
Definition TimeRange.h:57
AWS_BILLING_API TimeRange()=default
bool BeginDateInclusiveHasBeenSet() const
Definition TimeRange.h:40
AWS_BILLING_API TimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeRange & WithBeginDateInclusive(BeginDateInclusiveT &&value)
Definition TimeRange.h:47
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue