/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateFlowDefinitionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of your flow definition. *
*/ private String flowDefinitionName; /** ** Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon * Textract is used as an integration source. *
*/ private HumanLoopRequestSource humanLoopRequestSource; /** ** An object containing information about the events that trigger a human workflow. *
*/ private HumanLoopActivationConfig humanLoopActivationConfig; /** ** An object containing information about the tasks the human reviewers will perform. *
*/ private HumanLoopConfig humanLoopConfig; /** ** An object containing information about where the human review results will be uploaded. *
*/ private FlowDefinitionOutputConfig outputConfig; /** *
* The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example,
* arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298
.
*
* An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag * consists of a key and a value, both of which you define. *
*/ private java.util.List* The name of your flow definition. *
* * @param flowDefinitionName * The name of your flow definition. */ public void setFlowDefinitionName(String flowDefinitionName) { this.flowDefinitionName = flowDefinitionName; } /** ** The name of your flow definition. *
* * @return The name of your flow definition. */ public String getFlowDefinitionName() { return this.flowDefinitionName; } /** ** The name of your flow definition. *
* * @param flowDefinitionName * The name of your flow definition. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlowDefinitionRequest withFlowDefinitionName(String flowDefinitionName) { setFlowDefinitionName(flowDefinitionName); return this; } /** ** Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon * Textract is used as an integration source. *
* * @param humanLoopRequestSource * Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or * Amazon Textract is used as an integration source. */ public void setHumanLoopRequestSource(HumanLoopRequestSource humanLoopRequestSource) { this.humanLoopRequestSource = humanLoopRequestSource; } /** ** Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon * Textract is used as an integration source. *
* * @return Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or * Amazon Textract is used as an integration source. */ public HumanLoopRequestSource getHumanLoopRequestSource() { return this.humanLoopRequestSource; } /** ** Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon * Textract is used as an integration source. *
* * @param humanLoopRequestSource * Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or * Amazon Textract is used as an integration source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlowDefinitionRequest withHumanLoopRequestSource(HumanLoopRequestSource humanLoopRequestSource) { setHumanLoopRequestSource(humanLoopRequestSource); return this; } /** ** An object containing information about the events that trigger a human workflow. *
* * @param humanLoopActivationConfig * An object containing information about the events that trigger a human workflow. */ public void setHumanLoopActivationConfig(HumanLoopActivationConfig humanLoopActivationConfig) { this.humanLoopActivationConfig = humanLoopActivationConfig; } /** ** An object containing information about the events that trigger a human workflow. *
* * @return An object containing information about the events that trigger a human workflow. */ public HumanLoopActivationConfig getHumanLoopActivationConfig() { return this.humanLoopActivationConfig; } /** ** An object containing information about the events that trigger a human workflow. *
* * @param humanLoopActivationConfig * An object containing information about the events that trigger a human workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlowDefinitionRequest withHumanLoopActivationConfig(HumanLoopActivationConfig humanLoopActivationConfig) { setHumanLoopActivationConfig(humanLoopActivationConfig); return this; } /** ** An object containing information about the tasks the human reviewers will perform. *
* * @param humanLoopConfig * An object containing information about the tasks the human reviewers will perform. */ public void setHumanLoopConfig(HumanLoopConfig humanLoopConfig) { this.humanLoopConfig = humanLoopConfig; } /** ** An object containing information about the tasks the human reviewers will perform. *
* * @return An object containing information about the tasks the human reviewers will perform. */ public HumanLoopConfig getHumanLoopConfig() { return this.humanLoopConfig; } /** ** An object containing information about the tasks the human reviewers will perform. *
* * @param humanLoopConfig * An object containing information about the tasks the human reviewers will perform. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlowDefinitionRequest withHumanLoopConfig(HumanLoopConfig humanLoopConfig) { setHumanLoopConfig(humanLoopConfig); return this; } /** ** An object containing information about where the human review results will be uploaded. *
* * @param outputConfig * An object containing information about where the human review results will be uploaded. */ public void setOutputConfig(FlowDefinitionOutputConfig outputConfig) { this.outputConfig = outputConfig; } /** ** An object containing information about where the human review results will be uploaded. *
* * @return An object containing information about where the human review results will be uploaded. */ public FlowDefinitionOutputConfig getOutputConfig() { return this.outputConfig; } /** ** An object containing information about where the human review results will be uploaded. *
* * @param outputConfig * An object containing information about where the human review results will be uploaded. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlowDefinitionRequest withOutputConfig(FlowDefinitionOutputConfig outputConfig) { setOutputConfig(outputConfig); return this; } /** *
* The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example,
* arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298
.
*
arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298
.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example,
* arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298
.
*
arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298
.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example,
* arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298
.
*
arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFlowDefinitionRequest withRoleArn(String roleArn) {
setRoleArn(roleArn);
return this;
}
/**
* * An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag * consists of a key and a value, both of which you define. *
* * @return An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. * Each tag consists of a key and a value, both of which you define. */ public java.util.List* An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag * consists of a key and a value, both of which you define. *
* * @param tags * An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. * Each tag consists of a key and a value, both of which you define. */ public void setTags(java.util.Collection* An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag * consists of a key and a value, both of which you define. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. * Each tag consists of a key and a value, both of which you define. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlowDefinitionRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag * consists of a key and a value, both of which you define. *
* * @param tags * An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. * Each tag consists of a key and a value, both of which you define. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlowDefinitionRequest withTags(java.util.Collection