/* * 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 { /// /// Defines the input needed to run a transform job using the inference specification /// specified in the algorithm. /// public partial class TransformJobDefinition { private BatchStrategy _batchStrategy; private Dictionary _environment = new Dictionary(); private int? _maxConcurrentTransforms; private int? _maxPayloadInMB; private TransformInput _transformInput; private TransformOutput _transformOutput; private TransformResources _transformResources; /// /// Gets and sets the property BatchStrategy. /// /// A string that determines the number of records included in a single mini-batch. /// /// /// /// SingleRecord means only one record is used per mini-batch. MultiRecord /// means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB /// limit. /// /// public BatchStrategy BatchStrategy { get { return this._batchStrategy; } set { this._batchStrategy = value; } } // Check to see if BatchStrategy property is set internal bool IsSetBatchStrategy() { return this._batchStrategy != null; } /// /// Gets and sets the property Environment. /// /// The environment variables to set in the Docker container. We support up to 16 key /// and values entries in the map. /// /// [AWSProperty(Max=16)] public Dictionary Environment { get { return this._environment; } set { this._environment = value; } } // Check to see if Environment property is set internal bool IsSetEnvironment() { return this._environment != null && this._environment.Count > 0; } /// /// Gets and sets the property MaxConcurrentTransforms. /// /// The maximum number of parallel requests that can be sent to each instance in a transform /// job. The default value is 1. /// /// [AWSProperty(Min=0)] public int MaxConcurrentTransforms { get { return this._maxConcurrentTransforms.GetValueOrDefault(); } set { this._maxConcurrentTransforms = value; } } // Check to see if MaxConcurrentTransforms property is set internal bool IsSetMaxConcurrentTransforms() { return this._maxConcurrentTransforms.HasValue; } /// /// Gets and sets the property MaxPayloadInMB. /// /// The maximum payload size allowed, in MB. A payload is the data portion of a record /// (without metadata). /// /// [AWSProperty(Min=0)] public int MaxPayloadInMB { get { return this._maxPayloadInMB.GetValueOrDefault(); } set { this._maxPayloadInMB = value; } } // Check to see if MaxPayloadInMB property is set internal bool IsSetMaxPayloadInMB() { return this._maxPayloadInMB.HasValue; } /// /// Gets and sets the property TransformInput. /// /// A description of the input source and the way the transform job consumes it. /// /// [AWSProperty(Required=true)] public TransformInput TransformInput { get { return this._transformInput; } set { this._transformInput = value; } } // Check to see if TransformInput property is set internal bool IsSetTransformInput() { return this._transformInput != null; } /// /// Gets and sets the property TransformOutput. /// /// Identifies the Amazon S3 location where you want Amazon SageMaker to save the results /// from the transform job. /// /// [AWSProperty(Required=true)] public TransformOutput TransformOutput { get { return this._transformOutput; } set { this._transformOutput = value; } } // Check to see if TransformOutput property is set internal bool IsSetTransformOutput() { return this._transformOutput != null; } /// /// Gets and sets the property TransformResources. /// /// Identifies the ML compute instances for the transform job. /// /// [AWSProperty(Required=true)] public TransformResources TransformResources { get { return this._transformResources; } set { this._transformResources = value; } } // Check to see if TransformResources property is set internal bool IsSetTransformResources() { return this._transformResources != null; } } }