/*
* 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 comprehend-2017-11-27.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.Comprehend.Model
{
///
/// Container for the parameters to the UpdateEndpoint operation.
/// Updates information about the specified endpoint. For information about endpoints,
/// see Managing
/// endpoints.
///
public partial class UpdateEndpointRequest : AmazonComprehendRequest
{
private string _desiredDataAccessRoleArn;
private int? _desiredInferenceUnits;
private string _desiredModelArn;
private string _endpointArn;
private string _flywheelArn;
///
/// Gets and sets the property DesiredDataAccessRoleArn.
///
/// Data access role ARN to use in case the new model is encrypted with a customer CMK.
///
///
[AWSProperty(Min=20, Max=2048)]
public string DesiredDataAccessRoleArn
{
get { return this._desiredDataAccessRoleArn; }
set { this._desiredDataAccessRoleArn = value; }
}
// Check to see if DesiredDataAccessRoleArn property is set
internal bool IsSetDesiredDataAccessRoleArn()
{
return this._desiredDataAccessRoleArn != null;
}
///
/// Gets and sets the property DesiredInferenceUnits.
///
/// The desired number of inference units to be used by the model using this endpoint.
/// Each inference unit represents of a throughput of 100 characters per second.
///
///
[AWSProperty(Min=1)]
public int DesiredInferenceUnits
{
get { return this._desiredInferenceUnits.GetValueOrDefault(); }
set { this._desiredInferenceUnits = value; }
}
// Check to see if DesiredInferenceUnits property is set
internal bool IsSetDesiredInferenceUnits()
{
return this._desiredInferenceUnits.HasValue;
}
///
/// Gets and sets the property DesiredModelArn.
///
/// The ARN of the new model to use when updating an existing endpoint.
///
///
[AWSProperty(Max=256)]
public string DesiredModelArn
{
get { return this._desiredModelArn; }
set { this._desiredModelArn = value; }
}
// Check to see if DesiredModelArn property is set
internal bool IsSetDesiredModelArn()
{
return this._desiredModelArn != null;
}
///
/// Gets and sets the property EndpointArn.
///
/// The Amazon Resource Number (ARN) of the endpoint being updated.
///
///
[AWSProperty(Required=true, Max=256)]
public string EndpointArn
{
get { return this._endpointArn; }
set { this._endpointArn = value; }
}
// Check to see if EndpointArn property is set
internal bool IsSetEndpointArn()
{
return this._endpointArn != null;
}
///
/// Gets and sets the property FlywheelArn.
///
/// The Amazon Resource Number (ARN) of the flywheel
///
///
[AWSProperty(Max=256)]
public string FlywheelArn
{
get { return this._flywheelArn; }
set { this._flywheelArn = value; }
}
// Check to see if FlywheelArn property is set
internal bool IsSetFlywheelArn()
{
return this._flywheelArn != null;
}
}
}