AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterCapacityRequirements.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClusterOnDemandOptions.h>
9#include <aws/sagemaker/model/ClusterSpotOptions.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
31 public:
32 AWS_SAGEMAKER_API ClusterCapacityRequirements() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const ClusterSpotOptions& GetSpot() const { return m_spot; }
42 inline bool SpotHasBeenSet() const { return m_spotHasBeenSet; }
43 template <typename SpotT = ClusterSpotOptions>
44 void SetSpot(SpotT&& value) {
45 m_spotHasBeenSet = true;
46 m_spot = std::forward<SpotT>(value);
47 }
48 template <typename SpotT = ClusterSpotOptions>
50 SetSpot(std::forward<SpotT>(value));
51 return *this;
52 }
54
56
59 inline const ClusterOnDemandOptions& GetOnDemand() const { return m_onDemand; }
60 inline bool OnDemandHasBeenSet() const { return m_onDemandHasBeenSet; }
61 template <typename OnDemandT = ClusterOnDemandOptions>
62 void SetOnDemand(OnDemandT&& value) {
63 m_onDemandHasBeenSet = true;
64 m_onDemand = std::forward<OnDemandT>(value);
65 }
66 template <typename OnDemandT = ClusterOnDemandOptions>
68 SetOnDemand(std::forward<OnDemandT>(value));
69 return *this;
70 }
72 private:
73 ClusterSpotOptions m_spot;
74
75 ClusterOnDemandOptions m_onDemand;
76 bool m_spotHasBeenSet = false;
77 bool m_onDemandHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SageMaker
82} // namespace Aws
ClusterCapacityRequirements & WithOnDemand(OnDemandT &&value)
AWS_SAGEMAKER_API ClusterCapacityRequirements()=default
AWS_SAGEMAKER_API ClusterCapacityRequirements(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterCapacityRequirements & WithSpot(SpotT &&value)
AWS_SAGEMAKER_API ClusterCapacityRequirements & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue