AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Ec2CapacityReservation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
29 public:
30 AWS_SAGEMAKER_API Ec2CapacityReservation() = default;
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetEc2CapacityReservationId() const { return m_ec2CapacityReservationId; }
41 inline bool Ec2CapacityReservationIdHasBeenSet() const { return m_ec2CapacityReservationIdHasBeenSet; }
42 template <typename Ec2CapacityReservationIdT = Aws::String>
43 void SetEc2CapacityReservationId(Ec2CapacityReservationIdT&& value) {
44 m_ec2CapacityReservationIdHasBeenSet = true;
45 m_ec2CapacityReservationId = std::forward<Ec2CapacityReservationIdT>(value);
46 }
47 template <typename Ec2CapacityReservationIdT = Aws::String>
48 Ec2CapacityReservation& WithEc2CapacityReservationId(Ec2CapacityReservationIdT&& value) {
49 SetEc2CapacityReservationId(std::forward<Ec2CapacityReservationIdT>(value));
50 return *this;
51 }
53
55
59 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
60 inline bool TotalInstanceCountHasBeenSet() const { return m_totalInstanceCountHasBeenSet; }
61 inline void SetTotalInstanceCount(int value) {
62 m_totalInstanceCountHasBeenSet = true;
63 m_totalInstanceCount = value;
64 }
67 return *this;
68 }
70
72
76 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
77 inline bool AvailableInstanceCountHasBeenSet() const { return m_availableInstanceCountHasBeenSet; }
78 inline void SetAvailableInstanceCount(int value) {
79 m_availableInstanceCountHasBeenSet = true;
80 m_availableInstanceCount = value;
81 }
84 return *this;
85 }
87
89
93 inline int GetUsedByCurrentEndpoint() const { return m_usedByCurrentEndpoint; }
94 inline bool UsedByCurrentEndpointHasBeenSet() const { return m_usedByCurrentEndpointHasBeenSet; }
95 inline void SetUsedByCurrentEndpoint(int value) {
96 m_usedByCurrentEndpointHasBeenSet = true;
97 m_usedByCurrentEndpoint = value;
98 }
101 return *this;
102 }
104 private:
105 Aws::String m_ec2CapacityReservationId;
106
107 int m_totalInstanceCount{0};
108
109 int m_availableInstanceCount{0};
110
111 int m_usedByCurrentEndpoint{0};
112 bool m_ec2CapacityReservationIdHasBeenSet = false;
113 bool m_totalInstanceCountHasBeenSet = false;
114 bool m_availableInstanceCountHasBeenSet = false;
115 bool m_usedByCurrentEndpointHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace SageMaker
120} // namespace Aws
Ec2CapacityReservation & WithEc2CapacityReservationId(Ec2CapacityReservationIdT &&value)
Ec2CapacityReservation & WithUsedByCurrentEndpoint(int value)
AWS_SAGEMAKER_API Ec2CapacityReservation()=default
void SetEc2CapacityReservationId(Ec2CapacityReservationIdT &&value)
Ec2CapacityReservation & WithTotalInstanceCount(int value)
AWS_SAGEMAKER_API Ec2CapacityReservation & operator=(Aws::Utils::Json::JsonView jsonValue)
Ec2CapacityReservation & WithAvailableInstanceCount(int value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API Ec2CapacityReservation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue