All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.sagemaker.outputs.FlowDefinitionHumanLoopConfig Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.sagemaker.outputs;

import com.pulumi.aws.sagemaker.outputs.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FlowDefinitionHumanLoopConfig {
    /**
     * @return The Amazon Resource Name (ARN) of the human task user interface.
     * 
     */
    private String humanTaskUiArn;
    /**
     * @return Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.
     * 
     */
    private @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice;
    /**
     * @return The length of time that a task remains available for review by human workers. Valid value range between `1` and `864000`.
     * 
     */
    private @Nullable Integer taskAvailabilityLifetimeInSeconds;
    /**
     * @return The number of distinct workers who will perform the same task on each object. Valid value range between `1` and `3`.
     * 
     */
    private Integer taskCount;
    /**
     * @return A description for the human worker task.
     * 
     */
    private String taskDescription;
    /**
     * @return An array of keywords used to describe the task so that workers can discover the task.
     * 
     */
    private @Nullable List taskKeywords;
    /**
     * @return The amount of time that a worker has to complete a task. The default value is `3600` seconds.
     * 
     */
    private @Nullable Integer taskTimeLimitInSeconds;
    /**
     * @return A title for the human worker task.
     * 
     */
    private String taskTitle;
    /**
     * @return The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see [AWS Docs](https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management-public.html).
     * 
     */
    private String workteamArn;

    private FlowDefinitionHumanLoopConfig() {}
    /**
     * @return The Amazon Resource Name (ARN) of the human task user interface.
     * 
     */
    public String humanTaskUiArn() {
        return this.humanTaskUiArn;
    }
    /**
     * @return Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.
     * 
     */
    public Optional publicWorkforceTaskPrice() {
        return Optional.ofNullable(this.publicWorkforceTaskPrice);
    }
    /**
     * @return The length of time that a task remains available for review by human workers. Valid value range between `1` and `864000`.
     * 
     */
    public Optional taskAvailabilityLifetimeInSeconds() {
        return Optional.ofNullable(this.taskAvailabilityLifetimeInSeconds);
    }
    /**
     * @return The number of distinct workers who will perform the same task on each object. Valid value range between `1` and `3`.
     * 
     */
    public Integer taskCount() {
        return this.taskCount;
    }
    /**
     * @return A description for the human worker task.
     * 
     */
    public String taskDescription() {
        return this.taskDescription;
    }
    /**
     * @return An array of keywords used to describe the task so that workers can discover the task.
     * 
     */
    public List taskKeywords() {
        return this.taskKeywords == null ? List.of() : this.taskKeywords;
    }
    /**
     * @return The amount of time that a worker has to complete a task. The default value is `3600` seconds.
     * 
     */
    public Optional taskTimeLimitInSeconds() {
        return Optional.ofNullable(this.taskTimeLimitInSeconds);
    }
    /**
     * @return A title for the human worker task.
     * 
     */
    public String taskTitle() {
        return this.taskTitle;
    }
    /**
     * @return The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see [AWS Docs](https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management-public.html).
     * 
     */
    public String workteamArn() {
        return this.workteamArn;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(FlowDefinitionHumanLoopConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String humanTaskUiArn;
        private @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice;
        private @Nullable Integer taskAvailabilityLifetimeInSeconds;
        private Integer taskCount;
        private String taskDescription;
        private @Nullable List taskKeywords;
        private @Nullable Integer taskTimeLimitInSeconds;
        private String taskTitle;
        private String workteamArn;
        public Builder() {}
        public Builder(FlowDefinitionHumanLoopConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.humanTaskUiArn = defaults.humanTaskUiArn;
    	      this.publicWorkforceTaskPrice = defaults.publicWorkforceTaskPrice;
    	      this.taskAvailabilityLifetimeInSeconds = defaults.taskAvailabilityLifetimeInSeconds;
    	      this.taskCount = defaults.taskCount;
    	      this.taskDescription = defaults.taskDescription;
    	      this.taskKeywords = defaults.taskKeywords;
    	      this.taskTimeLimitInSeconds = defaults.taskTimeLimitInSeconds;
    	      this.taskTitle = defaults.taskTitle;
    	      this.workteamArn = defaults.workteamArn;
        }

        @CustomType.Setter
        public Builder humanTaskUiArn(String humanTaskUiArn) {
            if (humanTaskUiArn == null) {
              throw new MissingRequiredPropertyException("FlowDefinitionHumanLoopConfig", "humanTaskUiArn");
            }
            this.humanTaskUiArn = humanTaskUiArn;
            return this;
        }
        @CustomType.Setter
        public Builder publicWorkforceTaskPrice(@Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice) {

            this.publicWorkforceTaskPrice = publicWorkforceTaskPrice;
            return this;
        }
        @CustomType.Setter
        public Builder taskAvailabilityLifetimeInSeconds(@Nullable Integer taskAvailabilityLifetimeInSeconds) {

            this.taskAvailabilityLifetimeInSeconds = taskAvailabilityLifetimeInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder taskCount(Integer taskCount) {
            if (taskCount == null) {
              throw new MissingRequiredPropertyException("FlowDefinitionHumanLoopConfig", "taskCount");
            }
            this.taskCount = taskCount;
            return this;
        }
        @CustomType.Setter
        public Builder taskDescription(String taskDescription) {
            if (taskDescription == null) {
              throw new MissingRequiredPropertyException("FlowDefinitionHumanLoopConfig", "taskDescription");
            }
            this.taskDescription = taskDescription;
            return this;
        }
        @CustomType.Setter
        public Builder taskKeywords(@Nullable List taskKeywords) {

            this.taskKeywords = taskKeywords;
            return this;
        }
        public Builder taskKeywords(String... taskKeywords) {
            return taskKeywords(List.of(taskKeywords));
        }
        @CustomType.Setter
        public Builder taskTimeLimitInSeconds(@Nullable Integer taskTimeLimitInSeconds) {

            this.taskTimeLimitInSeconds = taskTimeLimitInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder taskTitle(String taskTitle) {
            if (taskTitle == null) {
              throw new MissingRequiredPropertyException("FlowDefinitionHumanLoopConfig", "taskTitle");
            }
            this.taskTitle = taskTitle;
            return this;
        }
        @CustomType.Setter
        public Builder workteamArn(String workteamArn) {
            if (workteamArn == null) {
              throw new MissingRequiredPropertyException("FlowDefinitionHumanLoopConfig", "workteamArn");
            }
            this.workteamArn = workteamArn;
            return this;
        }
        public FlowDefinitionHumanLoopConfig build() {
            final var _resultValue = new FlowDefinitionHumanLoopConfig();
            _resultValue.humanTaskUiArn = humanTaskUiArn;
            _resultValue.publicWorkforceTaskPrice = publicWorkforceTaskPrice;
            _resultValue.taskAvailabilityLifetimeInSeconds = taskAvailabilityLifetimeInSeconds;
            _resultValue.taskCount = taskCount;
            _resultValue.taskDescription = taskDescription;
            _resultValue.taskKeywords = taskKeywords;
            _resultValue.taskTimeLimitInSeconds = taskTimeLimitInSeconds;
            _resultValue.taskTitle = taskTitle;
            _resultValue.workteamArn = workteamArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy