/*
* 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 CreateEndpoint operation.
/// Creates a model-specific endpoint for synchronous inference for a previously trained
/// custom model For information about endpoints, see Managing
/// endpoints.
///
public partial class CreateEndpointRequest : AmazonComprehendRequest
{
private string _clientRequestToken;
private string _dataAccessRoleArn;
private int? _desiredInferenceUnits;
private string _endpointName;
private string _flywheelArn;
private string _modelArn;
private List _tags = new List();
///
/// Gets and sets the property ClientRequestToken.
///
/// An idempotency token provided by the customer. If this token matches a previous endpoint
/// creation request, Amazon Comprehend will not return a ResourceInUseException
.
///
///
///
[AWSProperty(Min=1, Max=64)]
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
///
/// Gets and sets the property DataAccessRoleArn.
///
/// The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read
/// access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
///
///
[AWSProperty(Min=20, Max=2048)]
public string DataAccessRoleArn
{
get { return this._dataAccessRoleArn; }
set { this._dataAccessRoleArn = value; }
}
// Check to see if DataAccessRoleArn property is set
internal bool IsSetDataAccessRoleArn()
{
return this._dataAccessRoleArn != 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(Required=true, 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 EndpointName.
///
/// This is the descriptive suffix that becomes part of the EndpointArn
used
/// for all subsequent requests to this resource.
///
///
[AWSProperty(Required=true, Max=40)]
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;
}
///
/// Gets and sets the property FlywheelArn.
///
/// The Amazon Resource Number (ARN) of the flywheel to which the endpoint will be attached.
///
///
[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;
}
///
/// Gets and sets the property ModelArn.
///
/// The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
///
///
[AWSProperty(Max=256)]
public string ModelArn
{
get { return this._modelArn; }
set { this._modelArn = value; }
}
// Check to see if ModelArn property is set
internal bool IsSetModelArn()
{
return this._modelArn != null;
}
///
/// Gets and sets the property Tags.
///
/// Tags to associate with the endpoint. A tag is a key-value pair that adds metadata
/// to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint
/// to indicate its use by the sales department.
///
///
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;
}
}
}