AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
InstanceGroupScalingMetadata.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKER_API InstanceGroupScalingMetadata() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetInstanceCount() const { return m_instanceCount; }
46 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
47 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
48 inline InstanceGroupScalingMetadata& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
50
52
55 inline int GetTargetCount() const { return m_targetCount; }
56 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
57 inline void SetTargetCount(int value) { m_targetCountHasBeenSet = true; m_targetCount = value; }
58 inline InstanceGroupScalingMetadata& WithTargetCount(int value) { SetTargetCount(value); return *this;}
60
62
66 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
67 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
68 template<typename FailureMessageT = Aws::String>
69 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
70 template<typename FailureMessageT = Aws::String>
71 InstanceGroupScalingMetadata& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
73 private:
74
75 int m_instanceCount{0};
76 bool m_instanceCountHasBeenSet = false;
77
78 int m_targetCount{0};
79 bool m_targetCountHasBeenSet = false;
80
81 Aws::String m_failureMessage;
82 bool m_failureMessageHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace SageMaker
87} // namespace Aws
InstanceGroupScalingMetadata & WithTargetCount(int value)
AWS_SAGEMAKER_API InstanceGroupScalingMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API InstanceGroupScalingMetadata()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceGroupScalingMetadata & WithFailureMessage(FailureMessageT &&value)
InstanceGroupScalingMetadata & WithInstanceCount(int value)
AWS_SAGEMAKER_API InstanceGroupScalingMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue