/* * 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 CreateTrialComponent operation. /// Creates a trial component, which is a stage of a machine learning trial. /// A trial is composed of one or more trial components. A trial component can be used /// in multiple trials. /// /// /// /// Trial components include pre-processing jobs, training jobs, and batch transform jobs. /// /// /// /// When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, /// and trial components are automatically tracked, logged, and indexed. When you use /// the Amazon Web Services SDK for Python (Boto), you must use the logging APIs provided /// by the SDK. /// /// /// /// You can add tags to a trial component and then use the Search /// API to search for the tags. /// /// public partial class CreateTrialComponentRequest : AmazonSageMakerRequest { private string _displayName; private DateTime? _endTime; private Dictionary _inputArtifacts = new Dictionary(); private MetadataProperties _metadataProperties; private Dictionary _outputArtifacts = new Dictionary(); private Dictionary _parameters = new Dictionary(); private DateTime? _startTime; private TrialComponentStatus _status; private List _tags = new List(); 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. /// /// The input artifacts for the component. Examples of input artifacts are datasets, algorithms, /// hyperparameters, source code, and instance types. /// /// [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 MetadataProperties. /// public MetadataProperties MetadataProperties { get { return this._metadataProperties; } set { this._metadataProperties = value; } } // Check to see if MetadataProperties property is set internal bool IsSetMetadataProperties() { return this._metadataProperties != null; } /// /// Gets and sets the property OutputArtifacts. /// /// The output artifacts for the component. Examples of output artifacts are metrics, /// snapshots, logs, and images. /// /// [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 Parameters. /// /// The hyperparameters for the component. /// /// [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 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 status of the component. States include: /// ///
  • /// /// InProgress /// ///
  • /// /// Completed /// ///
  • /// /// Failed /// ///
///
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 Tags. /// /// A list of tags to associate with the component. You can use Search /// API to search on the tags. /// /// [AWSProperty(Min=0, Max=50)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property TrialComponentName. /// /// The name of the component. The name must be unique in your Amazon Web Services account /// and is not case-sensitive. /// /// [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; } } }