/* * 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 { /// /// Describes weight and capacities for a production variant associated with an endpoint. /// If you sent a request to the UpdateEndpointWeightsAndCapacities API and /// the endpoint status is Updating, you get different desired and current /// values. /// public partial class ProductionVariantSummary { private int? _currentInstanceCount; private ProductionVariantServerlessConfig _currentServerlessConfig; private float? _currentWeight; private List _deployedImages = new List(); private int? _desiredInstanceCount; private ProductionVariantServerlessConfig _desiredServerlessConfig; private float? _desiredWeight; private string _variantName; private List _variantStatus = new List(); /// /// Gets and sets the property CurrentInstanceCount. /// /// The number of instances associated with the variant. /// /// [AWSProperty(Min=0)] public int CurrentInstanceCount { get { return this._currentInstanceCount.GetValueOrDefault(); } set { this._currentInstanceCount = value; } } // Check to see if CurrentInstanceCount property is set internal bool IsSetCurrentInstanceCount() { return this._currentInstanceCount.HasValue; } /// /// Gets and sets the property CurrentServerlessConfig. /// /// The serverless configuration for the endpoint. /// /// public ProductionVariantServerlessConfig CurrentServerlessConfig { get { return this._currentServerlessConfig; } set { this._currentServerlessConfig = value; } } // Check to see if CurrentServerlessConfig property is set internal bool IsSetCurrentServerlessConfig() { return this._currentServerlessConfig != null; } /// /// Gets and sets the property CurrentWeight. /// /// The weight associated with the variant. /// /// [AWSProperty(Min=0)] public float CurrentWeight { get { return this._currentWeight.GetValueOrDefault(); } set { this._currentWeight = value; } } // Check to see if CurrentWeight property is set internal bool IsSetCurrentWeight() { return this._currentWeight.HasValue; } /// /// Gets and sets the property DeployedImages. /// /// An array of DeployedImage objects that specify the Amazon EC2 Container /// Registry paths of the inference images deployed on instances of this ProductionVariant. /// /// public List DeployedImages { get { return this._deployedImages; } set { this._deployedImages = value; } } // Check to see if DeployedImages property is set internal bool IsSetDeployedImages() { return this._deployedImages != null && this._deployedImages.Count > 0; } /// /// Gets and sets the property DesiredInstanceCount. /// /// The number of instances requested in the UpdateEndpointWeightsAndCapacities /// request. /// /// [AWSProperty(Min=0)] public int DesiredInstanceCount { get { return this._desiredInstanceCount.GetValueOrDefault(); } set { this._desiredInstanceCount = value; } } // Check to see if DesiredInstanceCount property is set internal bool IsSetDesiredInstanceCount() { return this._desiredInstanceCount.HasValue; } /// /// Gets and sets the property DesiredServerlessConfig. /// /// The serverless configuration requested for the endpoint update. /// /// public ProductionVariantServerlessConfig DesiredServerlessConfig { get { return this._desiredServerlessConfig; } set { this._desiredServerlessConfig = value; } } // Check to see if DesiredServerlessConfig property is set internal bool IsSetDesiredServerlessConfig() { return this._desiredServerlessConfig != null; } /// /// Gets and sets the property DesiredWeight. /// /// The requested weight, as specified in the UpdateEndpointWeightsAndCapacities /// request. /// /// [AWSProperty(Min=0)] public float DesiredWeight { get { return this._desiredWeight.GetValueOrDefault(); } set { this._desiredWeight = value; } } // Check to see if DesiredWeight property is set internal bool IsSetDesiredWeight() { return this._desiredWeight.HasValue; } /// /// Gets and sets the property VariantName. /// /// The name of the variant. /// /// [AWSProperty(Required=true, Max=63)] public string VariantName { get { return this._variantName; } set { this._variantName = value; } } // Check to see if VariantName property is set internal bool IsSetVariantName() { return this._variantName != null; } /// /// Gets and sets the property VariantStatus. /// /// The endpoint variant status which describes the current deployment stage status or /// operational status. /// /// [AWSProperty(Min=0, Max=5)] public List VariantStatus { get { return this._variantStatus; } set { this._variantStatus = value; } } // Check to see if VariantStatus property is set internal bool IsSetVariantStatus() { return this._variantStatus != null && this._variantStatus.Count > 0; } } }