AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BillingPeriod.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Invoicing
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_INVOICING_API BillingPeriod() = default;
34 AWS_INVOICING_API BillingPeriod(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INVOICING_API BillingPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline int GetMonth() const { return m_month; }
44 inline bool MonthHasBeenSet() const { return m_monthHasBeenSet; }
45 inline void SetMonth(int value) { m_monthHasBeenSet = true; m_month = value; }
46 inline BillingPeriod& WithMonth(int value) { SetMonth(value); return *this;}
48
50
53 inline int GetYear() const { return m_year; }
54 inline bool YearHasBeenSet() const { return m_yearHasBeenSet; }
55 inline void SetYear(int value) { m_yearHasBeenSet = true; m_year = value; }
56 inline BillingPeriod& WithYear(int value) { SetYear(value); return *this;}
58 private:
59
60 int m_month{0};
61 bool m_monthHasBeenSet = false;
62
63 int m_year{0};
64 bool m_yearHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace Invoicing
69} // namespace Aws
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
BillingPeriod & WithYear(int value)
BillingPeriod & WithMonth(int value)
AWS_INVOICING_API BillingPeriod(Aws::Utils::Json::JsonView jsonValue)
AWS_INVOICING_API BillingPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INVOICING_API BillingPeriod()=default
Aws::Utils::Json::JsonValue JsonValue