/*
* 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 the work to be performed by human workers.
///
public partial class HumanLoopConfig
{
private string _humanTaskUiArn;
private PublicWorkforceTaskPrice _publicWorkforceTaskPrice;
private int? _taskAvailabilityLifetimeInSeconds;
private int? _taskCount;
private string _taskDescription;
private List _taskKeywords = new List();
private int? _taskTimeLimitInSeconds;
private string _taskTitle;
private string _workteamArn;
///
/// Gets and sets the property HumanTaskUiArn.
///
/// The Amazon Resource Name (ARN) of the human task user interface.
///
///
///
/// You can use standard HTML and Crowd HTML Elements to create a custom worker task template.
/// You use this template to create a human task UI.
///
///
///
/// To learn how to create a custom HTML template, see Create
/// Custom Worker Task Template.
///
///
///
/// To learn how to create a human task UI, which is a worker task template that can be
/// used in a flow definition, see Create
/// and Delete a Worker Task Templates.
///
///
[AWSProperty(Required=true, Max=1024)]
public string HumanTaskUiArn
{
get { return this._humanTaskUiArn; }
set { this._humanTaskUiArn = value; }
}
// Check to see if HumanTaskUiArn property is set
internal bool IsSetHumanTaskUiArn()
{
return this._humanTaskUiArn != null;
}
///
/// Gets and sets the property PublicWorkforceTaskPrice.
///
public PublicWorkforceTaskPrice PublicWorkforceTaskPrice
{
get { return this._publicWorkforceTaskPrice; }
set { this._publicWorkforceTaskPrice = value; }
}
// Check to see if PublicWorkforceTaskPrice property is set
internal bool IsSetPublicWorkforceTaskPrice()
{
return this._publicWorkforceTaskPrice != null;
}
///
/// Gets and sets the property TaskAvailabilityLifetimeInSeconds.
///
/// The length of time that a task remains available for review by human workers.
///
///
[AWSProperty(Min=1, Max=864000)]
public int TaskAvailabilityLifetimeInSeconds
{
get { return this._taskAvailabilityLifetimeInSeconds.GetValueOrDefault(); }
set { this._taskAvailabilityLifetimeInSeconds = value; }
}
// Check to see if TaskAvailabilityLifetimeInSeconds property is set
internal bool IsSetTaskAvailabilityLifetimeInSeconds()
{
return this._taskAvailabilityLifetimeInSeconds.HasValue;
}
///
/// Gets and sets the property TaskCount.
///
/// The number of distinct workers who will perform the same task on each object. For
/// example, if TaskCount
is set to 3
for an image classification
/// labeling job, three workers will classify each input image. Increasing TaskCount
/// can improve label accuracy.
///
///
[AWSProperty(Required=true, Min=1, Max=3)]
public int TaskCount
{
get { return this._taskCount.GetValueOrDefault(); }
set { this._taskCount = value; }
}
// Check to see if TaskCount property is set
internal bool IsSetTaskCount()
{
return this._taskCount.HasValue;
}
///
/// Gets and sets the property TaskDescription.
///
/// A description for the human worker task.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string TaskDescription
{
get { return this._taskDescription; }
set { this._taskDescription = value; }
}
// Check to see if TaskDescription property is set
internal bool IsSetTaskDescription()
{
return this._taskDescription != null;
}
///
/// Gets and sets the property TaskKeywords.
///
/// Keywords used to describe the task so that workers can discover the task.
///
///
[AWSProperty(Min=1, Max=5)]
public List TaskKeywords
{
get { return this._taskKeywords; }
set { this._taskKeywords = value; }
}
// Check to see if TaskKeywords property is set
internal bool IsSetTaskKeywords()
{
return this._taskKeywords != null && this._taskKeywords.Count > 0;
}
///
/// Gets and sets the property TaskTimeLimitInSeconds.
///
/// The amount of time that a worker has to complete a task. The default value is 3,600
/// seconds (1 hour).
///
///
[AWSProperty(Min=30, Max=28800)]
public int TaskTimeLimitInSeconds
{
get { return this._taskTimeLimitInSeconds.GetValueOrDefault(); }
set { this._taskTimeLimitInSeconds = value; }
}
// Check to see if TaskTimeLimitInSeconds property is set
internal bool IsSetTaskTimeLimitInSeconds()
{
return this._taskTimeLimitInSeconds.HasValue;
}
///
/// Gets and sets the property TaskTitle.
///
/// A title for the human worker task.
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string TaskTitle
{
get { return this._taskTitle; }
set { this._taskTitle = value; }
}
// Check to see if TaskTitle property is set
internal bool IsSetTaskTitle()
{
return this._taskTitle != null;
}
///
/// Gets and sets the property WorkteamArn.
///
/// Amazon Resource Name (ARN) of a team of workers. To learn more about the types of
/// workforces and work teams you can create and use with Amazon A2I, see Create
/// and Manage Workforces.
///
///
[AWSProperty(Required=true, Max=256)]
public string WorkteamArn
{
get { return this._workteamArn; }
set { this._workteamArn = value; }
}
// Check to see if WorkteamArn property is set
internal bool IsSetWorkteamArn()
{
return this._workteamArn != null;
}
}
}