AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BillingPeriod.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Invoicing {
17namespace Model {
18
26 public:
27 AWS_INVOICING_API BillingPeriod() = default;
28 AWS_INVOICING_API BillingPeriod(Aws::Utils::Json::JsonView jsonValue);
29 AWS_INVOICING_API BillingPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetMonth() const { return m_month; }
37 inline bool MonthHasBeenSet() const { return m_monthHasBeenSet; }
38 inline void SetMonth(int value) {
39 m_monthHasBeenSet = true;
40 m_month = value;
41 }
42 inline BillingPeriod& WithMonth(int value) {
43 SetMonth(value);
44 return *this;
45 }
47
49
52 inline int GetYear() const { return m_year; }
53 inline bool YearHasBeenSet() const { return m_yearHasBeenSet; }
54 inline void SetYear(int value) {
55 m_yearHasBeenSet = true;
56 m_year = value;
57 }
58 inline BillingPeriod& WithYear(int value) {
59 SetYear(value);
60 return *this;
61 }
63 private:
64 int m_month{0};
65
66 int m_year{0};
67 bool m_monthHasBeenSet = false;
68 bool m_yearHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace Invoicing
73} // 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