Class BatchRequest.BatchRequestBuilder
java.lang.Object
com.basistech.rosette.apimodel.batch.BatchRequest.BatchRequestBuilder
- Enclosing class:
- BatchRequest
-
Method Summary
Modifier and TypeMethodDescriptionbatchOutputUrl
(String batchOutputUrl) Specifies where the results should be stored.build()
completionCallbackUrl
(String completionCallbackUrl) A URL for RosetteAPI to call to inform you the completion of the batch.items
(List<BatchRequestItem> items) toString()
-
Method Details
-
batchId
- Returns:
this
.
-
completionCallbackUrl
A URL for RosetteAPI to call to inform you the completion of the batch. It must be accessible on the Internet and can only be http: or https:. RosetteAPI will use the GET method so optional parameters need to be included as query parameters in the URL.- Returns:
this
.
-
items
- Returns:
this
.
-
batchOutputUrl
Specifies where the results should be stored. Only a valid AWS S3 URL is supported at this time. The S3 bucket needs to have a proper policy statement to grant read/write permission to RosetteAPI within the batch processing time window. RosetteAPI's AWS account number is 625892746452. Example policy statement:{ "Version": "2012-10-17", "Id": "Policy1462373421611", "Statement": [ { "Sid": "Stmt1462373415064", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::625892746452:root" }, "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::your-bucket-name", "Condition": { "StringLike": { "s3:prefix": [ "output-folder-name/*" ] } } }, { "Sid": "Stmt1462373415064", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::625892746452:root" }, "Action": [ "s3:GetObject", "s3:PutObject", "s3:DeleteObject" ], "Resource": "arn:aws:s3:::your-bucket-name/output-folder-name/*" } ] }
- Returns:
this
.
-
build
-
toString
-