AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline CapacityReservation& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline CapacityReservation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline CapacityReservation& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const CapacityReservationStatus& GetStatus() const{ return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(const CapacityReservationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
66 inline void SetStatus(CapacityReservationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
67 inline CapacityReservation& WithStatus(const CapacityReservationStatus& value) { SetStatus(value); return *this;}
68 inline CapacityReservation& WithStatus(CapacityReservationStatus&& value) { SetStatus(std::move(value)); return *this;}
70
72
75 inline int GetTargetDpus() const{ return m_targetDpus; }
76 inline bool TargetDpusHasBeenSet() const { return m_targetDpusHasBeenSet; }
77 inline void SetTargetDpus(int value) { m_targetDpusHasBeenSet = true; m_targetDpus = value; }
78 inline CapacityReservation& WithTargetDpus(int value) { SetTargetDpus(value); return *this;}
80
82
85 inline int GetAllocatedDpus() const{ return m_allocatedDpus; }
86 inline bool AllocatedDpusHasBeenSet() const { return m_allocatedDpusHasBeenSet; }
87 inline void SetAllocatedDpus(int value) { m_allocatedDpusHasBeenSet = true; m_allocatedDpus = value; }
88 inline CapacityReservation& WithAllocatedDpus(int value) { SetAllocatedDpus(value); return *this;}
90
92
93 inline const CapacityAllocation& GetLastAllocation() const{ return m_lastAllocation; }
94 inline bool LastAllocationHasBeenSet() const { return m_lastAllocationHasBeenSet; }
95 inline void SetLastAllocation(const CapacityAllocation& value) { m_lastAllocationHasBeenSet = true; m_lastAllocation = value; }
96 inline void SetLastAllocation(CapacityAllocation&& value) { m_lastAllocationHasBeenSet = true; m_lastAllocation = std::move(value); }
97 inline CapacityReservation& WithLastAllocation(const CapacityAllocation& value) { SetLastAllocation(value); return *this;}
98 inline CapacityReservation& WithLastAllocation(CapacityAllocation&& value) { SetLastAllocation(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastSuccessfulAllocationTime() const{ return m_lastSuccessfulAllocationTime; }
106 inline bool LastSuccessfulAllocationTimeHasBeenSet() const { return m_lastSuccessfulAllocationTimeHasBeenSet; }
107 inline void SetLastSuccessfulAllocationTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulAllocationTimeHasBeenSet = true; m_lastSuccessfulAllocationTime = value; }
108 inline void SetLastSuccessfulAllocationTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulAllocationTimeHasBeenSet = true; m_lastSuccessfulAllocationTime = std::move(value); }
112
114
117 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
118 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
119 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
120 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
121 inline CapacityReservation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
122 inline CapacityReservation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
124 private:
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
130 bool m_statusHasBeenSet = false;
131
132 int m_targetDpus;
133 bool m_targetDpusHasBeenSet = false;
134
135 int m_allocatedDpus;
136 bool m_allocatedDpusHasBeenSet = false;
137
138 CapacityAllocation m_lastAllocation;
139 bool m_lastAllocationHasBeenSet = false;
140
141 Aws::Utils::DateTime m_lastSuccessfulAllocationTime;
142 bool m_lastSuccessfulAllocationTimeHasBeenSet = false;
143
144 Aws::Utils::DateTime m_creationTime;
145 bool m_creationTimeHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Athena
150} // namespace Aws
CapacityReservation & WithAllocatedDpus(int value)
void SetStatus(CapacityReservationStatus &&value)
void SetStatus(const CapacityReservationStatus &value)
const CapacityReservationStatus & GetStatus() const
AWS_ATHENA_API CapacityReservation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastSuccessfulAllocationTime(Aws::Utils::DateTime &&value)
CapacityReservation & WithStatus(const CapacityReservationStatus &value)
CapacityReservation & WithLastSuccessfulAllocationTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
CapacityReservation & WithStatus(CapacityReservationStatus &&value)
const CapacityAllocation & GetLastAllocation() const
void SetLastSuccessfulAllocationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
CapacityReservation & WithTargetDpus(int value)
void SetLastAllocation(const CapacityAllocation &value)
CapacityReservation & WithName(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
AWS_ATHENA_API CapacityReservation(Aws::Utils::Json::JsonView jsonValue)
CapacityReservation & WithName(const char *value)
CapacityReservation & WithLastSuccessfulAllocationTime(const Aws::Utils::DateTime &value)
CapacityReservation & WithLastAllocation(const CapacityAllocation &value)
const Aws::Utils::DateTime & GetLastSuccessfulAllocationTime() const
CapacityReservation & WithName(Aws::String &&value)
CapacityReservation & WithLastAllocation(CapacityAllocation &&value)
CapacityReservation & WithCreationTime(Aws::Utils::DateTime &&value)
void SetLastAllocation(CapacityAllocation &&value)
CapacityReservation & WithCreationTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue