AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
PlacementSpecification.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 PlacementSpecification() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetUltraServerId() const { return m_ultraServerId; }
47 inline bool UltraServerIdHasBeenSet() const { return m_ultraServerIdHasBeenSet; }
48 template<typename UltraServerIdT = Aws::String>
49 void SetUltraServerId(UltraServerIdT&& value) { m_ultraServerIdHasBeenSet = true; m_ultraServerId = std::forward<UltraServerIdT>(value); }
50 template<typename UltraServerIdT = Aws::String>
51 PlacementSpecification& WithUltraServerId(UltraServerIdT&& value) { SetUltraServerId(std::forward<UltraServerIdT>(value)); return *this;}
53
55
59 inline int GetInstanceCount() const { return m_instanceCount; }
60 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
61 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
62 inline PlacementSpecification& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
64 private:
65
66 Aws::String m_ultraServerId;
67 bool m_ultraServerIdHasBeenSet = false;
68
69 int m_instanceCount{0};
70 bool m_instanceCountHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SageMaker
75} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API PlacementSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API PlacementSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementSpecification & WithInstanceCount(int value)
PlacementSpecification & WithUltraServerId(UltraServerIdT &&value)
AWS_SAGEMAKER_API PlacementSpecification()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue