AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeviceSelectionConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/DeviceSubsetType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API DeviceSelectionConfig() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline DeviceSubsetType GetDeviceSubsetType() const { return m_deviceSubsetType; }
48 inline bool DeviceSubsetTypeHasBeenSet() const { return m_deviceSubsetTypeHasBeenSet; }
49 inline void SetDeviceSubsetType(DeviceSubsetType value) { m_deviceSubsetTypeHasBeenSet = true; m_deviceSubsetType = value; }
52
54
57 inline int GetPercentage() const { return m_percentage; }
58 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
59 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
60 inline DeviceSelectionConfig& WithPercentage(int value) { SetPercentage(value); return *this;}
62
64
67 inline const Aws::Vector<Aws::String>& GetDeviceNames() const { return m_deviceNames; }
68 inline bool DeviceNamesHasBeenSet() const { return m_deviceNamesHasBeenSet; }
69 template<typename DeviceNamesT = Aws::Vector<Aws::String>>
70 void SetDeviceNames(DeviceNamesT&& value) { m_deviceNamesHasBeenSet = true; m_deviceNames = std::forward<DeviceNamesT>(value); }
71 template<typename DeviceNamesT = Aws::Vector<Aws::String>>
72 DeviceSelectionConfig& WithDeviceNames(DeviceNamesT&& value) { SetDeviceNames(std::forward<DeviceNamesT>(value)); return *this;}
73 template<typename DeviceNamesT = Aws::String>
74 DeviceSelectionConfig& AddDeviceNames(DeviceNamesT&& value) { m_deviceNamesHasBeenSet = true; m_deviceNames.emplace_back(std::forward<DeviceNamesT>(value)); return *this; }
76
78
81 inline const Aws::String& GetDeviceNameContains() const { return m_deviceNameContains; }
82 inline bool DeviceNameContainsHasBeenSet() const { return m_deviceNameContainsHasBeenSet; }
83 template<typename DeviceNameContainsT = Aws::String>
84 void SetDeviceNameContains(DeviceNameContainsT&& value) { m_deviceNameContainsHasBeenSet = true; m_deviceNameContains = std::forward<DeviceNameContainsT>(value); }
85 template<typename DeviceNameContainsT = Aws::String>
86 DeviceSelectionConfig& WithDeviceNameContains(DeviceNameContainsT&& value) { SetDeviceNameContains(std::forward<DeviceNameContainsT>(value)); return *this;}
88 private:
89
91 bool m_deviceSubsetTypeHasBeenSet = false;
92
93 int m_percentage{0};
94 bool m_percentageHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_deviceNames;
97 bool m_deviceNamesHasBeenSet = false;
98
99 Aws::String m_deviceNameContains;
100 bool m_deviceNameContainsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SageMaker
105} // namespace Aws
DeviceSelectionConfig & WithDeviceNames(DeviceNamesT &&value)
DeviceSelectionConfig & WithPercentage(int value)
AWS_SAGEMAKER_API DeviceSelectionConfig()=default
void SetDeviceNameContains(DeviceNameContainsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceSelectionConfig & AddDeviceNames(DeviceNamesT &&value)
DeviceSelectionConfig & WithDeviceSubsetType(DeviceSubsetType value)
DeviceSelectionConfig & WithDeviceNameContains(DeviceNameContainsT &&value)
AWS_SAGEMAKER_API DeviceSelectionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API DeviceSelectionConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetDeviceNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue