/* * Copyright 2018-2023 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. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the work to be performed by human workers. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HumanLoopConfig implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
*/ private String workteamArn; /** ** 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. *
*/ private String humanTaskUiArn; /** ** A title for the human worker task. *
*/ private String taskTitle; /** ** A description for the human worker task. *
*/ private String taskDescription; /** *
* 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.
*
* The length of time that a task remains available for review by human workers. *
*/ private Integer taskAvailabilityLifetimeInSeconds; /** ** The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour). *
*/ private Integer taskTimeLimitInSeconds; /** ** Keywords used to describe the task so that workers can discover the task. *
*/ private java.util.List* 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. *
* * @param 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. */ public void setWorkteamArn(String workteamArn) { this.workteamArn = 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. *
* * @return 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. */ public String getWorkteamArn() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withWorkteamArn(String workteamArn) { setWorkteamArn(workteamArn); return this; } /** ** 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. *
* * @param 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. */ public void setHumanTaskUiArn(String humanTaskUiArn) { this.humanTaskUiArn = 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. *
* * @return 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. */ public String getHumanTaskUiArn() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withHumanTaskUiArn(String humanTaskUiArn) { setHumanTaskUiArn(humanTaskUiArn); return this; } /** *
* A title for the human worker task. *
* * @param taskTitle * A title for the human worker task. */ public void setTaskTitle(String taskTitle) { this.taskTitle = taskTitle; } /** ** A title for the human worker task. *
* * @return A title for the human worker task. */ public String getTaskTitle() { return this.taskTitle; } /** ** A title for the human worker task. *
* * @param taskTitle * A title for the human worker task. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withTaskTitle(String taskTitle) { setTaskTitle(taskTitle); return this; } /** ** A description for the human worker task. *
* * @param taskDescription * A description for the human worker task. */ public void setTaskDescription(String taskDescription) { this.taskDescription = taskDescription; } /** ** A description for the human worker task. *
* * @return A description for the human worker task. */ public String getTaskDescription() { return this.taskDescription; } /** ** A description for the human worker task. *
* * @param taskDescription * A description for the human worker task. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withTaskDescription(String taskDescription) { setTaskDescription(taskDescription); return this; } /** *
* 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.
*
TaskCount
is set to 3
for an image classification labeling job, three workers
* will classify each input image. Increasing TaskCount
can improve label accuracy.
*/
public void setTaskCount(Integer taskCount) {
this.taskCount = 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.
*
TaskCount
is set to 3
for an image classification labeling job, three workers
* will classify each input image. Increasing TaskCount
can improve label accuracy.
*/
public Integer getTaskCount() {
return this.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.
*
TaskCount
is set to 3
for an image classification labeling job, three workers
* will classify each input image. Increasing TaskCount
can improve label accuracy.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HumanLoopConfig withTaskCount(Integer taskCount) {
setTaskCount(taskCount);
return this;
}
/**
* * The length of time that a task remains available for review by human workers. *
* * @param taskAvailabilityLifetimeInSeconds * The length of time that a task remains available for review by human workers. */ public void setTaskAvailabilityLifetimeInSeconds(Integer taskAvailabilityLifetimeInSeconds) { this.taskAvailabilityLifetimeInSeconds = taskAvailabilityLifetimeInSeconds; } /** ** The length of time that a task remains available for review by human workers. *
* * @return The length of time that a task remains available for review by human workers. */ public Integer getTaskAvailabilityLifetimeInSeconds() { return this.taskAvailabilityLifetimeInSeconds; } /** ** The length of time that a task remains available for review by human workers. *
* * @param taskAvailabilityLifetimeInSeconds * The length of time that a task remains available for review by human workers. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withTaskAvailabilityLifetimeInSeconds(Integer taskAvailabilityLifetimeInSeconds) { setTaskAvailabilityLifetimeInSeconds(taskAvailabilityLifetimeInSeconds); return this; } /** ** The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour). *
* * @param taskTimeLimitInSeconds * The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour). */ public void setTaskTimeLimitInSeconds(Integer taskTimeLimitInSeconds) { this.taskTimeLimitInSeconds = taskTimeLimitInSeconds; } /** ** The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour). *
* * @return The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour). */ public Integer getTaskTimeLimitInSeconds() { return this.taskTimeLimitInSeconds; } /** ** The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour). *
* * @param taskTimeLimitInSeconds * The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour). * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withTaskTimeLimitInSeconds(Integer taskTimeLimitInSeconds) { setTaskTimeLimitInSeconds(taskTimeLimitInSeconds); return this; } /** ** Keywords used to describe the task so that workers can discover the task. *
* * @return Keywords used to describe the task so that workers can discover the task. */ public java.util.List* Keywords used to describe the task so that workers can discover the task. *
* * @param taskKeywords * Keywords used to describe the task so that workers can discover the task. */ public void setTaskKeywords(java.util.Collection* Keywords used to describe the task so that workers can discover the task. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTaskKeywords(java.util.Collection)} or {@link #withTaskKeywords(java.util.Collection)} if you want to * override the existing values. *
* * @param taskKeywords * Keywords used to describe the task so that workers can discover the task. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withTaskKeywords(String... taskKeywords) { if (this.taskKeywords == null) { setTaskKeywords(new java.util.ArrayList* Keywords used to describe the task so that workers can discover the task. *
* * @param taskKeywords * Keywords used to describe the task so that workers can discover the task. * @return Returns a reference to this object so that method calls can be chained together. */ public HumanLoopConfig withTaskKeywords(java.util.Collection