/*
* 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
{
///
/// The production variant summary for a deployment when an endpoint is creating or updating
/// with the CreateEndpoint
/// or UpdateEndpoint
/// operations. Describes the VariantStatus
, weight and capacity for a production
/// variant associated with an endpoint.
///
public partial class PendingProductionVariantSummary
{
private ProductionVariantAcceleratorType _acceleratorType;
private int? _currentInstanceCount;
private ProductionVariantServerlessConfig _currentServerlessConfig;
private float? _currentWeight;
private List _deployedImages = new List();
private int? _desiredInstanceCount;
private ProductionVariantServerlessConfig _desiredServerlessConfig;
private float? _desiredWeight;
private ProductionVariantInstanceType _instanceType;
private string _variantName;
private List _variantStatus = new List();
///
/// Gets and sets the property AcceleratorType.
///
/// The size of the Elastic Inference (EI) instance to use for the production variant.
/// EI instances provide on-demand GPU computing for inference. For more information,
/// see Using Elastic
/// Inference in Amazon SageMaker.
///
///
public ProductionVariantAcceleratorType AcceleratorType
{
get { return this._acceleratorType; }
set { this._acceleratorType = value; }
}
// Check to see if AcceleratorType property is set
internal bool IsSetAcceleratorType()
{
return this._acceleratorType != null;
}
///
/// 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 this deployment, as specified in the endpoint
/// configuration for the endpoint. The value is taken from the request to the CreateEndpointConfig
/// operation.
///
///
[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 this deployment, as specified in the endpoint
/// configuration for the endpoint.
///
///
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 for the variant in this deployment, as specified in the endpoint
/// configuration for the endpoint. The value is taken from the request to the CreateEndpointConfig
/// operation.
///
///
[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 InstanceType.
///
/// The type of instances associated with the variant.
///
///
public ProductionVariantInstanceType InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
///
/// 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;
}
}
}