AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const DeviceSubsetType& GetDeviceSubsetType() const{ return m_deviceSubsetType; }
48 inline bool DeviceSubsetTypeHasBeenSet() const { return m_deviceSubsetTypeHasBeenSet; }
49 inline void SetDeviceSubsetType(const DeviceSubsetType& value) { m_deviceSubsetTypeHasBeenSet = true; m_deviceSubsetType = value; }
50 inline void SetDeviceSubsetType(DeviceSubsetType&& value) { m_deviceSubsetTypeHasBeenSet = true; m_deviceSubsetType = std::move(value); }
52 inline DeviceSelectionConfig& WithDeviceSubsetType(DeviceSubsetType&& value) { SetDeviceSubsetType(std::move(value)); return *this;}
54
56
59 inline int GetPercentage() const{ return m_percentage; }
60 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
61 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
62 inline DeviceSelectionConfig& WithPercentage(int value) { SetPercentage(value); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetDeviceNames() const{ return m_deviceNames; }
70 inline bool DeviceNamesHasBeenSet() const { return m_deviceNamesHasBeenSet; }
71 inline void SetDeviceNames(const Aws::Vector<Aws::String>& value) { m_deviceNamesHasBeenSet = true; m_deviceNames = value; }
72 inline void SetDeviceNames(Aws::Vector<Aws::String>&& value) { m_deviceNamesHasBeenSet = true; m_deviceNames = std::move(value); }
74 inline DeviceSelectionConfig& WithDeviceNames(Aws::Vector<Aws::String>&& value) { SetDeviceNames(std::move(value)); return *this;}
75 inline DeviceSelectionConfig& AddDeviceNames(const Aws::String& value) { m_deviceNamesHasBeenSet = true; m_deviceNames.push_back(value); return *this; }
76 inline DeviceSelectionConfig& AddDeviceNames(Aws::String&& value) { m_deviceNamesHasBeenSet = true; m_deviceNames.push_back(std::move(value)); return *this; }
77 inline DeviceSelectionConfig& AddDeviceNames(const char* value) { m_deviceNamesHasBeenSet = true; m_deviceNames.push_back(value); return *this; }
79
81
84 inline const Aws::String& GetDeviceNameContains() const{ return m_deviceNameContains; }
85 inline bool DeviceNameContainsHasBeenSet() const { return m_deviceNameContainsHasBeenSet; }
86 inline void SetDeviceNameContains(const Aws::String& value) { m_deviceNameContainsHasBeenSet = true; m_deviceNameContains = value; }
87 inline void SetDeviceNameContains(Aws::String&& value) { m_deviceNameContainsHasBeenSet = true; m_deviceNameContains = std::move(value); }
88 inline void SetDeviceNameContains(const char* value) { m_deviceNameContainsHasBeenSet = true; m_deviceNameContains.assign(value); }
90 inline DeviceSelectionConfig& WithDeviceNameContains(Aws::String&& value) { SetDeviceNameContains(std::move(value)); return *this;}
91 inline DeviceSelectionConfig& WithDeviceNameContains(const char* value) { SetDeviceNameContains(value); return *this;}
93 private:
94
95 DeviceSubsetType m_deviceSubsetType;
96 bool m_deviceSubsetTypeHasBeenSet = false;
97
98 int m_percentage;
99 bool m_percentageHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_deviceNames;
102 bool m_deviceNamesHasBeenSet = false;
103
104 Aws::String m_deviceNameContains;
105 bool m_deviceNameContainsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SageMaker
110} // namespace Aws
void SetDeviceNames(const Aws::Vector< Aws::String > &value)
const DeviceSubsetType & GetDeviceSubsetType() const
DeviceSelectionConfig & WithDeviceNames(Aws::Vector< Aws::String > &&value)
DeviceSelectionConfig & WithPercentage(int value)
DeviceSelectionConfig & WithDeviceSubsetType(const DeviceSubsetType &value)
DeviceSelectionConfig & AddDeviceNames(Aws::String &&value)
DeviceSelectionConfig & AddDeviceNames(const char *value)
DeviceSelectionConfig & WithDeviceNameContains(const Aws::String &value)
DeviceSelectionConfig & AddDeviceNames(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceSelectionConfig & WithDeviceSubsetType(DeviceSubsetType &&value)
void SetDeviceSubsetType(const DeviceSubsetType &value)
void SetDeviceNames(Aws::Vector< Aws::String > &&value)
DeviceSelectionConfig & WithDeviceNames(const Aws::Vector< Aws::String > &value)
void SetDeviceNameContains(const Aws::String &value)
AWS_SAGEMAKER_API DeviceSelectionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
DeviceSelectionConfig & WithDeviceNameContains(Aws::String &&value)
void SetDeviceSubsetType(DeviceSubsetType &&value)
DeviceSelectionConfig & WithDeviceNameContains(const char *value)
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