AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
UltraServerSummary.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API UltraServerSummary() = default;
37 AWS_SAGEMAKER_API UltraServerSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
47 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
48 template<typename UltraServerTypeT = Aws::String>
49 void SetUltraServerType(UltraServerTypeT&& value) { m_ultraServerTypeHasBeenSet = true; m_ultraServerType = std::forward<UltraServerTypeT>(value); }
50 template<typename UltraServerTypeT = Aws::String>
51 UltraServerSummary& WithUltraServerType(UltraServerTypeT&& value) { SetUltraServerType(std::forward<UltraServerTypeT>(value)); return *this;}
53
55
58 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
59 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
60 inline void SetInstanceType(ReservedCapacityInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
63
65
68 inline int GetUltraServerCount() const { return m_ultraServerCount; }
69 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
70 inline void SetUltraServerCount(int value) { m_ultraServerCountHasBeenSet = true; m_ultraServerCount = value; }
71 inline UltraServerSummary& WithUltraServerCount(int value) { SetUltraServerCount(value); return *this;}
73
75
78 inline int GetAvailableSpareInstanceCount() const { return m_availableSpareInstanceCount; }
79 inline bool AvailableSpareInstanceCountHasBeenSet() const { return m_availableSpareInstanceCountHasBeenSet; }
80 inline void SetAvailableSpareInstanceCount(int value) { m_availableSpareInstanceCountHasBeenSet = true; m_availableSpareInstanceCount = value; }
83
85
89 inline int GetUnhealthyInstanceCount() const { return m_unhealthyInstanceCount; }
90 inline bool UnhealthyInstanceCountHasBeenSet() const { return m_unhealthyInstanceCountHasBeenSet; }
91 inline void SetUnhealthyInstanceCount(int value) { m_unhealthyInstanceCountHasBeenSet = true; m_unhealthyInstanceCount = value; }
94 private:
95
96 Aws::String m_ultraServerType;
97 bool m_ultraServerTypeHasBeenSet = false;
98
100 bool m_instanceTypeHasBeenSet = false;
101
102 int m_ultraServerCount{0};
103 bool m_ultraServerCountHasBeenSet = false;
104
105 int m_availableSpareInstanceCount{0};
106 bool m_availableSpareInstanceCountHasBeenSet = false;
107
108 int m_unhealthyInstanceCount{0};
109 bool m_unhealthyInstanceCountHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SageMaker
114} // 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