/* * 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.comprehend.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 CreateFlywheelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Name for the flywheel. *
*/ private String flywheelName; /** ** To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. *
*/ private String activeModelArn; /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access * the flywheel data in the data lake. *
*/ private String dataAccessRoleArn; /** ** Configuration about the custom classifier associated with the flywheel. *
*/ private TaskConfig taskConfig; /** ** The model type. *
*/ private String modelType; /** ** Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 * bucket. The flywheel creates the data lake at this location. *
*/ private String dataLakeS3Uri; /** ** Data security configurations. *
*/ private DataSecurityConfig dataSecurityConfig; /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
*/ private String clientRequestToken; /** ** The tags to associate with this flywheel. *
*/ private java.util.List* Name for the flywheel. *
* * @param flywheelName * Name for the flywheel. */ public void setFlywheelName(String flywheelName) { this.flywheelName = flywheelName; } /** ** Name for the flywheel. *
* * @return Name for the flywheel. */ public String getFlywheelName() { return this.flywheelName; } /** ** Name for the flywheel. *
* * @param flywheelName * Name for the flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withFlywheelName(String flywheelName) { setFlywheelName(flywheelName); return this; } /** ** To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. *
* * @param activeModelArn * To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model * version. */ public void setActiveModelArn(String activeModelArn) { this.activeModelArn = activeModelArn; } /** ** To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. *
* * @return To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model * version. */ public String getActiveModelArn() { return this.activeModelArn; } /** ** To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. *
* * @param activeModelArn * To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model * version. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withActiveModelArn(String activeModelArn) { setActiveModelArn(activeModelArn); return this; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access * the flywheel data in the data lake. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to * access the flywheel data in the data lake. */ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access * the flywheel data in the data lake. *
* * @return The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to * access the flywheel data in the data lake. */ public String getDataAccessRoleArn() { return this.dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to access * the flywheel data in the data lake. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend the permissions required to * access the flywheel data in the data lake. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withDataAccessRoleArn(String dataAccessRoleArn) { setDataAccessRoleArn(dataAccessRoleArn); return this; } /** ** Configuration about the custom classifier associated with the flywheel. *
* * @param taskConfig * Configuration about the custom classifier associated with the flywheel. */ public void setTaskConfig(TaskConfig taskConfig) { this.taskConfig = taskConfig; } /** ** Configuration about the custom classifier associated with the flywheel. *
* * @return Configuration about the custom classifier associated with the flywheel. */ public TaskConfig getTaskConfig() { return this.taskConfig; } /** ** Configuration about the custom classifier associated with the flywheel. *
* * @param taskConfig * Configuration about the custom classifier associated with the flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withTaskConfig(TaskConfig taskConfig) { setTaskConfig(taskConfig); return this; } /** ** The model type. *
* * @param modelType * The model type. * @see ModelType */ public void setModelType(String modelType) { this.modelType = modelType; } /** ** The model type. *
* * @return The model type. * @see ModelType */ public String getModelType() { return this.modelType; } /** ** The model type. *
* * @param modelType * The model type. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelType */ public CreateFlywheelRequest withModelType(String modelType) { setModelType(modelType); return this; } /** ** The model type. *
* * @param modelType * The model type. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelType */ public CreateFlywheelRequest withModelType(ModelType modelType) { this.modelType = modelType.toString(); return this; } /** ** Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 * bucket. The flywheel creates the data lake at this location. *
* * @param dataLakeS3Uri * Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 * bucket. The flywheel creates the data lake at this location. */ public void setDataLakeS3Uri(String dataLakeS3Uri) { this.dataLakeS3Uri = dataLakeS3Uri; } /** ** Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 * bucket. The flywheel creates the data lake at this location. *
* * @return Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing * S3 bucket. The flywheel creates the data lake at this location. */ public String getDataLakeS3Uri() { return this.dataLakeS3Uri; } /** ** Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 * bucket. The flywheel creates the data lake at this location. *
* * @param dataLakeS3Uri * Enter the S3 location for the data lake. You can specify a new S3 bucket or a new folder of an existing S3 * bucket. The flywheel creates the data lake at this location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withDataLakeS3Uri(String dataLakeS3Uri) { setDataLakeS3Uri(dataLakeS3Uri); return this; } /** ** Data security configurations. *
* * @param dataSecurityConfig * Data security configurations. */ public void setDataSecurityConfig(DataSecurityConfig dataSecurityConfig) { this.dataSecurityConfig = dataSecurityConfig; } /** ** Data security configurations. *
* * @return Data security configurations. */ public DataSecurityConfig getDataSecurityConfig() { return this.dataSecurityConfig; } /** ** Data security configurations. *
* * @param dataSecurityConfig * Data security configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withDataSecurityConfig(DataSecurityConfig dataSecurityConfig) { setDataSecurityConfig(dataSecurityConfig); return this; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
* * @param clientRequestToken * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend * generates one. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
* * @return A unique identifier for the request. If you don't set the client request token, Amazon Comprehend * generates one. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
* * @param clientRequestToken * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend * generates one. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** The tags to associate with this flywheel. *
* * @return The tags to associate with this flywheel. */ public java.util.List* The tags to associate with this flywheel. *
* * @param tags * The tags to associate with this flywheel. */ public void setTags(java.util.Collection* The tags to associate with this flywheel. *
** 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 * The tags to associate with this flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The tags to associate with this flywheel. *
* * @param tags * The tags to associate with this flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFlywheelRequest withTags(java.util.Collection