AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimePeriod.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Budgets
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_BUDGETS_API TimePeriod();
37 AWS_BUDGETS_API TimePeriod(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BUDGETS_API TimePeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const Aws::Utils::DateTime& GetStart() const{ return m_start; }
55 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
56 inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; }
57 inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
58 inline TimePeriod& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;}
59 inline TimePeriod& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(value)); return *this;}
61
63
71 inline const Aws::Utils::DateTime& GetEnd() const{ return m_end; }
72 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
73 inline void SetEnd(const Aws::Utils::DateTime& value) { m_endHasBeenSet = true; m_end = value; }
74 inline void SetEnd(Aws::Utils::DateTime&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
75 inline TimePeriod& WithEnd(const Aws::Utils::DateTime& value) { SetEnd(value); return *this;}
76 inline TimePeriod& WithEnd(Aws::Utils::DateTime&& value) { SetEnd(std::move(value)); return *this;}
78 private:
79
81 bool m_startHasBeenSet = false;
82
84 bool m_endHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Budgets
89} // namespace Aws
TimePeriod & WithEnd(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:75
AWS_BUDGETS_API TimePeriod(Aws::Utils::Json::JsonView jsonValue)
void SetEnd(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:73
TimePeriod & WithStart(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:59
void SetStart(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:57
void SetStart(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:56
TimePeriod & WithEnd(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:76
const Aws::Utils::DateTime & GetEnd() const
Definition TimePeriod.h:71
const Aws::Utils::DateTime & GetStart() const
Definition TimePeriod.h:54
AWS_BUDGETS_API TimePeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
TimePeriod & WithStart(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:58
void SetEnd(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:74
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue