AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ClusterInstanceRequirementDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ClusterInstanceType.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
30 public:
31 AWS_SAGEMAKER_API ClusterInstanceRequirementDetails() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ClusterInstanceType>& GetCurrentInstanceTypes() const { return m_currentInstanceTypes; }
41 inline bool CurrentInstanceTypesHasBeenSet() const { return m_currentInstanceTypesHasBeenSet; }
42 template <typename CurrentInstanceTypesT = Aws::Vector<ClusterInstanceType>>
43 void SetCurrentInstanceTypes(CurrentInstanceTypesT&& value) {
44 m_currentInstanceTypesHasBeenSet = true;
45 m_currentInstanceTypes = std::forward<CurrentInstanceTypesT>(value);
46 }
47 template <typename CurrentInstanceTypesT = Aws::Vector<ClusterInstanceType>>
49 SetCurrentInstanceTypes(std::forward<CurrentInstanceTypesT>(value));
50 return *this;
51 }
53 m_currentInstanceTypesHasBeenSet = true;
54 m_currentInstanceTypes.push_back(value);
55 return *this;
56 }
58
60
64 inline const Aws::Vector<ClusterInstanceType>& GetDesiredInstanceTypes() const { return m_desiredInstanceTypes; }
65 inline bool DesiredInstanceTypesHasBeenSet() const { return m_desiredInstanceTypesHasBeenSet; }
66 template <typename DesiredInstanceTypesT = Aws::Vector<ClusterInstanceType>>
67 void SetDesiredInstanceTypes(DesiredInstanceTypesT&& value) {
68 m_desiredInstanceTypesHasBeenSet = true;
69 m_desiredInstanceTypes = std::forward<DesiredInstanceTypesT>(value);
70 }
71 template <typename DesiredInstanceTypesT = Aws::Vector<ClusterInstanceType>>
73 SetDesiredInstanceTypes(std::forward<DesiredInstanceTypesT>(value));
74 return *this;
75 }
77 m_desiredInstanceTypesHasBeenSet = true;
78 m_desiredInstanceTypes.push_back(value);
79 return *this;
80 }
82 private:
83 Aws::Vector<ClusterInstanceType> m_currentInstanceTypes;
84
85 Aws::Vector<ClusterInstanceType> m_desiredInstanceTypes;
86 bool m_currentInstanceTypesHasBeenSet = false;
87 bool m_desiredInstanceTypesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace SageMaker
92} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterInstanceRequirementDetails & AddDesiredInstanceTypes(ClusterInstanceType value)
AWS_SAGEMAKER_API ClusterInstanceRequirementDetails(Aws::Utils::Json::JsonView jsonValue)
ClusterInstanceRequirementDetails & AddCurrentInstanceTypes(ClusterInstanceType value)
AWS_SAGEMAKER_API ClusterInstanceRequirementDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterInstanceRequirementDetails & WithDesiredInstanceTypes(DesiredInstanceTypesT &&value)
const Aws::Vector< ClusterInstanceType > & GetCurrentInstanceTypes() const
ClusterInstanceRequirementDetails & WithCurrentInstanceTypes(CurrentInstanceTypesT &&value)
const Aws::Vector< ClusterInstanceType > & GetDesiredInstanceTypes() const
AWS_SAGEMAKER_API ClusterInstanceRequirementDetails()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue