/* * 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 UpdateTrialComponent operation. /// Updates one or more properties of a trial component. /// public partial class UpdateTrialComponentRequest : AmazonSageMakerRequest { private string _displayName; private DateTime? _endTime; private Dictionary _inputArtifacts = new Dictionary(); private List _inputArtifactsToRemove = new List(); private Dictionary _outputArtifacts = new Dictionary(); private List _outputArtifactsToRemove = new List(); private Dictionary _parameters = new Dictionary(); private List _parametersToRemove = new List(); private DateTime? _startTime; private TrialComponentStatus _status; private string _trialComponentName; /// /// Gets and sets the property DisplayName. /// /// The name of the component as displayed. The name doesn't need to be unique. If DisplayName /// isn't specified, TrialComponentName is displayed. /// /// [AWSProperty(Min=1, Max=120)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property EndTime. /// /// When the component ended. /// /// public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property InputArtifacts. /// /// Replaces all of the component's input artifacts with the specified artifacts or adds /// new input artifacts. Existing input artifacts are replaced if the trial component /// is updated with an identical input artifact key. /// /// [AWSProperty(Max=30)] public Dictionary InputArtifacts { get { return this._inputArtifacts; } set { this._inputArtifacts = value; } } // Check to see if InputArtifacts property is set internal bool IsSetInputArtifacts() { return this._inputArtifacts != null && this._inputArtifacts.Count > 0; } /// /// Gets and sets the property InputArtifactsToRemove. /// /// The input artifacts to remove from the component. /// /// public List InputArtifactsToRemove { get { return this._inputArtifactsToRemove; } set { this._inputArtifactsToRemove = value; } } // Check to see if InputArtifactsToRemove property is set internal bool IsSetInputArtifactsToRemove() { return this._inputArtifactsToRemove != null && this._inputArtifactsToRemove.Count > 0; } /// /// Gets and sets the property OutputArtifacts. /// /// Replaces all of the component's output artifacts with the specified artifacts or adds /// new output artifacts. Existing output artifacts are replaced if the trial component /// is updated with an identical output artifact key. /// /// [AWSProperty(Max=30)] public Dictionary OutputArtifacts { get { return this._outputArtifacts; } set { this._outputArtifacts = value; } } // Check to see if OutputArtifacts property is set internal bool IsSetOutputArtifacts() { return this._outputArtifacts != null && this._outputArtifacts.Count > 0; } /// /// Gets and sets the property OutputArtifactsToRemove. /// /// The output artifacts to remove from the component. /// /// public List OutputArtifactsToRemove { get { return this._outputArtifactsToRemove; } set { this._outputArtifactsToRemove = value; } } // Check to see if OutputArtifactsToRemove property is set internal bool IsSetOutputArtifactsToRemove() { return this._outputArtifactsToRemove != null && this._outputArtifactsToRemove.Count > 0; } /// /// Gets and sets the property Parameters. /// /// Replaces all of the component's hyperparameters with the specified hyperparameters /// or add new hyperparameters. Existing hyperparameters are replaced if the trial component /// is updated with an identical hyperparameter key. /// /// [AWSProperty(Max=150)] public Dictionary Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null && this._parameters.Count > 0; } /// /// Gets and sets the property ParametersToRemove. /// /// The hyperparameters to remove from the component. /// /// public List ParametersToRemove { get { return this._parametersToRemove; } set { this._parametersToRemove = value; } } // Check to see if ParametersToRemove property is set internal bool IsSetParametersToRemove() { return this._parametersToRemove != null && this._parametersToRemove.Count > 0; } /// /// Gets and sets the property StartTime. /// /// When the component started. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property Status. /// /// The new status of the component. /// /// public TrialComponentStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property TrialComponentName. /// /// The name of the component to update. /// /// [AWSProperty(Required=true, Min=1, Max=120)] public string TrialComponentName { get { return this._trialComponentName; } set { this._trialComponentName = value; } } // Check to see if TrialComponentName property is set internal bool IsSetTrialComponentName() { return this._trialComponentName != null; } } }