/* * 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 { /// /// Container for the parameters to the StopInferenceExperiment operation. /// Stops an inference experiment. /// public partial class StopInferenceExperimentRequest : AmazonSageMakerRequest { private List _desiredModelVariants = new List(); private InferenceExperimentStopDesiredState _desiredState; private Dictionary _modelVariantActions = new Dictionary(); private string _name; private string _reason; /// /// Gets and sets the property DesiredModelVariants. /// /// An array of ModelVariantConfig objects. There is one for each variant /// that you want to deploy after the inference experiment stops. Each ModelVariantConfig /// describes the infrastructure configuration for deploying the corresponding variant. /// /// /// [AWSProperty(Min=1, Max=2)] public List DesiredModelVariants { get { return this._desiredModelVariants; } set { this._desiredModelVariants = value; } } // Check to see if DesiredModelVariants property is set internal bool IsSetDesiredModelVariants() { return this._desiredModelVariants != null && this._desiredModelVariants.Count > 0; } /// /// Gets and sets the property DesiredState. /// /// The desired state of the experiment after stopping. The possible states are the following: /// /// ///
  • /// /// Completed: The experiment completed successfully /// ///
  • /// /// Cancelled: The experiment was canceled /// ///
///
public InferenceExperimentStopDesiredState DesiredState { get { return this._desiredState; } set { this._desiredState = value; } } // Check to see if DesiredState property is set internal bool IsSetDesiredState() { return this._desiredState != null; } /// /// Gets and sets the property ModelVariantActions. /// /// Array of key-value pairs, with names of variants mapped to actions. The possible /// actions are the following: /// ///
  • /// /// Promote - Promote the shadow variant to a production variant /// ///
  • /// /// Remove - Delete the variant /// ///
  • /// /// Retain - Keep the variant as it is /// ///
///
[AWSProperty(Required=true, Min=1, Max=2)] public Dictionary ModelVariantActions { get { return this._modelVariantActions; } set { this._modelVariantActions = value; } } // Check to see if ModelVariantActions property is set internal bool IsSetModelVariantActions() { return this._modelVariantActions != null && this._modelVariantActions.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of the inference experiment to stop. /// /// [AWSProperty(Required=true, Min=1, Max=120)] 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 Reason. /// /// The reason for stopping the experiment. /// /// [AWSProperty(Max=1024)] public string Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }