AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CapacityReservation.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/athena/model/CapacityReservationStatus.h>
10#include <aws/athena/model/CapacityAllocation.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Athena
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ATHENA_API CapacityReservation() = default;
42 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 CapacityReservation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
61 inline CapacityReservationStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(CapacityReservationStatus value) { m_statusHasBeenSet = true; m_status = value; }
64 inline CapacityReservation& WithStatus(CapacityReservationStatus value) { SetStatus(value); return *this;}
66
68
71 inline int GetTargetDpus() const { return m_targetDpus; }
72 inline bool TargetDpusHasBeenSet() const { return m_targetDpusHasBeenSet; }
73 inline void SetTargetDpus(int value) { m_targetDpusHasBeenSet = true; m_targetDpus = value; }
74 inline CapacityReservation& WithTargetDpus(int value) { SetTargetDpus(value); return *this;}
76
78
81 inline int GetAllocatedDpus() const { return m_allocatedDpus; }
82 inline bool AllocatedDpusHasBeenSet() const { return m_allocatedDpusHasBeenSet; }
83 inline void SetAllocatedDpus(int value) { m_allocatedDpusHasBeenSet = true; m_allocatedDpus = value; }
84 inline CapacityReservation& WithAllocatedDpus(int value) { SetAllocatedDpus(value); return *this;}
86
88
89 inline const CapacityAllocation& GetLastAllocation() const { return m_lastAllocation; }
90 inline bool LastAllocationHasBeenSet() const { return m_lastAllocationHasBeenSet; }
91 template<typename LastAllocationT = CapacityAllocation>
92 void SetLastAllocation(LastAllocationT&& value) { m_lastAllocationHasBeenSet = true; m_lastAllocation = std::forward<LastAllocationT>(value); }
93 template<typename LastAllocationT = CapacityAllocation>
94 CapacityReservation& WithLastAllocation(LastAllocationT&& value) { SetLastAllocation(std::forward<LastAllocationT>(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastSuccessfulAllocationTime() const { return m_lastSuccessfulAllocationTime; }
102 inline bool LastSuccessfulAllocationTimeHasBeenSet() const { return m_lastSuccessfulAllocationTimeHasBeenSet; }
103 template<typename LastSuccessfulAllocationTimeT = Aws::Utils::DateTime>
104 void SetLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT&& value) { m_lastSuccessfulAllocationTimeHasBeenSet = true; m_lastSuccessfulAllocationTime = std::forward<LastSuccessfulAllocationTimeT>(value); }
105 template<typename LastSuccessfulAllocationTimeT = Aws::Utils::DateTime>
106 CapacityReservation& WithLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT&& value) { SetLastSuccessfulAllocationTime(std::forward<LastSuccessfulAllocationTimeT>(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
114 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
115 template<typename CreationTimeT = Aws::Utils::DateTime>
116 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
117 template<typename CreationTimeT = Aws::Utils::DateTime>
118 CapacityReservation& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
126 bool m_statusHasBeenSet = false;
127
128 int m_targetDpus{0};
129 bool m_targetDpusHasBeenSet = false;
130
131 int m_allocatedDpus{0};
132 bool m_allocatedDpusHasBeenSet = false;
133
134 CapacityAllocation m_lastAllocation;
135 bool m_lastAllocationHasBeenSet = false;
136
137 Aws::Utils::DateTime m_lastSuccessfulAllocationTime{};
138 bool m_lastSuccessfulAllocationTimeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_creationTime{};
141 bool m_creationTimeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Athena
146} // namespace Aws
CapacityReservation & WithAllocatedDpus(int value)
void SetStatus(CapacityReservationStatus value)
void SetLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT &&value)
AWS_ATHENA_API CapacityReservation & operator=(Aws::Utils::Json::JsonView jsonValue)
CapacityReservation & WithLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
CapacityReservation & WithName(NameT &&value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
const CapacityAllocation & GetLastAllocation() const
void SetLastAllocation(LastAllocationT &&value)
CapacityReservation & WithTargetDpus(int value)
CapacityReservation & WithLastAllocation(LastAllocationT &&value)
CapacityReservationStatus GetStatus() const
AWS_ATHENA_API CapacityReservation(Aws::Utils::Json::JsonView jsonValue)
CapacityReservation & WithStatus(CapacityReservationStatus value)
AWS_ATHENA_API CapacityReservation()=default
void SetCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulAllocationTime() const
CapacityReservation & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue