public class StartEventsDetectionJobRequest extends AmazonWebServiceRequest implements java.io.Serializable
Starts an asynchronous event detection job for a collection of documents.
Constructor and Description |
---|
StartEventsDetectionJobRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientRequestToken()
An unique identifier for the request.
|
java.lang.String |
getDataAccessRoleArn()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
|
InputDataConfig |
getInputDataConfig()
Specifies the format and location of the input data for the job.
|
java.lang.String |
getJobName()
The identifier of the events detection job.
|
java.lang.String |
getLanguageCode()
The language code of the input documents.
|
OutputDataConfig |
getOutputDataConfig()
Specifies where to send the output files.
|
java.util.List<java.lang.String> |
getTargetEventTypes()
The types of events to detect in the input documents.
|
int |
hashCode() |
void |
setClientRequestToken(java.lang.String clientRequestToken)
An unique identifier for the request.
|
void |
setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
|
void |
setInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and location of the input data for the job.
|
void |
setJobName(java.lang.String jobName)
The identifier of the events detection job.
|
void |
setLanguageCode(LanguageCode languageCode)
The language code of the input documents.
|
void |
setLanguageCode(java.lang.String languageCode)
The language code of the input documents.
|
void |
setOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies where to send the output files.
|
void |
setTargetEventTypes(java.util.Collection<java.lang.String> targetEventTypes)
The types of events to detect in the input documents.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartEventsDetectionJobRequest |
withClientRequestToken(java.lang.String clientRequestToken)
An unique identifier for the request.
|
StartEventsDetectionJobRequest |
withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
|
StartEventsDetectionJobRequest |
withInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and location of the input data for the job.
|
StartEventsDetectionJobRequest |
withJobName(java.lang.String jobName)
The identifier of the events detection job.
|
StartEventsDetectionJobRequest |
withLanguageCode(LanguageCode languageCode)
The language code of the input documents.
|
StartEventsDetectionJobRequest |
withLanguageCode(java.lang.String languageCode)
The language code of the input documents.
|
StartEventsDetectionJobRequest |
withOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies where to send the output files.
|
StartEventsDetectionJobRequest |
withTargetEventTypes(java.util.Collection<java.lang.String> targetEventTypes)
The types of events to detect in the input documents.
|
StartEventsDetectionJobRequest |
withTargetEventTypes(java.lang.String... targetEventTypes)
The types of events to detect in the input documents.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public InputDataConfig getInputDataConfig()
Specifies the format and location of the input data for the job.
Specifies the format and location of the input data for the job.
public void setInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and location of the input data for the job.
inputDataConfig
- Specifies the format and location of the input data for the job.
public StartEventsDetectionJobRequest withInputDataConfig(InputDataConfig inputDataConfig)
Specifies the format and location of the input data for the job.
Returns a reference to this object so that method calls can be chained together.
inputDataConfig
- Specifies the format and location of the input data for the job.
public OutputDataConfig getOutputDataConfig()
Specifies where to send the output files.
Specifies where to send the output files.
public void setOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies where to send the output files.
outputDataConfig
- Specifies where to send the output files.
public StartEventsDetectionJobRequest withOutputDataConfig(OutputDataConfig outputDataConfig)
Specifies where to send the output files.
Returns a reference to this object so that method calls can be chained together.
outputDataConfig
- Specifies where to send the output files.
public java.lang.String getDataAccessRoleArn()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
public void setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
public StartEventsDetectionJobRequest withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
public java.lang.String getJobName()
The identifier of the events detection job.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
The identifier of the events detection job.
public void setJobName(java.lang.String jobName)
The identifier of the events detection job.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobName
- The identifier of the events detection job.
public StartEventsDetectionJobRequest withJobName(java.lang.String jobName)
The identifier of the events detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobName
- The identifier of the events detection job.
public java.lang.String getLanguageCode()
The language code of the input documents.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
The language code of the input documents.
LanguageCode
public void setLanguageCode(java.lang.String languageCode)
The language code of the input documents.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language code of the input documents.
LanguageCode
public StartEventsDetectionJobRequest withLanguageCode(java.lang.String languageCode)
The language code of the input documents.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language code of the input documents.
LanguageCode
public void setLanguageCode(LanguageCode languageCode)
The language code of the input documents.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language code of the input documents.
LanguageCode
public StartEventsDetectionJobRequest withLanguageCode(LanguageCode languageCode)
The language code of the input documents.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language code of the input documents.
LanguageCode
public java.lang.String getClientRequestToken()
An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
public void setClientRequestToken(java.lang.String clientRequestToken)
An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientRequestToken
- An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
public StartEventsDetectionJobRequest withClientRequestToken(java.lang.String clientRequestToken)
An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientRequestToken
- An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
public java.util.List<java.lang.String> getTargetEventTypes()
The types of events to detect in the input documents.
The types of events to detect in the input documents.
public void setTargetEventTypes(java.util.Collection<java.lang.String> targetEventTypes)
The types of events to detect in the input documents.
targetEventTypes
- The types of events to detect in the input documents.
public StartEventsDetectionJobRequest withTargetEventTypes(java.lang.String... targetEventTypes)
The types of events to detect in the input documents.
Returns a reference to this object so that method calls can be chained together.
targetEventTypes
- The types of events to detect in the input documents.
public StartEventsDetectionJobRequest withTargetEventTypes(java.util.Collection<java.lang.String> targetEventTypes)
The types of events to detect in the input documents.
Returns a reference to this object so that method calls can be chained together.
targetEventTypes
- The types of events to detect in the input documents.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.