AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeviceSelectionConfig.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/DeviceSubsetType.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 DeviceSelectionConfig() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline DeviceSubsetType GetDeviceSubsetType() const { return m_deviceSubsetType; }
42 inline bool DeviceSubsetTypeHasBeenSet() const { return m_deviceSubsetTypeHasBeenSet; }
44 m_deviceSubsetTypeHasBeenSet = true;
45 m_deviceSubsetType = value;
46 }
49 return *this;
50 }
52
54
57 inline int GetPercentage() const { return m_percentage; }
58 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
59 inline void SetPercentage(int value) {
60 m_percentageHasBeenSet = true;
61 m_percentage = value;
62 }
64 SetPercentage(value);
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Aws::String>& GetDeviceNames() const { return m_deviceNames; }
74 inline bool DeviceNamesHasBeenSet() const { return m_deviceNamesHasBeenSet; }
75 template <typename DeviceNamesT = Aws::Vector<Aws::String>>
76 void SetDeviceNames(DeviceNamesT&& value) {
77 m_deviceNamesHasBeenSet = true;
78 m_deviceNames = std::forward<DeviceNamesT>(value);
79 }
80 template <typename DeviceNamesT = Aws::Vector<Aws::String>>
81 DeviceSelectionConfig& WithDeviceNames(DeviceNamesT&& value) {
82 SetDeviceNames(std::forward<DeviceNamesT>(value));
83 return *this;
84 }
85 template <typename DeviceNamesT = Aws::String>
86 DeviceSelectionConfig& AddDeviceNames(DeviceNamesT&& value) {
87 m_deviceNamesHasBeenSet = true;
88 m_deviceNames.emplace_back(std::forward<DeviceNamesT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDeviceNameContains() const { return m_deviceNameContains; }
98 inline bool DeviceNameContainsHasBeenSet() const { return m_deviceNameContainsHasBeenSet; }
99 template <typename DeviceNameContainsT = Aws::String>
100 void SetDeviceNameContains(DeviceNameContainsT&& value) {
101 m_deviceNameContainsHasBeenSet = true;
102 m_deviceNameContains = std::forward<DeviceNameContainsT>(value);
103 }
104 template <typename DeviceNameContainsT = Aws::String>
105 DeviceSelectionConfig& WithDeviceNameContains(DeviceNameContainsT&& value) {
106 SetDeviceNameContains(std::forward<DeviceNameContainsT>(value));
107 return *this;
108 }
110 private:
112
113 int m_percentage{0};
114
115 Aws::Vector<Aws::String> m_deviceNames;
116
117 Aws::String m_deviceNameContains;
118 bool m_deviceSubsetTypeHasBeenSet = false;
119 bool m_percentageHasBeenSet = false;
120 bool m_deviceNamesHasBeenSet = false;
121 bool m_deviceNameContainsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace SageMaker
126} // 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