/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Contains information about the configurations of selected * devices.

See Also:

AWS * API Reference

*/ class DeviceSelectionConfig { public: AWS_SAGEMAKER_API DeviceSelectionConfig(); AWS_SAGEMAKER_API DeviceSelectionConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API DeviceSelectionConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Type of device subsets to deploy to the current stage.

*/ inline const DeviceSubsetType& GetDeviceSubsetType() const{ return m_deviceSubsetType; } /** *

Type of device subsets to deploy to the current stage.

*/ inline bool DeviceSubsetTypeHasBeenSet() const { return m_deviceSubsetTypeHasBeenSet; } /** *

Type of device subsets to deploy to the current stage.

*/ inline void SetDeviceSubsetType(const DeviceSubsetType& value) { m_deviceSubsetTypeHasBeenSet = true; m_deviceSubsetType = value; } /** *

Type of device subsets to deploy to the current stage.

*/ inline void SetDeviceSubsetType(DeviceSubsetType&& value) { m_deviceSubsetTypeHasBeenSet = true; m_deviceSubsetType = std::move(value); } /** *

Type of device subsets to deploy to the current stage.

*/ inline DeviceSelectionConfig& WithDeviceSubsetType(const DeviceSubsetType& value) { SetDeviceSubsetType(value); return *this;} /** *

Type of device subsets to deploy to the current stage.

*/ inline DeviceSelectionConfig& WithDeviceSubsetType(DeviceSubsetType&& value) { SetDeviceSubsetType(std::move(value)); return *this;} /** *

Percentage of devices in the fleet to deploy to the current stage.

*/ inline int GetPercentage() const{ return m_percentage; } /** *

Percentage of devices in the fleet to deploy to the current stage.

*/ inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; } /** *

Percentage of devices in the fleet to deploy to the current stage.

*/ inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; } /** *

Percentage of devices in the fleet to deploy to the current stage.

*/ inline DeviceSelectionConfig& WithPercentage(int value) { SetPercentage(value); return *this;} /** *

List of devices chosen to deploy.

*/ inline const Aws::Vector& GetDeviceNames() const{ return m_deviceNames; } /** *

List of devices chosen to deploy.

*/ inline bool DeviceNamesHasBeenSet() const { return m_deviceNamesHasBeenSet; } /** *

List of devices chosen to deploy.

*/ inline void SetDeviceNames(const Aws::Vector& value) { m_deviceNamesHasBeenSet = true; m_deviceNames = value; } /** *

List of devices chosen to deploy.

*/ inline void SetDeviceNames(Aws::Vector&& value) { m_deviceNamesHasBeenSet = true; m_deviceNames = std::move(value); } /** *

List of devices chosen to deploy.

*/ inline DeviceSelectionConfig& WithDeviceNames(const Aws::Vector& value) { SetDeviceNames(value); return *this;} /** *

List of devices chosen to deploy.

*/ inline DeviceSelectionConfig& WithDeviceNames(Aws::Vector&& value) { SetDeviceNames(std::move(value)); return *this;} /** *

List of devices chosen to deploy.

*/ inline DeviceSelectionConfig& AddDeviceNames(const Aws::String& value) { m_deviceNamesHasBeenSet = true; m_deviceNames.push_back(value); return *this; } /** *

List of devices chosen to deploy.

*/ inline DeviceSelectionConfig& AddDeviceNames(Aws::String&& value) { m_deviceNamesHasBeenSet = true; m_deviceNames.push_back(std::move(value)); return *this; } /** *

List of devices chosen to deploy.

*/ inline DeviceSelectionConfig& AddDeviceNames(const char* value) { m_deviceNamesHasBeenSet = true; m_deviceNames.push_back(value); return *this; } /** *

A filter to select devices with names containing this name.

*/ inline const Aws::String& GetDeviceNameContains() const{ return m_deviceNameContains; } /** *

A filter to select devices with names containing this name.

*/ inline bool DeviceNameContainsHasBeenSet() const { return m_deviceNameContainsHasBeenSet; } /** *

A filter to select devices with names containing this name.

*/ inline void SetDeviceNameContains(const Aws::String& value) { m_deviceNameContainsHasBeenSet = true; m_deviceNameContains = value; } /** *

A filter to select devices with names containing this name.

*/ inline void SetDeviceNameContains(Aws::String&& value) { m_deviceNameContainsHasBeenSet = true; m_deviceNameContains = std::move(value); } /** *

A filter to select devices with names containing this name.

*/ inline void SetDeviceNameContains(const char* value) { m_deviceNameContainsHasBeenSet = true; m_deviceNameContains.assign(value); } /** *

A filter to select devices with names containing this name.

*/ inline DeviceSelectionConfig& WithDeviceNameContains(const Aws::String& value) { SetDeviceNameContains(value); return *this;} /** *

A filter to select devices with names containing this name.

*/ inline DeviceSelectionConfig& WithDeviceNameContains(Aws::String&& value) { SetDeviceNameContains(std::move(value)); return *this;} /** *

A filter to select devices with names containing this name.

*/ inline DeviceSelectionConfig& WithDeviceNameContains(const char* value) { SetDeviceNameContains(value); return *this;} private: DeviceSubsetType m_deviceSubsetType; bool m_deviceSubsetTypeHasBeenSet = false; int m_percentage; bool m_percentageHasBeenSet = false; Aws::Vector m_deviceNames; bool m_deviceNamesHasBeenSet = false; Aws::String m_deviceNameContains; bool m_deviceNameContainsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws