/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SageMaker.Model { /// /// Contains information about the configurations of selected devices. /// public partial class DeviceSelectionConfig { private string _deviceNameContains; private List _deviceNames = new List(); private DeviceSubsetType _deviceSubsetType; private int? _percentage; /// /// Gets and sets the property DeviceNameContains. /// /// A filter to select devices with names containing this name. /// /// [AWSProperty(Min=1, Max=63)] public string DeviceNameContains { get { return this._deviceNameContains; } set { this._deviceNameContains = value; } } // Check to see if DeviceNameContains property is set internal bool IsSetDeviceNameContains() { return this._deviceNameContains != null; } /// /// Gets and sets the property DeviceNames. /// /// List of devices chosen to deploy. /// /// public List DeviceNames { get { return this._deviceNames; } set { this._deviceNames = value; } } // Check to see if DeviceNames property is set internal bool IsSetDeviceNames() { return this._deviceNames != null && this._deviceNames.Count > 0; } /// /// Gets and sets the property DeviceSubsetType. /// /// Type of device subsets to deploy to the current stage. /// /// [AWSProperty(Required=true)] public DeviceSubsetType DeviceSubsetType { get { return this._deviceSubsetType; } set { this._deviceSubsetType = value; } } // Check to see if DeviceSubsetType property is set internal bool IsSetDeviceSubsetType() { return this._deviceSubsetType != null; } /// /// Gets and sets the property Percentage. /// /// Percentage of devices in the fleet to deploy to the current stage. /// /// [AWSProperty(Max=100)] public int Percentage { get { return this._percentage.GetValueOrDefault(); } set { this._percentage = value; } } // Check to see if Percentage property is set internal bool IsSetPercentage() { return this._percentage.HasValue; } } }