/*
* 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 UpdateEndpointWeightsAndCapacities operation.
/// Updates variant weight of one or more variants associated with an existing endpoint,
/// or capacity of one variant associated with an existing endpoint. When it receives
/// the request, SageMaker sets the endpoint status to Updating
. After updating
/// the endpoint, it sets the status to InService
. To check the status of
/// an endpoint, use the DescribeEndpoint
/// API.
///
public partial class UpdateEndpointWeightsAndCapacitiesRequest : AmazonSageMakerRequest
{
private List _desiredWeightsAndCapacities = new List();
private string _endpointName;
///
/// Gets and sets the property DesiredWeightsAndCapacities.
///
/// An object that provides new capacity and weight values for a variant.
///
///
[AWSProperty(Required=true, Min=1)]
public List DesiredWeightsAndCapacities
{
get { return this._desiredWeightsAndCapacities; }
set { this._desiredWeightsAndCapacities = value; }
}
// Check to see if DesiredWeightsAndCapacities property is set
internal bool IsSetDesiredWeightsAndCapacities()
{
return this._desiredWeightsAndCapacities != null && this._desiredWeightsAndCapacities.Count > 0;
}
///
/// Gets and sets the property EndpointName.
///
/// The name of an existing SageMaker endpoint.
///
///
[AWSProperty(Required=true, Max=63)]
public string EndpointName
{
get { return this._endpointName; }
set { this._endpointName = value; }
}
// Check to see if EndpointName property is set
internal bool IsSetEndpointName()
{
return this._endpointName != null;
}
}
}