/* * 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 glue-2017-03-31.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.Glue.Model { /// /// Container for the parameters to the UpdateMLTransform operation. /// Updates an existing machine learning transform. Call this operation to tune the algorithm /// parameters to achieve better results. /// /// /// /// After calling this operation, you can call the StartMLEvaluationTaskRun /// operation to assess how well your new parameters achieved your goals (such as improving /// the quality of your machine learning transform, or making it more cost-effective). /// /// public partial class UpdateMLTransformRequest : AmazonGlueRequest { private string _description; private string _glueVersion; private double? _maxCapacity; private int? _maxRetries; private string _name; private int? _numberOfWorkers; private TransformParameters _parameters; private string _role; private int? _timeout; private string _transformId; private WorkerType _workerType; /// /// Gets and sets the property Description. /// /// A description of the transform. The default is an empty string. /// /// [AWSProperty(Min=0, Max=2048)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property GlueVersion. /// /// This value determines which version of Glue this machine learning transform is compatible /// with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue /// compatibility defaults to Glue 0.9. For more information, see Glue /// Versions in the developer guide. /// /// [AWSProperty(Min=1, Max=255)] public string GlueVersion { get { return this._glueVersion; } set { this._glueVersion = value; } } // Check to see if GlueVersion property is set internal bool IsSetGlueVersion() { return this._glueVersion != null; } /// /// Gets and sets the property MaxCapacity. /// /// The number of Glue data processing units (DPUs) that are allocated to task runs for /// this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a /// relative measure of processing power that consists of 4 vCPUs of compute capacity /// and 16 GB of memory. For more information, see the Glue /// pricing page. /// /// /// /// When the WorkerType field is set to a value other than Standard, /// the MaxCapacity field is set automatically and becomes read-only. /// /// public double MaxCapacity { get { return this._maxCapacity.GetValueOrDefault(); } set { this._maxCapacity = value; } } // Check to see if MaxCapacity property is set internal bool IsSetMaxCapacity() { return this._maxCapacity.HasValue; } /// /// Gets and sets the property MaxRetries. /// /// The maximum number of times to retry a task for this transform after a task run fails. /// /// public int MaxRetries { get { return this._maxRetries.GetValueOrDefault(); } set { this._maxRetries = value; } } // Check to see if MaxRetries property is set internal bool IsSetMaxRetries() { return this._maxRetries.HasValue; } /// /// Gets and sets the property Name. /// /// The unique name that you gave the transform when you created it. /// /// [AWSProperty(Min=1, Max=255)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property NumberOfWorkers. /// /// The number of workers of a defined workerType that are allocated when /// this task runs. /// /// public int NumberOfWorkers { get { return this._numberOfWorkers.GetValueOrDefault(); } set { this._numberOfWorkers = value; } } // Check to see if NumberOfWorkers property is set internal bool IsSetNumberOfWorkers() { return this._numberOfWorkers.HasValue; } /// /// Gets and sets the property Parameters. /// /// The configuration parameters that are specific to the transform type (algorithm) used. /// Conditionally dependent on the transform type. /// /// public TransformParameters Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null; } /// /// Gets and sets the property Role. /// /// The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. /// /// public string Role { get { return this._role; } set { this._role = value; } } // Check to see if Role property is set internal bool IsSetRole() { return this._role != null; } /// /// Gets and sets the property Timeout. /// /// The timeout for a task run for this transform in minutes. This is the maximum time /// that a task run for this transform can consume resources before it is terminated and /// enters TIMEOUT status. The default is 2,880 minutes (48 hours). /// /// [AWSProperty(Min=1)] public int Timeout { get { return this._timeout.GetValueOrDefault(); } set { this._timeout = value; } } // Check to see if Timeout property is set internal bool IsSetTimeout() { return this._timeout.HasValue; } /// /// Gets and sets the property TransformId. /// /// A unique identifier that was generated when the transform was created. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string TransformId { get { return this._transformId; } set { this._transformId = value; } } // Check to see if TransformId property is set internal bool IsSetTransformId() { return this._transformId != null; } /// /// Gets and sets the property WorkerType. /// /// The type of predefined worker that is allocated when this task runs. Accepts a value /// of Standard, G.1X, or G.2X. /// /// /// public WorkerType WorkerType { get { return this._workerType; } set { this._workerType = value; } } // Check to see if WorkerType property is set internal bool IsSetWorkerType() { return this._workerType != null; } } }