AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
BillingPeriod.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/payments/Payments_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Payments {
20namespace Model {
21
31 public:
32 AWS_PAYMENTS_API BillingPeriod() = default;
33 AWS_PAYMENTS_API BillingPeriod(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
43 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
44 template <typename StartDateT = Aws::Utils::DateTime>
45 void SetStartDate(StartDateT&& value) {
46 m_startDateHasBeenSet = true;
47 m_startDate = std::forward<StartDateT>(value);
48 }
49 template <typename StartDateT = Aws::Utils::DateTime>
50 BillingPeriod& WithStartDate(StartDateT&& value) {
51 SetStartDate(std::forward<StartDateT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
63 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
64 template <typename EndDateT = Aws::Utils::DateTime>
65 void SetEndDate(EndDateT&& value) {
66 m_endDateHasBeenSet = true;
67 m_endDate = std::forward<EndDateT>(value);
68 }
69 template <typename EndDateT = Aws::Utils::DateTime>
70 BillingPeriod& WithEndDate(EndDateT&& value) {
71 SetEndDate(std::forward<EndDateT>(value));
72 return *this;
73 }
75 private:
76 Aws::Utils::DateTime m_startDate{};
77
78 Aws::Utils::DateTime m_endDate{};
79 bool m_startDateHasBeenSet = false;
80 bool m_endDateHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Payments
85} // namespace Aws
BillingPeriod & WithStartDate(StartDateT &&value)
AWS_PAYMENTS_API BillingPeriod()=default
void SetStartDate(StartDateT &&value)
const Aws::Utils::DateTime & GetEndDate() const
AWS_PAYMENTS_API BillingPeriod(Aws::Utils::Json::JsonView jsonValue)
BillingPeriod & WithEndDate(EndDateT &&value)
const Aws::Utils::DateTime & GetStartDate() const
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTS_API BillingPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndDate(EndDateT &&value)
Aws::Utils::Json::JsonValue JsonValue