AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ReservedCapacitySummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
10#include <aws/sagemaker/model/ReservedCapacityStatus.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 SageMaker
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_SAGEMAKER_API ReservedCapacitySummary() = default;
44 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetReservedCapacityArn() const { return m_reservedCapacityArn; }
52 inline bool ReservedCapacityArnHasBeenSet() const { return m_reservedCapacityArnHasBeenSet; }
53 template<typename ReservedCapacityArnT = Aws::String>
54 void SetReservedCapacityArn(ReservedCapacityArnT&& value) { m_reservedCapacityArnHasBeenSet = true; m_reservedCapacityArn = std::forward<ReservedCapacityArnT>(value); }
55 template<typename ReservedCapacityArnT = Aws::String>
56 ReservedCapacitySummary& WithReservedCapacityArn(ReservedCapacityArnT&& value) { SetReservedCapacityArn(std::forward<ReservedCapacityArnT>(value)); return *this;}
58
60
63 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
64 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
65 inline void SetInstanceType(ReservedCapacityInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
68
70
73 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
74 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
75 inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
76 inline ReservedCapacitySummary& WithTotalInstanceCount(int value) { SetTotalInstanceCount(value); return *this;}
78
80
83 inline ReservedCapacityStatus GetStatus() const { return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(ReservedCapacityStatus value) { m_statusHasBeenSet = true; m_status = value; }
88
90
93 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
94 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
95 template<typename AvailabilityZoneT = Aws::String>
96 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
97 template<typename AvailabilityZoneT = Aws::String>
98 ReservedCapacitySummary& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
100
102
106 inline long long GetDurationHours() const { return m_durationHours; }
107 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
108 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
109 inline ReservedCapacitySummary& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
111
113
117 inline long long GetDurationMinutes() const { return m_durationMinutes; }
118 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
119 inline void SetDurationMinutes(long long value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = value; }
120 inline ReservedCapacitySummary& WithDurationMinutes(long long value) { SetDurationMinutes(value); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
128 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
129 template<typename StartTimeT = Aws::Utils::DateTime>
130 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
131 template<typename StartTimeT = Aws::Utils::DateTime>
132 ReservedCapacitySummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
140 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
141 template<typename EndTimeT = Aws::Utils::DateTime>
142 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
143 template<typename EndTimeT = Aws::Utils::DateTime>
144 ReservedCapacitySummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
146 private:
147
148 Aws::String m_reservedCapacityArn;
149 bool m_reservedCapacityArnHasBeenSet = false;
150
152 bool m_instanceTypeHasBeenSet = false;
153
154 int m_totalInstanceCount{0};
155 bool m_totalInstanceCountHasBeenSet = false;
156
158 bool m_statusHasBeenSet = false;
159
160 Aws::String m_availabilityZone;
161 bool m_availabilityZoneHasBeenSet = false;
162
163 long long m_durationHours{0};
164 bool m_durationHoursHasBeenSet = false;
165
166 long long m_durationMinutes{0};
167 bool m_durationMinutesHasBeenSet = false;
168
169 Aws::Utils::DateTime m_startTime{};
170 bool m_startTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_endTime{};
173 bool m_endTimeHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace SageMaker
178} // namespace Aws
ReservedCapacitySummary & WithDurationHours(long long value)
AWS_SAGEMAKER_API ReservedCapacitySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ReservedCapacitySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedCapacitySummary & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::Utils::DateTime & GetStartTime() const
ReservedCapacitySummary & WithTotalInstanceCount(int value)
ReservedCapacitySummary & WithInstanceType(ReservedCapacityInstanceType value)
void SetInstanceType(ReservedCapacityInstanceType value)
const Aws::Utils::DateTime & GetEndTime() const
ReservedCapacitySummary & WithDurationMinutes(long long value)
ReservedCapacitySummary & WithStatus(ReservedCapacityStatus value)
AWS_SAGEMAKER_API ReservedCapacitySummary()=default
ReservedCapacitySummary & WithEndTime(EndTimeT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ReservedCapacityInstanceType GetInstanceType() const
ReservedCapacitySummary & WithStartTime(StartTimeT &&value)
ReservedCapacitySummary & WithReservedCapacityArn(ReservedCapacityArnT &&value)
void SetReservedCapacityArn(ReservedCapacityArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue