AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UltraServerSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API UltraServerSummary() = default;
32 AWS_SAGEMAKER_API UltraServerSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
41 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
42 template <typename UltraServerTypeT = Aws::String>
43 void SetUltraServerType(UltraServerTypeT&& value) {
44 m_ultraServerTypeHasBeenSet = true;
45 m_ultraServerType = std::forward<UltraServerTypeT>(value);
46 }
47 template <typename UltraServerTypeT = Aws::String>
48 UltraServerSummary& WithUltraServerType(UltraServerTypeT&& value) {
49 SetUltraServerType(std::forward<UltraServerTypeT>(value));
50 return *this;
51 }
53
55
58 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
59 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
61 m_instanceTypeHasBeenSet = true;
62 m_instanceType = value;
63 }
65 SetInstanceType(value);
66 return *this;
67 }
69
71
74 inline int GetUltraServerCount() const { return m_ultraServerCount; }
75 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
76 inline void SetUltraServerCount(int value) {
77 m_ultraServerCountHasBeenSet = true;
78 m_ultraServerCount = value;
79 }
82 return *this;
83 }
85
87
90 inline int GetAvailableSpareInstanceCount() const { return m_availableSpareInstanceCount; }
91 inline bool AvailableSpareInstanceCountHasBeenSet() const { return m_availableSpareInstanceCountHasBeenSet; }
92 inline void SetAvailableSpareInstanceCount(int value) {
93 m_availableSpareInstanceCountHasBeenSet = true;
94 m_availableSpareInstanceCount = value;
95 }
98 return *this;
99 }
101
103
107 inline int GetUnhealthyInstanceCount() const { return m_unhealthyInstanceCount; }
108 inline bool UnhealthyInstanceCountHasBeenSet() const { return m_unhealthyInstanceCountHasBeenSet; }
109 inline void SetUnhealthyInstanceCount(int value) {
110 m_unhealthyInstanceCountHasBeenSet = true;
111 m_unhealthyInstanceCount = value;
112 }
115 return *this;
116 }
118 private:
119 Aws::String m_ultraServerType;
120
122
123 int m_ultraServerCount{0};
124
125 int m_availableSpareInstanceCount{0};
126
127 int m_unhealthyInstanceCount{0};
128 bool m_ultraServerTypeHasBeenSet = false;
129 bool m_instanceTypeHasBeenSet = false;
130 bool m_ultraServerCountHasBeenSet = false;
131 bool m_availableSpareInstanceCountHasBeenSet = false;
132 bool m_unhealthyInstanceCountHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace SageMaker
137} // namespace Aws
UltraServerSummary & WithUnhealthyInstanceCount(int value)
AWS_SAGEMAKER_API UltraServerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API UltraServerSummary()=default
UltraServerSummary & WithUltraServerType(UltraServerTypeT &&value)
void SetUltraServerType(UltraServerTypeT &&value)
UltraServerSummary & WithInstanceType(ReservedCapacityInstanceType value)
UltraServerSummary & WithUltraServerCount(int value)
const Aws::String & GetUltraServerType() const
ReservedCapacityInstanceType GetInstanceType() const
UltraServerSummary & WithAvailableSpareInstanceCount(int value)
void SetInstanceType(ReservedCapacityInstanceType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API UltraServerSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue