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>
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>
73 inline void SetTargetDpus(
int value) { m_targetDpusHasBeenSet =
true; m_targetDpus = value; }
83 inline void SetAllocatedDpus(
int value) { m_allocatedDpusHasBeenSet =
true; m_allocatedDpus = value; }
91 template<
typename LastAllocationT = CapacityAllocation>
92 void SetLastAllocation(LastAllocationT&& value) { m_lastAllocationHasBeenSet =
true; m_lastAllocation = std::forward<LastAllocationT>(value); }
93 template<
typename LastAllocationT = CapacityAllocation>
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>
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>
123 bool m_nameHasBeenSet =
false;
126 bool m_statusHasBeenSet =
false;
129 bool m_targetDpusHasBeenSet =
false;
131 int m_allocatedDpus{0};
132 bool m_allocatedDpusHasBeenSet =
false;
134 CapacityAllocation m_lastAllocation;
135 bool m_lastAllocationHasBeenSet =
false;
138 bool m_lastSuccessfulAllocationTimeHasBeenSet =
false;
141 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