7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClusterOnDemandOptions.h>
9#include <aws/sagemaker/model/ClusterSpotOptions.h>
43 template <
typename SpotT = ClusterSpotOptions>
45 m_spotHasBeenSet =
true;
46 m_spot = std::forward<SpotT>(value);
48 template <
typename SpotT = ClusterSpotOptions>
50 SetSpot(std::forward<SpotT>(value));
61 template <
typename OnDemandT = ClusterOnDemandOptions>
63 m_onDemandHasBeenSet =
true;
64 m_onDemand = std::forward<OnDemandT>(value);
66 template <
typename OnDemandT = ClusterOnDemandOptions>
76 bool m_spotHasBeenSet =
false;
77 bool m_onDemandHasBeenSet =
false;
const ClusterOnDemandOptions & GetOnDemand() const
ClusterCapacityRequirements & WithOnDemand(OnDemandT &&value)
AWS_SAGEMAKER_API ClusterCapacityRequirements()=default
AWS_SAGEMAKER_API ClusterCapacityRequirements(Aws::Utils::Json::JsonView jsonValue)
bool SpotHasBeenSet() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool OnDemandHasBeenSet() const
void SetOnDemand(OnDemandT &&value)
ClusterCapacityRequirements & WithSpot(SpotT &&value)
const ClusterSpotOptions & GetSpot() const
AWS_SAGEMAKER_API ClusterCapacityRequirements & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSpot(SpotT &&value)
Aws::Utils::Json::JsonValue JsonValue