/* * 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 StartTargetedSentimentDetectionJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { private InputDataConfig inputDataConfig; /** *
* Specifies where to send the output files. *
*/ private OutputDataConfig outputDataConfig; /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For * more information, see Role-based permissions. *
*/ private String dataAccessRoleArn; /** ** The identifier of the job. *
*/ private String jobName; /** ** The language of the input documents. Currently, English is the only supported language. *
*/ private String languageCode; /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
*/ private String clientRequestToken; /** ** ID for the KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute * instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: *
*
* KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Amazon Resource Name (ARN) of a KMS Key:
* "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata to a * resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to * indicate its use by the sales department. *
*/ private java.util.List* Specifies where to send the output files. *
* * @param outputDataConfig * Specifies where to send the output files. */ public void setOutputDataConfig(OutputDataConfig outputDataConfig) { this.outputDataConfig = outputDataConfig; } /** ** Specifies where to send the output files. *
* * @return Specifies where to send the output files. */ public OutputDataConfig getOutputDataConfig() { return this.outputDataConfig; } /** ** Specifies where to send the output files. *
* * @param outputDataConfig * Specifies where to send the output files. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTargetedSentimentDetectionJobRequest withOutputDataConfig(OutputDataConfig outputDataConfig) { setOutputDataConfig(outputDataConfig); return this; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For * more information, see Role-based permissions. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input * data. For more information, see Role-based permissions. */ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For * more information, see Role-based permissions. *
* * @return The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input * data. For more information, see Role-based permissions. */ public String getDataAccessRoleArn() { return this.dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For * more information, see Role-based permissions. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input * data. For more information, see Role-based permissions. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTargetedSentimentDetectionJobRequest withDataAccessRoleArn(String dataAccessRoleArn) { setDataAccessRoleArn(dataAccessRoleArn); return this; } /** ** The identifier of the job. *
* * @param jobName * The identifier of the job. */ public void setJobName(String jobName) { this.jobName = jobName; } /** ** The identifier of the job. *
* * @return The identifier of the job. */ public String getJobName() { return this.jobName; } /** ** The identifier of the job. *
* * @param jobName * The identifier of the job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTargetedSentimentDetectionJobRequest withJobName(String jobName) { setJobName(jobName); return this; } /** ** The language of the input documents. Currently, English is the only supported language. *
* * @param languageCode * The language of the input documents. Currently, English is the only supported language. * @see LanguageCode */ public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } /** ** The language of the input documents. Currently, English is the only supported language. *
* * @return The language of the input documents. Currently, English is the only supported language. * @see LanguageCode */ public String getLanguageCode() { return this.languageCode; } /** ** The language of the input documents. Currently, English is the only supported language. *
* * @param languageCode * The language of the input documents. Currently, English is the only supported language. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public StartTargetedSentimentDetectionJobRequest withLanguageCode(String languageCode) { setLanguageCode(languageCode); return this; } /** ** The language of the input documents. Currently, English is the only supported language. *
* * @param languageCode * The language of the input documents. Currently, English is the only supported language. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public StartTargetedSentimentDetectionJobRequest withLanguageCode(LanguageCode languageCode) { this.languageCode = languageCode.toString(); 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 StartTargetedSentimentDetectionJobRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** ID for the KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute * instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: *
*
* KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Amazon Resource Name (ARN) of a KMS Key:
* "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
*
* KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Amazon Resource Name (ARN) of a KMS Key:
* "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
*
* ID for the KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute * instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: *
*
* KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Amazon Resource Name (ARN) of a KMS Key:
* "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
*
* KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Amazon Resource Name (ARN) of a KMS Key:
* "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
*
* ID for the KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute * instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats: *
*
* KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Amazon Resource Name (ARN) of a KMS Key:
* "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
*
* KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Amazon Resource Name (ARN) of a KMS Key:
* "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
*
* Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata to a * resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to * indicate its use by the sales department. *
* * @return Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata * to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a * resource to indicate its use by the sales department. */ public java.util.List* Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata to a * resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to * indicate its use by the sales department. *
* * @param tags * Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata * to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a * resource to indicate its use by the sales department. */ public void setTags(java.util.Collection* Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata to a * resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to * indicate its use by the sales department. *
** 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 * Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata * to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a * resource to indicate its use by the sales department. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTargetedSentimentDetectionJobRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata to a * resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to * indicate its use by the sales department. *
* * @param tags * Tags to associate with the targeted sentiment detection job. A tag is a key-value pair that adds metadata * to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a * resource to indicate its use by the sales department. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTargetedSentimentDetectionJobRequest withTags(java.util.Collection