AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
Interval.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 Interval {
29 public:
30 AWS_BILLING_API Interval() = default;
31 AWS_BILLING_API Interval(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BILLING_API Interval& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetStartDateInclusive() const { return m_startDateInclusive; }
40 inline bool StartDateInclusiveHasBeenSet() const { return m_startDateInclusiveHasBeenSet; }
41 template <typename StartDateInclusiveT = Aws::Utils::DateTime>
42 void SetStartDateInclusive(StartDateInclusiveT&& value) {
43 m_startDateInclusiveHasBeenSet = true;
44 m_startDateInclusive = std::forward<StartDateInclusiveT>(value);
45 }
46 template <typename StartDateInclusiveT = Aws::Utils::DateTime>
47 Interval& WithStartDateInclusive(StartDateInclusiveT&& value) {
48 SetStartDateInclusive(std::forward<StartDateInclusiveT>(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 Interval& WithEndDateInclusive(EndDateInclusiveT&& value) {
66 SetEndDateInclusive(std::forward<EndDateInclusiveT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_startDateInclusive{};
72
73 Aws::Utils::DateTime m_endDateInclusive{};
74 bool m_startDateInclusiveHasBeenSet = false;
75 bool m_endDateInclusiveHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Billing
80} // namespace Aws
Interval & WithEndDateInclusive(EndDateInclusiveT &&value)
Definition Interval.h:65
Interval & WithStartDateInclusive(StartDateInclusiveT &&value)
Definition Interval.h:47
const Aws::Utils::DateTime & GetEndDateInclusive() const
Definition Interval.h:57
void SetEndDateInclusive(EndDateInclusiveT &&value)
Definition Interval.h:60
const Aws::Utils::DateTime & GetStartDateInclusive() const
Definition Interval.h:39
void SetStartDateInclusive(StartDateInclusiveT &&value)
Definition Interval.h:42
AWS_BILLING_API Interval()=default
bool StartDateInclusiveHasBeenSet() const
Definition Interval.h:40
AWS_BILLING_API Interval(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API Interval & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
bool EndDateInclusiveHasBeenSet() const
Definition Interval.h:58
Aws::Utils::Json::JsonValue JsonValue