AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
InstancePlacementConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/PlacementSpecification.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API InstancePlacementConfig() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline bool GetEnableMultipleJobs() const { return m_enableMultipleJobs; }
50 inline bool EnableMultipleJobsHasBeenSet() const { return m_enableMultipleJobsHasBeenSet; }
51 inline void SetEnableMultipleJobs(bool value) { m_enableMultipleJobsHasBeenSet = true; m_enableMultipleJobs = value; }
52 inline InstancePlacementConfig& WithEnableMultipleJobs(bool value) { SetEnableMultipleJobs(value); return *this;}
54
56
60 inline const Aws::Vector<PlacementSpecification>& GetPlacementSpecifications() const { return m_placementSpecifications; }
61 inline bool PlacementSpecificationsHasBeenSet() const { return m_placementSpecificationsHasBeenSet; }
62 template<typename PlacementSpecificationsT = Aws::Vector<PlacementSpecification>>
63 void SetPlacementSpecifications(PlacementSpecificationsT&& value) { m_placementSpecificationsHasBeenSet = true; m_placementSpecifications = std::forward<PlacementSpecificationsT>(value); }
64 template<typename PlacementSpecificationsT = Aws::Vector<PlacementSpecification>>
65 InstancePlacementConfig& WithPlacementSpecifications(PlacementSpecificationsT&& value) { SetPlacementSpecifications(std::forward<PlacementSpecificationsT>(value)); return *this;}
66 template<typename PlacementSpecificationsT = PlacementSpecification>
67 InstancePlacementConfig& AddPlacementSpecifications(PlacementSpecificationsT&& value) { m_placementSpecificationsHasBeenSet = true; m_placementSpecifications.emplace_back(std::forward<PlacementSpecificationsT>(value)); return *this; }
69 private:
70
71 bool m_enableMultipleJobs{false};
72 bool m_enableMultipleJobsHasBeenSet = false;
73
74 Aws::Vector<PlacementSpecification> m_placementSpecifications;
75 bool m_placementSpecificationsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SageMaker
80} // namespace Aws
InstancePlacementConfig & WithPlacementSpecifications(PlacementSpecificationsT &&value)
const Aws::Vector< PlacementSpecification > & GetPlacementSpecifications() const
InstancePlacementConfig & WithEnableMultipleJobs(bool value)
AWS_SAGEMAKER_API InstancePlacementConfig(Aws::Utils::Json::JsonView jsonValue)
void SetPlacementSpecifications(PlacementSpecificationsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API InstancePlacementConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InstancePlacementConfig & AddPlacementSpecifications(PlacementSpecificationsT &&value)
AWS_SAGEMAKER_API InstancePlacementConfig()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue