7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/CapacityAllocation.h>
9#include <aws/athena/model/CapacityReservationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
45 template <
typename NameT = Aws::String>
47 m_nameHasBeenSet =
true;
48 m_name = std::forward<NameT>(value);
50 template <
typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
64 m_statusHasBeenSet =
true;
80 m_targetDpusHasBeenSet =
true;
96 m_allocatedDpusHasBeenSet =
true;
97 m_allocatedDpus = value;
109 template <
typename LastAllocationT = CapacityAllocation>
111 m_lastAllocationHasBeenSet =
true;
112 m_lastAllocation = std::forward<LastAllocationT>(value);
114 template <
typename LastAllocationT = CapacityAllocation>
127 template <
typename LastSuccessfulAllocationTimeT = Aws::Utils::DateTime>
129 m_lastSuccessfulAllocationTimeHasBeenSet =
true;
130 m_lastSuccessfulAllocationTime = std::forward<LastSuccessfulAllocationTimeT>(value);
132 template <
typename LastSuccessfulAllocationTimeT = Aws::Utils::DateTime>
145 template <
typename CreationTimeT = Aws::Utils::DateTime>
147 m_creationTimeHasBeenSet =
true;
148 m_creationTime = std::forward<CreationTimeT>(value);
150 template <
typename CreationTimeT = Aws::Utils::DateTime>
163 int m_allocatedDpus{0};
165 CapacityAllocation m_lastAllocation;
170 bool m_nameHasBeenSet =
false;
171 bool m_statusHasBeenSet =
false;
172 bool m_targetDpusHasBeenSet =
false;
173 bool m_allocatedDpusHasBeenSet =
false;
174 bool m_lastAllocationHasBeenSet =
false;
175 bool m_lastSuccessfulAllocationTimeHasBeenSet =
false;
176 bool m_creationTimeHasBeenSet =
false;
int GetTargetDpus() const
CapacityReservation & WithAllocatedDpus(int value)
bool CreationTimeHasBeenSet() const
void SetStatus(CapacityReservationStatus value)
void SetLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT &&value)
AWS_ATHENA_API CapacityReservation & operator=(Aws::Utils::Json::JsonView jsonValue)
CapacityReservation & WithLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT &&value)
void SetName(NameT &&value)
int GetAllocatedDpus() const
bool StatusHasBeenSet() const
bool LastSuccessfulAllocationTimeHasBeenSet() const
const Aws::Utils::DateTime & GetCreationTime() const
CapacityReservation & WithName(NameT &&value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllocatedDpus(int value)
bool TargetDpusHasBeenSet() const
const CapacityAllocation & GetLastAllocation() const
void SetLastAllocation(LastAllocationT &&value)
const Aws::String & GetName() const
bool NameHasBeenSet() const
CapacityReservation & WithTargetDpus(int value)
CapacityReservation & WithLastAllocation(LastAllocationT &&value)
CapacityReservationStatus GetStatus() const
void SetTargetDpus(int value)
AWS_ATHENA_API CapacityReservation(Aws::Utils::Json::JsonView jsonValue)
CapacityReservation & WithStatus(CapacityReservationStatus value)
bool AllocatedDpusHasBeenSet() const
AWS_ATHENA_API CapacityReservation()=default
void SetCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulAllocationTime() const
bool LastAllocationHasBeenSet() const
CapacityReservation & WithCreationTime(CreationTimeT &&value)
CapacityReservationStatus
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue