AWS SDK for C++

AWS SDK for C++ Version 1.11.804

Loading...
Searching...
No Matches
AICapacityReservationConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/AICapacityReservationPreference.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API AICapacityReservationConfig() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline AICapacityReservationPreference GetCapacityReservationPreference() const { return m_capacityReservationPreference; }
43 inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
45 m_capacityReservationPreferenceHasBeenSet = true;
46 m_capacityReservationPreference = value;
47 }
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetMlReservationArns() const { return m_mlReservationArns; }
59 inline bool MlReservationArnsHasBeenSet() const { return m_mlReservationArnsHasBeenSet; }
60 template <typename MlReservationArnsT = Aws::Vector<Aws::String>>
61 void SetMlReservationArns(MlReservationArnsT&& value) {
62 m_mlReservationArnsHasBeenSet = true;
63 m_mlReservationArns = std::forward<MlReservationArnsT>(value);
64 }
65 template <typename MlReservationArnsT = Aws::Vector<Aws::String>>
67 SetMlReservationArns(std::forward<MlReservationArnsT>(value));
68 return *this;
69 }
70 template <typename MlReservationArnsT = Aws::String>
72 m_mlReservationArnsHasBeenSet = true;
73 m_mlReservationArns.emplace_back(std::forward<MlReservationArnsT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::Vector<Aws::String> m_mlReservationArns;
81 bool m_capacityReservationPreferenceHasBeenSet = false;
82 bool m_mlReservationArnsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SageMaker
87} // namespace Aws
void SetCapacityReservationPreference(AICapacityReservationPreference value)
AWS_SAGEMAKER_API AICapacityReservationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetMlReservationArns() const
AWS_SAGEMAKER_API AICapacityReservationConfig()=default
AICapacityReservationConfig & WithCapacityReservationPreference(AICapacityReservationPreference value)
AWS_SAGEMAKER_API AICapacityReservationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AICapacityReservationConfig & AddMlReservationArns(MlReservationArnsT &&value)
AICapacityReservationPreference GetCapacityReservationPreference() const
AICapacityReservationConfig & WithMlReservationArns(MlReservationArnsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue