From 56a60a6f605b10e7114d56f13edb788b76a8b71a Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 4 May 2023 04:26:09 -0700 Subject: [PATCH] feat(aws-android-sdk-comprehend): update models to latest (#3248) Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com> --- .../services/comprehend/AmazonComprehend.java | 422 ++++++- .../comprehend/AmazonComprehendAsync.java | 898 ++++++++++++- .../AmazonComprehendAsyncClient.java | 1125 ++++++++++++++++- .../comprehend/AmazonComprehendClient.java | 711 ++++++++++- .../AugmentedManifestsDocumentTypeFormat.java | 2 +- .../model/AugmentedManifestsListItem.java | 2 +- ...BatchDetectDominantLanguageItemResult.java | 2 +- .../BatchDetectDominantLanguageRequest.java | 2 +- .../BatchDetectDominantLanguageResult.java | 2 +- .../model/BatchDetectEntitiesItemResult.java | 2 +- .../model/BatchDetectEntitiesRequest.java | 2 +- .../model/BatchDetectEntitiesResult.java | 2 +- .../BatchDetectKeyPhrasesItemResult.java | 2 +- .../model/BatchDetectKeyPhrasesRequest.java | 2 +- .../model/BatchDetectKeyPhrasesResult.java | 2 +- .../model/BatchDetectSentimentItemResult.java | 2 +- .../model/BatchDetectSentimentRequest.java | 65 +- .../model/BatchDetectSentimentResult.java | 2 +- .../model/BatchDetectSyntaxItemResult.java | 2 +- .../model/BatchDetectSyntaxRequest.java | 2 +- .../model/BatchDetectSyntaxResult.java | 2 +- ...atchDetectTargetedSentimentItemResult.java | 2 +- .../BatchDetectTargetedSentimentRequest.java | 2 +- .../BatchDetectTargetedSentimentResult.java | 2 +- .../comprehend/model/BatchItemError.java | 2 +- .../BatchSizeLimitExceededException.java | 2 +- .../services/comprehend/model/Block.java | 707 +++++++++++ .../comprehend/model/BlockReference.java | 344 +++++ .../services/comprehend/model/BlockType.java | 62 + .../comprehend/model/BoundingBox.java | 334 +++++ .../services/comprehend/model/ChildBlock.java | 258 ++++ .../model/ClassifierEvaluationMetrics.java | 2 +- .../comprehend/model/ClassifierMetadata.java | 2 +- .../model/ClassifyDocumentRequest.java | 320 ++++- .../model/ClassifyDocumentResult.java | 436 ++++++- .../ConcurrentModificationException.java | 2 +- .../model/ContainsPiiEntitiesRequest.java | 2 +- .../model/ContainsPiiEntitiesResult.java | 2 +- .../model/CreateDatasetRequest.java | 689 ++++++++++ .../comprehend/model/CreateDatasetResult.java | 145 +++ .../CreateDocumentClassifierRequest.java | 374 +++--- .../model/CreateDocumentClassifierResult.java | 2 +- .../model/CreateEndpointRequest.java | 203 ++- .../model/CreateEndpointResult.java | 102 +- .../model/CreateEntityRecognizerRequest.java | 382 +++--- .../model/CreateEntityRecognizerResult.java | 2 +- .../model/CreateFlywheelRequest.java | 856 +++++++++++++ .../model/CreateFlywheelResult.java | 235 ++++ .../comprehend/model/DataSecurityConfig.java | 494 ++++++++ .../DatasetAugmentedManifestsListItem.java | 691 ++++++++++ .../comprehend/model/DatasetDataFormat.java | 62 + ...asetDocumentClassifierInputDataConfig.java | 361 ++++++ .../DatasetEntityRecognizerAnnotations.java | 151 +++ .../DatasetEntityRecognizerDocuments.java | 332 +++++ .../DatasetEntityRecognizerEntityList.java | 145 +++ ...atasetEntityRecognizerInputDataConfig.java | 265 ++++ .../comprehend/model/DatasetFilter.java | 424 +++++++ .../model/DatasetInputDataConfig.java | 520 ++++++++ .../comprehend/model/DatasetProperties.java | 876 +++++++++++++ .../comprehend/model/DatasetStatus.java | 64 + .../comprehend/model/DatasetType.java | 62 + .../DeleteDocumentClassifierRequest.java | 2 +- .../model/DeleteDocumentClassifierResult.java | 2 +- .../model/DeleteEndpointRequest.java | 2 +- .../model/DeleteEndpointResult.java | 2 +- .../model/DeleteEntityRecognizerRequest.java | 2 +- .../model/DeleteEntityRecognizerResult.java | 2 +- .../model/DeleteFlywheelRequest.java | 155 +++ .../model/DeleteFlywheelResult.java | 57 + .../model/DeleteResourcePolicyRequest.java | 2 +- .../model/DeleteResourcePolicyResult.java | 2 +- .../model/DescribeDatasetRequest.java | 155 +++ .../model/DescribeDatasetResult.java | 118 ++ ...cribeDocumentClassificationJobRequest.java | 23 +- ...scribeDocumentClassificationJobResult.java | 2 +- .../DescribeDocumentClassifierRequest.java | 26 +- .../DescribeDocumentClassifierResult.java | 2 +- ...beDominantLanguageDetectionJobRequest.java | 23 +- ...ibeDominantLanguageDetectionJobResult.java | 2 +- .../model/DescribeEndpointRequest.java | 2 +- .../model/DescribeEndpointResult.java | 2 +- .../DescribeEntitiesDetectionJobRequest.java | 23 +- .../DescribeEntitiesDetectionJobResult.java | 2 +- .../DescribeEntityRecognizerRequest.java | 2 +- .../model/DescribeEntityRecognizerResult.java | 2 +- .../DescribeEventsDetectionJobRequest.java | 2 +- .../DescribeEventsDetectionJobResult.java | 2 +- .../DescribeFlywheelIterationRequest.java | 202 +++ .../DescribeFlywheelIterationResult.java | 124 ++ .../model/DescribeFlywheelRequest.java | 152 +++ .../model/DescribeFlywheelResult.java | 118 ++ ...DescribeKeyPhrasesDetectionJobRequest.java | 23 +- .../DescribeKeyPhrasesDetectionJobResult.java | 2 +- ...escribePiiEntitiesDetectionJobRequest.java | 2 +- ...DescribePiiEntitiesDetectionJobResult.java | 2 +- .../model/DescribeResourcePolicyRequest.java | 23 +- .../model/DescribeResourcePolicyResult.java | 2 +- .../DescribeSentimentDetectionJobRequest.java | 2 +- .../DescribeSentimentDetectionJobResult.java | 2 +- ...eTargetedSentimentDetectionJobRequest.java | 23 +- ...beTargetedSentimentDetectionJobResult.java | 2 +- .../DescribeTopicsDetectionJobRequest.java | 2 +- .../DescribeTopicsDetectionJobResult.java | 2 +- .../model/DetectDominantLanguageRequest.java | 2 +- .../model/DetectDominantLanguageResult.java | 115 +- .../model/DetectEntitiesRequest.java | 514 ++++++-- .../model/DetectEntitiesResult.java | 467 ++++++- .../model/DetectKeyPhrasesRequest.java | 2 +- .../model/DetectKeyPhrasesResult.java | 2 +- .../model/DetectPiiEntitiesRequest.java | 2 +- .../model/DetectPiiEntitiesResult.java | 2 +- .../model/DetectSentimentRequest.java | 51 +- .../model/DetectSentimentResult.java | 2 +- .../comprehend/model/DetectSyntaxRequest.java | 2 +- .../comprehend/model/DetectSyntaxResult.java | 2 +- .../model/DetectTargetedSentimentRequest.java | 2 +- .../model/DetectTargetedSentimentResult.java | 2 +- .../comprehend/model/DocumentClass.java | 73 +- .../model/DocumentClassificationConfig.java | 275 ++++ .../DocumentClassificationJobFilter.java | 2 +- .../DocumentClassificationJobProperties.java | 224 +++- .../model/DocumentClassifierDataFormat.java | 2 +- .../DocumentClassifierDocumentTypeFormat.java | 62 + .../model/DocumentClassifierDocuments.java | 231 ++++ .../model/DocumentClassifierFilter.java | 16 +- .../DocumentClassifierInputDataConfig.java | 560 +++++++- .../model/DocumentClassifierMode.java | 2 +- .../DocumentClassifierOutputDataConfig.java | 184 ++- .../model/DocumentClassifierProperties.java | 360 ++++-- .../model/DocumentClassifierSummary.java | 14 +- .../comprehend/model/DocumentLabel.java | 73 +- .../comprehend/model/DocumentMetadata.java | 225 ++++ .../comprehend/model/DocumentReadAction.java | 2 +- .../model/DocumentReadFeatureTypes.java | 15 +- .../comprehend/model/DocumentReadMode.java | 2 +- .../model/DocumentReaderConfig.java | 484 +++++-- .../comprehend/model/DocumentType.java | 72 ++ .../model/DocumentTypeListItem.java | 247 ++++ .../comprehend/model/DominantLanguage.java | 2 +- .../DominantLanguageDetectionJobFilter.java | 2 +- ...ominantLanguageDetectionJobProperties.java | 134 +- .../comprehend/model/EndpointFilter.java | 2 +- .../comprehend/model/EndpointProperties.java | 134 +- .../comprehend/model/EndpointStatus.java | 2 +- .../model/EntitiesDetectionJobFilter.java | 2 +- .../model/EntitiesDetectionJobProperties.java | 222 +++- .../services/comprehend/model/Entity.java | 232 +++- .../comprehend/model/EntityLabel.java | 2 +- .../model/EntityRecognitionConfig.java | 153 +++ .../model/EntityRecognizerAnnotations.java | 30 +- .../model/EntityRecognizerDataFormat.java | 2 +- .../model/EntityRecognizerDocuments.java | 42 +- .../model/EntityRecognizerEntityList.java | 18 +- .../EntityRecognizerEvaluationMetrics.java | 2 +- .../model/EntityRecognizerFilter.java | 16 +- .../EntityRecognizerInputDataConfig.java | 2 +- .../model/EntityRecognizerMetadata.java | 2 +- ...RecognizerMetadataEntityTypesListItem.java | 2 +- .../EntityRecognizerOutputDataConfig.java | 147 +++ .../model/EntityRecognizerProperties.java | 321 +++-- .../model/EntityRecognizerSummary.java | 14 +- .../services/comprehend/model/EntityType.java | 2 +- .../model/EntityTypesEvaluationMetrics.java | 2 +- .../comprehend/model/EntityTypesListItem.java | 2 +- .../comprehend/model/ErrorsListItem.java | 361 ++++++ .../model/EventsDetectionJobFilter.java | 2 +- .../model/EventsDetectionJobProperties.java | 77 +- .../model/ExtractedCharactersListItem.java | 180 +++ .../comprehend/model/FlywheelFilter.java | 312 +++++ .../model/FlywheelIterationFilter.java | 198 +++ .../model/FlywheelIterationProperties.java | 880 +++++++++++++ .../model/FlywheelIterationStatus.java | 70 + .../model/FlywheelModelEvaluationMetrics.java | 306 +++++ .../comprehend/model/FlywheelProperties.java | 1014 +++++++++++++++ .../comprehend/model/FlywheelStatus.java | 68 + .../comprehend/model/FlywheelSummary.java | 806 ++++++++++++ .../services/comprehend/model/Geometry.java | 232 ++++ .../comprehend/model/ImportModelRequest.java | 161 ++- .../comprehend/model/ImportModelResult.java | 2 +- .../comprehend/model/InputDataConfig.java | 86 +- .../comprehend/model/InputFormat.java | 2 +- .../model/InternalServerException.java | 2 +- .../model/InvalidFilterException.java | 2 +- .../model/InvalidRequestDetail.java | 208 +++ .../model/InvalidRequestDetailReason.java | 66 + .../model/InvalidRequestException.java | 198 ++- .../model/InvalidRequestReason.java | 60 + .../model/JobNotFoundException.java | 2 +- .../services/comprehend/model/JobStatus.java | 2 +- .../services/comprehend/model/KeyPhrase.java | 2 +- .../model/KeyPhrasesDetectionJobFilter.java | 2 +- .../KeyPhrasesDetectionJobProperties.java | 128 +- .../model/KmsKeyValidationException.java | 2 +- .../comprehend/model/LanguageCode.java | 2 +- .../comprehend/model/ListDatasetsRequest.java | 358 ++++++ .../comprehend/model/ListDatasetsResult.java | 224 ++++ ...ListDocumentClassificationJobsRequest.java | 2 +- .../ListDocumentClassificationJobsResult.java | 2 +- ...istDocumentClassifierSummariesRequest.java | 2 +- ...ListDocumentClassifierSummariesResult.java | 2 +- .../model/ListDocumentClassifiersRequest.java | 2 +- .../model/ListDocumentClassifiersResult.java | 2 +- ...tDominantLanguageDetectionJobsRequest.java | 2 +- ...stDominantLanguageDetectionJobsResult.java | 2 +- .../model/ListEndpointsRequest.java | 2 +- .../comprehend/model/ListEndpointsResult.java | 2 +- .../ListEntitiesDetectionJobsRequest.java | 2 +- .../ListEntitiesDetectionJobsResult.java | 2 +- .../ListEntityRecognizerSummariesRequest.java | 2 +- .../ListEntityRecognizerSummariesResult.java | 16 +- .../model/ListEntityRecognizersRequest.java | 2 +- .../model/ListEntityRecognizersResult.java | 2 +- .../model/ListEventsDetectionJobsRequest.java | 2 +- .../model/ListEventsDetectionJobsResult.java | 2 +- .../ListFlywheelIterationHistoryRequest.java | 356 ++++++ .../ListFlywheelIterationHistoryResult.java | 229 ++++ .../model/ListFlywheelsRequest.java | 284 +++++ .../comprehend/model/ListFlywheelsResult.java | 230 ++++ .../ListKeyPhrasesDetectionJobsRequest.java | 2 +- .../ListKeyPhrasesDetectionJobsResult.java | 2 +- .../ListPiiEntitiesDetectionJobsRequest.java | 2 +- .../ListPiiEntitiesDetectionJobsResult.java | 2 +- .../ListSentimentDetectionJobsRequest.java | 2 +- .../ListSentimentDetectionJobsResult.java | 2 +- .../model/ListTagsForResourceRequest.java | 14 +- .../model/ListTagsForResourceResult.java | 14 +- ...TargetedSentimentDetectionJobsRequest.java | 2 +- ...tTargetedSentimentDetectionJobsResult.java | 2 +- .../model/ListTopicsDetectionJobsRequest.java | 2 +- .../model/ListTopicsDetectionJobsResult.java | 2 +- .../comprehend/model/MentionSentiment.java | 2 +- .../comprehend/model/ModelStatus.java | 6 +- .../services/comprehend/model/ModelType.java | 62 + .../comprehend/model/OutputDataConfig.java | 60 +- .../comprehend/model/PageBasedErrorCode.java | 69 + .../model/PageBasedWarningCode.java | 66 + .../comprehend/model/PartOfSpeechTag.java | 2 +- .../comprehend/model/PartOfSpeechTagType.java | 2 +- .../model/PiiEntitiesDetectionJobFilter.java | 2 +- .../PiiEntitiesDetectionJobProperties.java | 76 +- .../model/PiiEntitiesDetectionMaskMode.java | 2 +- .../model/PiiEntitiesDetectionMode.java | 2 +- .../services/comprehend/model/PiiEntity.java | 2 +- .../comprehend/model/PiiEntityType.java | 2 +- .../comprehend/model/PiiOutputDataConfig.java | 40 +- .../services/comprehend/model/Point.java | 185 +++ .../model/PutResourcePolicyRequest.java | 6 +- .../model/PutResourcePolicyResult.java | 2 +- .../comprehend/model/RedactionConfig.java | 2 +- .../comprehend/model/RelationshipType.java | 60 + .../model/RelationshipsListItem.java | 264 ++++ .../model/ResourceInUseException.java | 2 +- .../model/ResourceLimitExceededException.java | 2 +- .../model/ResourceNotFoundException.java | 2 +- .../model/ResourceUnavailableException.java | 2 +- .../model/SentimentDetectionJobFilter.java | 2 +- .../SentimentDetectionJobProperties.java | 132 +- .../comprehend/model/SentimentScore.java | 2 +- .../comprehend/model/SentimentType.java | 2 +- .../services/comprehend/model/Split.java | 2 +- ...StartDocumentClassificationJobRequest.java | 239 ++-- .../StartDocumentClassificationJobResult.java | 190 ++- ...rtDominantLanguageDetectionJobRequest.java | 191 ++- ...artDominantLanguageDetectionJobResult.java | 48 +- .../StartEntitiesDetectionJobRequest.java | 297 +++-- .../StartEntitiesDetectionJobResult.java | 137 +- .../model/StartEventsDetectionJobRequest.java | 69 +- .../model/StartEventsDetectionJobResult.java | 46 +- .../model/StartFlywheelIterationRequest.java | 236 ++++ .../model/StartFlywheelIterationResult.java | 191 +++ .../StartKeyPhrasesDetectionJobRequest.java | 186 ++- .../StartKeyPhrasesDetectionJobResult.java | 48 +- .../StartPiiEntitiesDetectionJobRequest.java | 82 +- .../StartPiiEntitiesDetectionJobResult.java | 48 +- .../StartSentimentDetectionJobRequest.java | 205 ++- .../StartSentimentDetectionJobResult.java | 46 +- ...tTargetedSentimentDetectionJobRequest.java | 126 +- ...rtTargetedSentimentDetectionJobResult.java | 90 +- .../model/StartTopicsDetectionJobRequest.java | 173 ++- .../model/StartTopicsDetectionJobResult.java | 46 +- ...opDominantLanguageDetectionJobRequest.java | 2 +- ...topDominantLanguageDetectionJobResult.java | 2 +- .../StopEntitiesDetectionJobRequest.java | 2 +- .../model/StopEntitiesDetectionJobResult.java | 2 +- .../model/StopEventsDetectionJobRequest.java | 2 +- .../model/StopEventsDetectionJobResult.java | 2 +- .../StopKeyPhrasesDetectionJobRequest.java | 2 +- .../StopKeyPhrasesDetectionJobResult.java | 2 +- .../StopPiiEntitiesDetectionJobRequest.java | 2 +- .../StopPiiEntitiesDetectionJobResult.java | 2 +- .../StopSentimentDetectionJobRequest.java | 2 +- .../StopSentimentDetectionJobResult.java | 2 +- ...pTargetedSentimentDetectionJobRequest.java | 2 +- ...opTargetedSentimentDetectionJobResult.java | 2 +- ...StopTrainingDocumentClassifierRequest.java | 2 +- .../StopTrainingDocumentClassifierResult.java | 2 +- .../StopTrainingEntityRecognizerRequest.java | 2 +- .../StopTrainingEntityRecognizerResult.java | 2 +- .../comprehend/model/SyntaxLanguageCode.java | 2 +- .../comprehend/model/SyntaxToken.java | 2 +- .../services/comprehend/model/Tag.java | 2 +- .../comprehend/model/TagResourceRequest.java | 14 +- .../comprehend/model/TagResourceResult.java | 2 +- .../TargetedSentimentDetectionJobFilter.java | 5 +- ...rgetedSentimentDetectionJobProperties.java | 151 ++- .../model/TargetedSentimentEntity.java | 2 +- .../model/TargetedSentimentEntityType.java | 2 +- .../model/TargetedSentimentMention.java | 2 +- .../services/comprehend/model/TaskConfig.java | 308 +++++ .../model/TextSizeLimitExceededException.java | 2 +- .../model/TooManyRequestsException.java | 2 +- .../model/TooManyTagKeysException.java | 2 +- .../model/TooManyTagsException.java | 2 +- .../model/TopicsDetectionJobFilter.java | 2 +- .../model/TopicsDetectionJobProperties.java | 135 +- .../model/UnsupportedLanguageException.java | 2 +- .../model/UntagResourceRequest.java | 14 +- .../comprehend/model/UntagResourceResult.java | 2 +- .../model/UpdateDataSecurityConfig.java | 410 ++++++ .../model/UpdateEndpointRequest.java | 89 +- .../model/UpdateEndpointResult.java | 95 +- .../model/UpdateFlywheelRequest.java | 387 ++++++ .../model/UpdateFlywheelResult.java | 118 ++ .../services/comprehend/model/VpcConfig.java | 20 +- .../comprehend/model/WarningsListItem.java | 328 +++++ ...mentedManifestsListItemJsonMarshaller.java | 2 +- ...ntedManifestsListItemJsonUnmarshaller.java | 2 +- ...inantLanguageItemResultJsonMarshaller.java | 2 +- ...antLanguageItemResultJsonUnmarshaller.java | 2 +- ...tectDominantLanguageRequestMarshaller.java | 2 +- ...ominantLanguageResultJsonUnmarshaller.java | 2 +- ...etectEntitiesItemResultJsonMarshaller.java | 2 +- ...ectEntitiesItemResultJsonUnmarshaller.java | 2 +- .../BatchDetectEntitiesRequestMarshaller.java | 2 +- ...hDetectEntitiesResultJsonUnmarshaller.java | 2 +- ...ectKeyPhrasesItemResultJsonMarshaller.java | 2 +- ...tKeyPhrasesItemResultJsonUnmarshaller.java | 2 +- ...atchDetectKeyPhrasesRequestMarshaller.java | 2 +- ...etectKeyPhrasesResultJsonUnmarshaller.java | 2 +- ...tectSentimentItemResultJsonMarshaller.java | 2 +- ...ctSentimentItemResultJsonUnmarshaller.java | 2 +- ...BatchDetectSentimentRequestMarshaller.java | 2 +- ...DetectSentimentResultJsonUnmarshaller.java | 2 +- ...hDetectSyntaxItemResultJsonMarshaller.java | 2 +- ...etectSyntaxItemResultJsonUnmarshaller.java | 2 +- .../BatchDetectSyntaxRequestMarshaller.java | 2 +- ...tchDetectSyntaxResultJsonUnmarshaller.java | 2 +- ...etedSentimentItemResultJsonMarshaller.java | 2 +- ...edSentimentItemResultJsonUnmarshaller.java | 2 +- ...ectTargetedSentimentRequestMarshaller.java | 2 +- ...rgetedSentimentResultJsonUnmarshaller.java | 2 +- .../BatchItemErrorJsonMarshaller.java | 2 +- .../BatchItemErrorJsonUnmarshaller.java | 2 +- ...izeLimitExceededExceptionUnmarshaller.java | 2 +- .../model/transform/BlockJsonMarshaller.java | 76 ++ .../transform/BlockJsonUnmarshaller.java | 73 ++ .../BlockReferenceJsonMarshaller.java | 65 + .../BlockReferenceJsonUnmarshaller.java | 68 + .../transform/BoundingBoxJsonMarshaller.java | 59 + .../BoundingBoxJsonUnmarshaller.java | 65 + .../transform/ChildBlockJsonMarshaller.java | 54 + .../transform/ChildBlockJsonUnmarshaller.java | 62 + ...sifierEvaluationMetricsJsonMarshaller.java | 2 +- ...fierEvaluationMetricsJsonUnmarshaller.java | 2 +- .../ClassifierMetadataJsonMarshaller.java | 2 +- .../ClassifierMetadataJsonUnmarshaller.java | 2 +- .../ClassifyDocumentRequestMarshaller.java | 14 +- ...lassifyDocumentResultJsonUnmarshaller.java | 21 +- ...rentModificationExceptionUnmarshaller.java | 2 +- .../ContainsPiiEntitiesRequestMarshaller.java | 2 +- ...ainsPiiEntitiesResultJsonUnmarshaller.java | 2 +- .../CreateDatasetRequestMarshaller.java | 124 ++ .../CreateDatasetResultJsonUnmarshaller.java | 55 + ...teDocumentClassifierRequestMarshaller.java | 2 +- ...umentClassifierResultJsonUnmarshaller.java | 2 +- .../CreateEndpointRequestMarshaller.java | 7 +- .../CreateEndpointResultJsonUnmarshaller.java | 5 +- ...eateEntityRecognizerRequestMarshaller.java | 2 +- ...ntityRecognizerResultJsonUnmarshaller.java | 2 +- .../CreateFlywheelRequestMarshaller.java | 135 ++ .../CreateFlywheelResultJsonUnmarshaller.java | 58 + .../DataSecurityConfigJsonMarshaller.java | 60 + .../DataSecurityConfigJsonUnmarshaller.java | 66 + ...mentedManifestsListItemJsonMarshaller.java | 73 ++ ...ntedManifestsListItemJsonUnmarshaller.java | 75 ++ ...assifierInputDataConfigJsonMarshaller.java | 51 + ...sifierInputDataConfigJsonUnmarshaller.java | 63 + ...tyRecognizerAnnotationsJsonMarshaller.java | 45 + ...RecognizerAnnotationsJsonUnmarshaller.java | 58 + ...tityRecognizerDocumentsJsonMarshaller.java | 50 + ...tyRecognizerDocumentsJsonUnmarshaller.java | 62 + ...ityRecognizerEntityListJsonMarshaller.java | 45 + ...yRecognizerEntityListJsonUnmarshaller.java | 58 + ...cognizerInputDataConfigJsonMarshaller.java | 62 + ...gnizerInputDataConfigJsonUnmarshaller.java | 70 + .../DatasetFilterJsonMarshaller.java | 59 + .../DatasetFilterJsonUnmarshaller.java | 65 + .../DatasetInputDataConfigJsonMarshaller.java | 72 ++ ...atasetInputDataConfigJsonUnmarshaller.java | 73 ++ .../DatasetPropertiesJsonMarshaller.java | 90 ++ .../DatasetPropertiesJsonUnmarshaller.java | 84 ++ ...teDocumentClassifierRequestMarshaller.java | 2 +- ...umentClassifierResultJsonUnmarshaller.java | 2 +- .../DeleteEndpointRequestMarshaller.java | 2 +- .../DeleteEndpointResultJsonUnmarshaller.java | 2 +- ...leteEntityRecognizerRequestMarshaller.java | 2 +- ...ntityRecognizerResultJsonUnmarshaller.java | 2 +- .../DeleteFlywheelRequestMarshaller.java | 87 ++ .../DeleteFlywheelResultJsonUnmarshaller.java | 42 + ...DeleteResourcePolicyRequestMarshaller.java | 2 +- ...eResourcePolicyResultJsonUnmarshaller.java | 2 +- .../DescribeDatasetRequestMarshaller.java | 87 ++ ...DescribeDatasetResultJsonUnmarshaller.java | 56 + ...entClassificationJobRequestMarshaller.java | 2 +- ...assificationJobResultJsonUnmarshaller.java | 2 +- ...beDocumentClassifierRequestMarshaller.java | 2 +- ...umentClassifierResultJsonUnmarshaller.java | 2 +- ...LanguageDetectionJobRequestMarshaller.java | 2 +- ...ageDetectionJobResultJsonUnmarshaller.java | 2 +- .../DescribeEndpointRequestMarshaller.java | 2 +- ...escribeEndpointResultJsonUnmarshaller.java | 2 +- ...EntitiesDetectionJobRequestMarshaller.java | 2 +- ...iesDetectionJobResultJsonUnmarshaller.java | 2 +- ...ribeEntityRecognizerRequestMarshaller.java | 2 +- ...ntityRecognizerResultJsonUnmarshaller.java | 2 +- ...beEventsDetectionJobRequestMarshaller.java | 2 +- ...ntsDetectionJobResultJsonUnmarshaller.java | 2 +- ...ibeFlywheelIterationRequestMarshaller.java | 94 ++ ...ywheelIterationResultJsonUnmarshaller.java | 58 + .../DescribeFlywheelRequestMarshaller.java | 87 ++ ...escribeFlywheelResultJsonUnmarshaller.java | 56 + ...yPhrasesDetectionJobRequestMarshaller.java | 2 +- ...sesDetectionJobResultJsonUnmarshaller.java | 2 +- ...EntitiesDetectionJobRequestMarshaller.java | 2 +- ...iesDetectionJobResultJsonUnmarshaller.java | 2 +- ...scribeResourcePolicyRequestMarshaller.java | 2 +- ...eResourcePolicyResultJsonUnmarshaller.java | 2 +- ...entimentDetectionJobRequestMarshaller.java | 2 +- ...entDetectionJobResultJsonUnmarshaller.java | 2 +- ...entimentDetectionJobRequestMarshaller.java | 2 +- ...entDetectionJobResultJsonUnmarshaller.java | 2 +- ...beTopicsDetectionJobRequestMarshaller.java | 2 +- ...icsDetectionJobResultJsonUnmarshaller.java | 2 +- ...tectDominantLanguageRequestMarshaller.java | 2 +- ...ominantLanguageResultJsonUnmarshaller.java | 2 +- .../DetectEntitiesRequestMarshaller.java | 14 +- .../DetectEntitiesResultJsonUnmarshaller.java | 21 +- .../DetectKeyPhrasesRequestMarshaller.java | 2 +- ...etectKeyPhrasesResultJsonUnmarshaller.java | 2 +- .../DetectPiiEntitiesRequestMarshaller.java | 2 +- ...tectPiiEntitiesResultJsonUnmarshaller.java | 2 +- .../DetectSentimentRequestMarshaller.java | 2 +- ...DetectSentimentResultJsonUnmarshaller.java | 2 +- .../DetectSyntaxRequestMarshaller.java | 2 +- .../DetectSyntaxResultJsonUnmarshaller.java | 2 +- ...ectTargetedSentimentRequestMarshaller.java | 2 +- ...rgetedSentimentResultJsonUnmarshaller.java | 2 +- .../DocumentClassJsonMarshaller.java | 7 +- .../DocumentClassJsonUnmarshaller.java | 5 +- ...entClassificationConfigJsonMarshaller.java | 56 + ...tClassificationConfigJsonUnmarshaller.java | 63 + ...ClassificationJobFilterJsonMarshaller.java | 2 +- ...assificationJobFilterJsonUnmarshaller.java | 2 +- ...sificationJobPropertiesJsonMarshaller.java | 7 +- ...ficationJobPropertiesJsonUnmarshaller.java | 6 +- ...mentClassifierDocumentsJsonMarshaller.java | 50 + ...ntClassifierDocumentsJsonUnmarshaller.java | 60 + ...ocumentClassifierFilterJsonMarshaller.java | 2 +- ...umentClassifierFilterJsonUnmarshaller.java | 2 +- ...assifierInputDataConfigJsonMarshaller.java | 20 +- ...sifierInputDataConfigJsonUnmarshaller.java | 14 +- ...ssifierOutputDataConfigJsonMarshaller.java | 8 +- ...ifierOutputDataConfigJsonUnmarshaller.java | 6 +- ...entClassifierPropertiesJsonMarshaller.java | 7 +- ...tClassifierPropertiesJsonUnmarshaller.java | 5 +- ...cumentClassifierSummaryJsonMarshaller.java | 2 +- ...mentClassifierSummaryJsonUnmarshaller.java | 2 +- .../DocumentLabelJsonMarshaller.java | 7 +- .../DocumentLabelJsonUnmarshaller.java | 5 +- .../DocumentMetadataJsonMarshaller.java | 58 + .../DocumentMetadataJsonUnmarshaller.java | 63 + .../DocumentReaderConfigJsonMarshaller.java | 2 +- .../DocumentReaderConfigJsonUnmarshaller.java | 2 +- .../DocumentTypeListItemJsonMarshaller.java | 50 + .../DocumentTypeListItemJsonUnmarshaller.java | 60 + ...guageDetectionJobFilterJsonMarshaller.java | 2 +- ...ageDetectionJobFilterJsonUnmarshaller.java | 2 +- ...eDetectionJobPropertiesJsonMarshaller.java | 2 +- ...etectionJobPropertiesJsonUnmarshaller.java | 2 +- .../DominantLanguageJsonMarshaller.java | 2 +- .../DominantLanguageJsonUnmarshaller.java | 2 +- .../EndpointFilterJsonMarshaller.java | 2 +- .../EndpointFilterJsonUnmarshaller.java | 2 +- .../EndpointPropertiesJsonMarshaller.java | 7 +- .../EndpointPropertiesJsonUnmarshaller.java | 5 +- ...itiesDetectionJobFilterJsonMarshaller.java | 2 +- ...iesDetectionJobFilterJsonUnmarshaller.java | 2 +- ...sDetectionJobPropertiesJsonMarshaller.java | 7 +- ...etectionJobPropertiesJsonUnmarshaller.java | 5 +- .../model/transform/EntityJsonMarshaller.java | 14 +- .../transform/EntityJsonUnmarshaller.java | 7 +- .../transform/EntityLabelJsonMarshaller.java | 2 +- .../EntityLabelJsonUnmarshaller.java | 2 +- ...EntityRecognitionConfigJsonMarshaller.java | 53 + ...tityRecognitionConfigJsonUnmarshaller.java | 59 + ...tyRecognizerAnnotationsJsonMarshaller.java | 2 +- ...RecognizerAnnotationsJsonUnmarshaller.java | 2 +- ...tityRecognizerDocumentsJsonMarshaller.java | 2 +- ...tyRecognizerDocumentsJsonUnmarshaller.java | 2 +- ...ityRecognizerEntityListJsonMarshaller.java | 2 +- ...yRecognizerEntityListJsonUnmarshaller.java | 2 +- ...gnizerEvaluationMetricsJsonMarshaller.java | 2 +- ...izerEvaluationMetricsJsonUnmarshaller.java | 2 +- .../EntityRecognizerFilterJsonMarshaller.java | 2 +- ...ntityRecognizerFilterJsonUnmarshaller.java | 2 +- ...cognizerInputDataConfigJsonMarshaller.java | 2 +- ...gnizerInputDataConfigJsonUnmarshaller.java | 2 +- ...dataEntityTypesListItemJsonMarshaller.java | 2 +- ...taEntityTypesListItemJsonUnmarshaller.java | 2 +- ...ntityRecognizerMetadataJsonMarshaller.java | 2 +- ...ityRecognizerMetadataJsonUnmarshaller.java | 2 +- ...ognizerOutputDataConfigJsonMarshaller.java | 46 + ...nizerOutputDataConfigJsonUnmarshaller.java | 59 + ...ityRecognizerPropertiesJsonMarshaller.java | 14 +- ...yRecognizerPropertiesJsonUnmarshaller.java | 10 +- ...EntityRecognizerSummaryJsonMarshaller.java | 2 +- ...tityRecognizerSummaryJsonUnmarshaller.java | 2 +- ...yTypesEvaluationMetricsJsonMarshaller.java | 2 +- ...ypesEvaluationMetricsJsonUnmarshaller.java | 2 +- .../EntityTypesListItemJsonMarshaller.java | 2 +- .../EntityTypesListItemJsonUnmarshaller.java | 2 +- .../ErrorsListItemJsonMarshaller.java | 54 + .../ErrorsListItemJsonUnmarshaller.java | 63 + ...ventsDetectionJobFilterJsonMarshaller.java | 2 +- ...ntsDetectionJobFilterJsonUnmarshaller.java | 2 +- ...sDetectionJobPropertiesJsonMarshaller.java | 2 +- ...etectionJobPropertiesJsonUnmarshaller.java | 2 +- ...actedCharactersListItemJsonMarshaller.java | 50 + ...tedCharactersListItemJsonUnmarshaller.java | 60 + .../FlywheelFilterJsonMarshaller.java | 54 + .../FlywheelFilterJsonUnmarshaller.java | 63 + ...FlywheelIterationFilterJsonMarshaller.java | 50 + ...ywheelIterationFilterJsonUnmarshaller.java | 60 + ...heelIterationPropertiesJsonMarshaller.java | 100 ++ ...elIterationPropertiesJsonUnmarshaller.java | 94 ++ ...lModelEvaluationMetricsJsonMarshaller.java | 60 + ...odelEvaluationMetricsJsonUnmarshaller.java | 71 ++ .../FlywheelPropertiesJsonMarshaller.java | 100 ++ .../FlywheelPropertiesJsonUnmarshaller.java | 91 ++ .../FlywheelSummaryJsonMarshaller.java | 85 ++ .../FlywheelSummaryJsonUnmarshaller.java | 81 ++ .../transform/GeometryJsonMarshaller.java | 55 + .../transform/GeometryJsonUnmarshaller.java | 60 + .../ImportModelRequestMarshaller.java | 2 +- .../ImportModelResultJsonUnmarshaller.java | 2 +- .../InputDataConfigJsonMarshaller.java | 2 +- .../InputDataConfigJsonUnmarshaller.java | 2 +- .../InternalServerExceptionUnmarshaller.java | 2 +- .../InvalidFilterExceptionUnmarshaller.java | 2 +- .../InvalidRequestDetailJsonMarshaller.java | 45 + .../InvalidRequestDetailJsonUnmarshaller.java | 57 + .../InvalidRequestExceptionUnmarshaller.java | 8 +- .../JobNotFoundExceptionUnmarshaller.java | 2 +- .../transform/KeyPhraseJsonMarshaller.java | 2 +- .../transform/KeyPhraseJsonUnmarshaller.java | 2 +- ...rasesDetectionJobFilterJsonMarshaller.java | 2 +- ...sesDetectionJobFilterJsonUnmarshaller.java | 2 +- ...sDetectionJobPropertiesJsonMarshaller.java | 2 +- ...etectionJobPropertiesJsonUnmarshaller.java | 2 +- ...KmsKeyValidationExceptionUnmarshaller.java | 2 +- .../ListDatasetsRequestMarshaller.java | 102 ++ .../ListDatasetsResultJsonUnmarshaller.java | 61 + ...ntClassificationJobsRequestMarshaller.java | 2 +- ...ssificationJobsResultJsonUnmarshaller.java | 2 +- ...tClassifierSummariesRequestMarshaller.java | 2 +- ...sifierSummariesResultJsonUnmarshaller.java | 2 +- ...tDocumentClassifiersRequestMarshaller.java | 2 +- ...mentClassifiersResultJsonUnmarshaller.java | 2 +- ...anguageDetectionJobsRequestMarshaller.java | 2 +- ...geDetectionJobsResultJsonUnmarshaller.java | 2 +- .../ListEndpointsRequestMarshaller.java | 2 +- .../ListEndpointsResultJsonUnmarshaller.java | 2 +- ...ntitiesDetectionJobsRequestMarshaller.java | 2 +- ...esDetectionJobsResultJsonUnmarshaller.java | 2 +- ...yRecognizerSummariesRequestMarshaller.java | 2 +- ...gnizerSummariesResultJsonUnmarshaller.java | 2 +- ...istEntityRecognizersRequestMarshaller.java | 2 +- ...tityRecognizersResultJsonUnmarshaller.java | 2 +- ...tEventsDetectionJobsRequestMarshaller.java | 2 +- ...tsDetectionJobsResultJsonUnmarshaller.java | 2 +- ...heelIterationHistoryRequestMarshaller.java | 104 ++ ...terationHistoryResultJsonUnmarshaller.java | 63 + .../ListFlywheelsRequestMarshaller.java | 97 ++ .../ListFlywheelsResultJsonUnmarshaller.java | 60 + ...PhrasesDetectionJobsRequestMarshaller.java | 2 +- ...esDetectionJobsResultJsonUnmarshaller.java | 2 +- ...ntitiesDetectionJobsRequestMarshaller.java | 2 +- ...esDetectionJobsResultJsonUnmarshaller.java | 2 +- ...ntimentDetectionJobsRequestMarshaller.java | 2 +- ...ntDetectionJobsResultJsonUnmarshaller.java | 2 +- .../ListTagsForResourceRequestMarshaller.java | 2 +- ...TagsForResourceResultJsonUnmarshaller.java | 2 +- ...ntimentDetectionJobsRequestMarshaller.java | 2 +- ...ntDetectionJobsResultJsonUnmarshaller.java | 2 +- ...tTopicsDetectionJobsRequestMarshaller.java | 2 +- ...csDetectionJobsResultJsonUnmarshaller.java | 2 +- .../MentionSentimentJsonMarshaller.java | 2 +- .../MentionSentimentJsonUnmarshaller.java | 2 +- .../OutputDataConfigJsonMarshaller.java | 2 +- .../OutputDataConfigJsonUnmarshaller.java | 2 +- .../PartOfSpeechTagJsonMarshaller.java | 2 +- .../PartOfSpeechTagJsonUnmarshaller.java | 2 +- ...itiesDetectionJobFilterJsonMarshaller.java | 2 +- ...iesDetectionJobFilterJsonUnmarshaller.java | 2 +- ...sDetectionJobPropertiesJsonMarshaller.java | 2 +- ...etectionJobPropertiesJsonUnmarshaller.java | 2 +- .../transform/PiiEntityJsonMarshaller.java | 2 +- .../transform/PiiEntityJsonUnmarshaller.java | 2 +- .../PiiOutputDataConfigJsonMarshaller.java | 2 +- .../PiiOutputDataConfigJsonUnmarshaller.java | 2 +- .../model/transform/PointJsonMarshaller.java | 49 + .../transform/PointJsonUnmarshaller.java | 59 + .../PutResourcePolicyRequestMarshaller.java | 2 +- ...tResourcePolicyResultJsonUnmarshaller.java | 2 +- .../RedactionConfigJsonMarshaller.java | 2 +- .../RedactionConfigJsonUnmarshaller.java | 2 +- .../RelationshipsListItemJsonMarshaller.java | 56 + ...RelationshipsListItemJsonUnmarshaller.java | 62 + .../ResourceInUseExceptionUnmarshaller.java | 2 +- ...rceLimitExceededExceptionUnmarshaller.java | 2 +- ...ResourceNotFoundExceptionUnmarshaller.java | 2 +- ...ourceUnavailableExceptionUnmarshaller.java | 2 +- ...imentDetectionJobFilterJsonMarshaller.java | 2 +- ...entDetectionJobFilterJsonUnmarshaller.java | 2 +- ...tDetectionJobPropertiesJsonMarshaller.java | 2 +- ...etectionJobPropertiesJsonUnmarshaller.java | 2 +- .../SentimentScoreJsonMarshaller.java | 2 +- .../SentimentScoreJsonUnmarshaller.java | 2 +- ...entClassificationJobRequestMarshaller.java | 7 +- ...assificationJobResultJsonUnmarshaller.java | 6 +- ...LanguageDetectionJobRequestMarshaller.java | 2 +- ...ageDetectionJobResultJsonUnmarshaller.java | 2 +- ...EntitiesDetectionJobRequestMarshaller.java | 7 +- ...iesDetectionJobResultJsonUnmarshaller.java | 6 +- ...rtEventsDetectionJobRequestMarshaller.java | 2 +- ...ntsDetectionJobResultJsonUnmarshaller.java | 2 +- ...artFlywheelIterationRequestMarshaller.java | 93 ++ ...ywheelIterationResultJsonUnmarshaller.java | 60 + ...yPhrasesDetectionJobRequestMarshaller.java | 2 +- ...sesDetectionJobResultJsonUnmarshaller.java | 2 +- ...EntitiesDetectionJobRequestMarshaller.java | 2 +- ...iesDetectionJobResultJsonUnmarshaller.java | 2 +- ...entimentDetectionJobRequestMarshaller.java | 2 +- ...entDetectionJobResultJsonUnmarshaller.java | 2 +- ...entimentDetectionJobRequestMarshaller.java | 2 +- ...entDetectionJobResultJsonUnmarshaller.java | 2 +- ...rtTopicsDetectionJobRequestMarshaller.java | 2 +- ...icsDetectionJobResultJsonUnmarshaller.java | 2 +- ...LanguageDetectionJobRequestMarshaller.java | 2 +- ...ageDetectionJobResultJsonUnmarshaller.java | 2 +- ...EntitiesDetectionJobRequestMarshaller.java | 2 +- ...iesDetectionJobResultJsonUnmarshaller.java | 2 +- ...opEventsDetectionJobRequestMarshaller.java | 2 +- ...ntsDetectionJobResultJsonUnmarshaller.java | 2 +- ...yPhrasesDetectionJobRequestMarshaller.java | 2 +- ...sesDetectionJobResultJsonUnmarshaller.java | 2 +- ...EntitiesDetectionJobRequestMarshaller.java | 2 +- ...iesDetectionJobResultJsonUnmarshaller.java | 2 +- ...entimentDetectionJobRequestMarshaller.java | 2 +- ...entDetectionJobResultJsonUnmarshaller.java | 2 +- ...entimentDetectionJobRequestMarshaller.java | 2 +- ...entDetectionJobResultJsonUnmarshaller.java | 2 +- ...ngDocumentClassifierRequestMarshaller.java | 2 +- ...umentClassifierResultJsonUnmarshaller.java | 2 +- ...ningEntityRecognizerRequestMarshaller.java | 2 +- ...ntityRecognizerResultJsonUnmarshaller.java | 2 +- .../transform/SyntaxTokenJsonMarshaller.java | 2 +- .../SyntaxTokenJsonUnmarshaller.java | 2 +- .../model/transform/TagJsonMarshaller.java | 2 +- .../model/transform/TagJsonUnmarshaller.java | 2 +- .../TagResourceRequestMarshaller.java | 2 +- .../TagResourceResultJsonUnmarshaller.java | 2 +- ...imentDetectionJobFilterJsonMarshaller.java | 2 +- ...entDetectionJobFilterJsonUnmarshaller.java | 2 +- ...tDetectionJobPropertiesJsonMarshaller.java | 2 +- ...etectionJobPropertiesJsonUnmarshaller.java | 2 +- ...TargetedSentimentEntityJsonMarshaller.java | 2 +- ...rgetedSentimentEntityJsonUnmarshaller.java | 2 +- ...argetedSentimentMentionJsonMarshaller.java | 2 +- ...getedSentimentMentionJsonUnmarshaller.java | 2 +- .../transform/TaskConfigJsonMarshaller.java | 58 + .../transform/TaskConfigJsonUnmarshaller.java | 65 + ...izeLimitExceededExceptionUnmarshaller.java | 2 +- .../TooManyRequestsExceptionUnmarshaller.java | 2 +- .../TooManyTagKeysExceptionUnmarshaller.java | 2 +- .../TooManyTagsExceptionUnmarshaller.java | 2 +- ...opicsDetectionJobFilterJsonMarshaller.java | 2 +- ...icsDetectionJobFilterJsonUnmarshaller.java | 2 +- ...sDetectionJobPropertiesJsonMarshaller.java | 2 +- ...etectionJobPropertiesJsonUnmarshaller.java | 2 +- ...upportedLanguageExceptionUnmarshaller.java | 2 +- .../UntagResourceRequestMarshaller.java | 2 +- .../UntagResourceResultJsonUnmarshaller.java | 2 +- ...pdateDataSecurityConfigJsonMarshaller.java | 55 + ...ateDataSecurityConfigJsonUnmarshaller.java | 63 + .../UpdateEndpointRequestMarshaller.java | 7 +- .../UpdateEndpointResultJsonUnmarshaller.java | 15 +- .../UpdateFlywheelRequestMarshaller.java | 104 ++ .../UpdateFlywheelResultJsonUnmarshaller.java | 56 + .../transform/VpcConfigJsonMarshaller.java | 2 +- .../transform/VpcConfigJsonUnmarshaller.java | 2 +- .../WarningsListItemJsonMarshaller.java | 55 + .../WarningsListItemJsonUnmarshaller.java | 63 + .../services/comprehend/package-info.java | 2 +- 714 files changed, 36813 insertions(+), 3535 deletions(-) create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Block.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockReference.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockType.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BoundingBox.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ChildBlock.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateFlywheelRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateFlywheelResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DataSecurityConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetAugmentedManifestsListItem.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetDataFormat.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetDocumentClassifierInputDataConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerAnnotations.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerDocuments.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerEntityList.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerInputDataConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetFilter.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetInputDataConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetProperties.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetStatus.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetType.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteFlywheelRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteFlywheelResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDatasetRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDatasetResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelIterationRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelIterationResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentClassificationConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentClassifierDocumentTypeFormat.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentClassifierDocuments.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentMetadata.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentType.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentTypeListItem.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognitionConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerOutputDataConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ErrorsListItem.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ExtractedCharactersListItem.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelFilter.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationFilter.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationProperties.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationStatus.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelModelEvaluationMetrics.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelProperties.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelStatus.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelSummary.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Geometry.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InvalidRequestDetail.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InvalidRequestDetailReason.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InvalidRequestReason.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListDatasetsRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListDatasetsResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListFlywheelIterationHistoryRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListFlywheelIterationHistoryResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListFlywheelsRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListFlywheelsResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ModelType.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PageBasedErrorCode.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PageBasedWarningCode.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Point.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RelationshipType.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RelationshipsListItem.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/StartFlywheelIterationRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/StartFlywheelIterationResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/TaskConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/UpdateDataSecurityConfig.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/UpdateFlywheelRequest.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/UpdateFlywheelResult.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/WarningsListItem.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/BlockJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/BlockJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/BlockReferenceJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/BlockReferenceJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/BoundingBoxJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/BoundingBoxJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ChildBlockJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ChildBlockJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/CreateDatasetRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/CreateDatasetResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/CreateFlywheelRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/CreateFlywheelResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DataSecurityConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DataSecurityConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetAugmentedManifestsListItemJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetAugmentedManifestsListItemJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetDocumentClassifierInputDataConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetDocumentClassifierInputDataConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerAnnotationsJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerAnnotationsJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerDocumentsJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerDocumentsJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerEntityListJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerEntityListJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerInputDataConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetEntityRecognizerInputDataConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetFilterJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetFilterJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetInputDataConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetInputDataConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetPropertiesJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DatasetPropertiesJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DeleteFlywheelRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DeleteFlywheelResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DescribeDatasetRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DescribeDatasetResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DescribeFlywheelIterationRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DescribeFlywheelIterationResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DescribeFlywheelRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DescribeFlywheelResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentClassificationConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentClassificationConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentClassifierDocumentsJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentClassifierDocumentsJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentMetadataJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentMetadataJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentTypeListItemJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/DocumentTypeListItemJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/EntityRecognitionConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/EntityRecognitionConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/EntityRecognizerOutputDataConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/EntityRecognizerOutputDataConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ErrorsListItemJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ErrorsListItemJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ExtractedCharactersListItemJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ExtractedCharactersListItemJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelFilterJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelFilterJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelIterationFilterJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelIterationFilterJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelIterationPropertiesJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelIterationPropertiesJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelModelEvaluationMetricsJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelModelEvaluationMetricsJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelPropertiesJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelPropertiesJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelSummaryJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/FlywheelSummaryJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/GeometryJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/GeometryJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/InvalidRequestDetailJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/InvalidRequestDetailJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ListDatasetsRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ListDatasetsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ListFlywheelIterationHistoryRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ListFlywheelIterationHistoryResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ListFlywheelsRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/ListFlywheelsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/PointJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/PointJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/RelationshipsListItemJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/RelationshipsListItemJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/StartFlywheelIterationRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/StartFlywheelIterationResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/TaskConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/TaskConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/UpdateDataSecurityConfigJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/UpdateDataSecurityConfigJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/UpdateFlywheelRequestMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/UpdateFlywheelResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/WarningsListItemJsonMarshaller.java create mode 100644 aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/transform/WarningsListItemJsonUnmarshaller.java diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehend.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehend.java index da1e50e6fc6..fc6d9b946cc 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehend.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehend.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -22,10 +22,10 @@ /** * Interface for accessing Amazon Comprehend *

- * Amazon Comprehend is an AWS service for gaining insight into the content of - * documents. Use these actions to determine the topics contained in your - * documents, the topics they discuss, the predominant sentiment expressed in - * them, the predominant language used, and more. + * Amazon Comprehend is an Amazon Web Services service for gaining insight into + * the content of documents. Use these actions to determine the topics contained + * in your documents, the topics they discuss, the predominant sentiment + * expressed in them, the predominant language used, and more. *

**/ public interface AmazonComprehend { @@ -267,6 +267,23 @@ BatchDetectTargetedSentimentResult batchDetectTargetedSentiment( * document in real-time, using a previously created and trained custom * model and an endpoint. *

+ *

+ * You can input plain text or you can upload a single-page input document + * (text, PDF, Word, or image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors that + * describes the errors. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param classifyDocumentRequest * @return classifyDocumentResult The response from the ClassifyDocument @@ -313,15 +330,43 @@ ContainsPiiEntitiesResult containsPiiEntities( ContainsPiiEntitiesRequest containsPiiEntitiesRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Creates a dataset to upload training or test data for a model associated + * with a flywheel. For more information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createDatasetRequest + * @return createDatasetResult The response from the CreateDataset service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + CreateDatasetResult createDataset(CreateDatasetRequest createDatasetRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training - * documents that labeled with the categories that you want to use. After - * the classifier is trained you can use it to categorize a set of labeled - * documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide. + * documents that are labeled with the categories that you want to use. For + * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest @@ -383,7 +428,7 @@ CreateEndpointResult createEndpoint(CreateEndpointRequest createEndpointRequest) *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check - * job status using the API. + * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest @@ -410,6 +455,57 @@ CreateEntityRecognizerResult createEntityRecognizer( CreateEntityRecognizerRequest createEntityRecognizerRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * A flywheel is an Amazon Web Services resource that orchestrates the + * ongoing training of a model for custom classification or custom entity + * recognition. You can create a flywheel to start with an existing trained + * model, or Comprehend can create and train a new model. + *

+ *

+ * When you create the flywheel, Comprehend creates a data lake in your + * account. The data lake holds the training data and test data for all + * versions of the model. + *

+ *

+ * To use a flywheel with an existing trained model, you specify the active + * model version. Comprehend copies the model's training data and test data + * into the flywheel's data lake. + *

+ *

+ * To use the flywheel with a new model, you need to provide a dataset for + * training data (and optional test data) when you create the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createFlywheelRequest + * @return createFlywheelResult The response from the CreateFlywheel service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws UnsupportedLanguageException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + CreateFlywheelResult createFlywheel(CreateFlywheelRequest createFlywheelRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Deletes a previously created document classifier @@ -514,6 +610,37 @@ DeleteEntityRecognizerResult deleteEntityRecognizer( DeleteEntityRecognizerRequest deleteEntityRecognizerRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does + * not delete the data lake or the model associated with the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param deleteFlywheelRequest + * @return deleteFlywheelResult The response from the DeleteFlywheel service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws ResourceInUseException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + DeleteFlywheelResult deleteFlywheel(DeleteFlywheelRequest deleteFlywheelRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Deletes a resource-based policy that is attached to a custom model. @@ -538,6 +665,32 @@ DeleteResourcePolicyResult deleteResourcePolicy( DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Returns information about the dataset that you specify. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeDatasetRequest + * @return describeDatasetResult The response from the DescribeDataset + * service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + DescribeDatasetResult describeDataset(DescribeDatasetRequest describeDatasetRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Gets the properties associated with a document classification job. Use @@ -719,6 +872,60 @@ DescribeEventsDetectionJobResult describeEventsDetectionJob( DescribeEventsDetectionJobRequest describeEventsDetectionJobRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Provides configuration information about the flywheel. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelRequest + * @return describeFlywheelResult The response from the DescribeFlywheel + * service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + DescribeFlywheelResult describeFlywheel(DescribeFlywheelRequest describeFlywheelRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Retrieve the configuration properties of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelIterationRequest + * @return describeFlywheelIterationResult The response from the + * DescribeFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + DescribeFlywheelIterationResult describeFlywheelIteration( + DescribeFlywheelIterationRequest describeFlywheelIterationRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Gets the properties associated with a key phrases detection job. Use this @@ -903,11 +1110,33 @@ DetectDominantLanguageResult detectDominantLanguage( /** *

- * Inspects text for named entities, and returns information about them. For - * more information, about named entities, see + *

+ * When detecting named entities using the pre-trained model, use plain text + * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. *

+ *

+ * When you use a custom entity recognition model, you can input plain text + * or you can upload a single-page input document (text, PDF, Word, or + * image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors for + * each error. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param detectEntitiesRequest * @return detectEntitiesResult The response from the DetectEntities service @@ -1060,15 +1289,17 @@ DetectTargetedSentimentResult detectTargetedSentiment( /** *

* Creates a new custom model that replicates a source custom model that you - * import. The source model can be in your AWS account or another one. + * import. The source model can be in your Amazon Web Services account or + * another one. *

*

- * If the source model is in another AWS account, then it must have a - * resource-based policy that authorizes you to import it. + * If the source model is in another Amazon Web Services account, then it + * must have a resource-based policy that authorizes you to import it. *

*

- * The source model must be in the same AWS region that you're using when - * you import. You can't import a model that's in a different region. + * The source model must be in the same Amazon Web Services Region that + * you're using when you import. You can't import a model that's in a + * different Region. *

* * @param importModelRequest @@ -1094,6 +1325,33 @@ DetectTargetedSentimentResult detectTargetedSentiment( ImportModelResult importModel(ImportModelRequest importModelRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * List the datasets that you have configured in this Region. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listDatasetsRequest + * @return listDatasetsResult The response from the ListDatasets service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + ListDatasetsResult listDatasets(ListDatasetsRequest listDatasetsRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Gets a list of the documentation classification jobs that you have @@ -1329,6 +1587,58 @@ ListEventsDetectionJobsResult listEventsDetectionJobs( ListEventsDetectionJobsRequest listEventsDetectionJobsRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Information about the history of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listFlywheelIterationHistoryRequest + * @return listFlywheelIterationHistoryResult The response from the + * ListFlywheelIterationHistory service method, as returned by + * Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + ListFlywheelIterationHistoryResult listFlywheelIterationHistory( + ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Gets a list of the flywheels that you have created. + *

+ * + * @param listFlywheelsRequest + * @return listFlywheelsResult The response from the ListFlywheels service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + ListFlywheelsResult listFlywheels(ListFlywheelsRequest listFlywheelsRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Get a list of key phrase detection jobs that you have submitted. @@ -1481,8 +1791,9 @@ ListTopicsDetectionJobsResult listTopicsDetectionJobs( /** *

* Attaches a resource-based policy to a custom model. You can use this - * policy to authorize an entity in another AWS account to import the custom - * model, which replicates it in Amazon Comprehend in their account. + * policy to authorize an entity in another Amazon Web Services account to + * import the custom model, which replicates it in Amazon Comprehend in + * their account. *

* * @param putResourcePolicyRequest @@ -1504,8 +1815,9 @@ PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest putResourcePo /** *

- * Starts an asynchronous document classification job. Use the operation to - * track the progress of the job. + * Starts an asynchronous document classification job. Use the + * DescribeDocumentClassificationJob operation to track the + * progress of the job. *

* * @param startDocumentClassificationJobRequest @@ -1518,6 +1830,7 @@ PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest putResourcePo * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1545,6 +1858,7 @@ StartDocumentClassificationJobResult startDocumentClassificationJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1580,6 +1894,7 @@ StartDominantLanguageDetectionJobResult startDominantLanguageDetectionJob( * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1606,6 +1921,7 @@ StartEntitiesDetectionJobResult startEntitiesDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1619,6 +1935,36 @@ StartEventsDetectionJobResult startEventsDetectionJob( StartEventsDetectionJobRequest startEventsDetectionJobRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Start the flywheel iteration.This operation uses any new datasets to + * train a new model version. For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param startFlywheelIterationRequest + * @return startFlywheelIterationResult The response from the + * StartFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + StartFlywheelIterationResult startFlywheelIteration( + StartFlywheelIterationRequest startFlywheelIterationRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Starts an asynchronous key phrase detection job for a collection of @@ -1633,6 +1979,7 @@ StartEventsDetectionJobResult startEventsDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1660,6 +2007,7 @@ StartKeyPhrasesDetectionJobResult startKeyPhrasesDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1687,6 +2035,7 @@ StartPiiEntitiesDetectionJobResult startPiiEntitiesDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1703,7 +2052,8 @@ StartSentimentDetectionJobResult startSentimentDetectionJob( /** *

* Starts an asynchronous targeted sentiment detection job for a collection - * of documents. Use the operation to track the status of a job. + * of documents. Use the DescribeTargetedSentimentDetectionJob + * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest @@ -1714,6 +2064,7 @@ StartSentimentDetectionJobResult startSentimentDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1742,6 +2093,7 @@ StartTargetedSentimentDetectionJobResult startTargetedSentimentDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -2149,6 +2501,30 @@ UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest) UpdateEndpointResult updateEndpoint(UpdateEndpointRequest updateEndpointRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Update the configuration information for an existing flywheel. + *

+ * + * @param updateFlywheelRequest + * @return updateFlywheelResult The response from the UpdateFlywheel service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + UpdateFlywheelResult updateFlywheel(UpdateFlywheelRequest updateFlywheelRequest) + throws AmazonClientException, AmazonServiceException; + /** * Shuts down this client object, releasing any resources that might be held * open. This is an optional method, and callers are not expected to call diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsync.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsync.java index 51167a6c44e..59bd11fce40 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsync.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsync.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -25,10 +25,10 @@ /** * Interface for accessing Amazon Comprehend asynchronously. *

- * Amazon Comprehend is an AWS service for gaining insight into the content of - * documents. Use these actions to determine the topics contained in your - * documents, the topics they discuss, the predominant sentiment expressed in - * them, the predominant language used, and more. + * Amazon Comprehend is an Amazon Web Services service for gaining insight into + * the content of documents. Use these actions to determine the topics contained + * in your documents, the topics they discuss, the predominant sentiment + * expressed in them, the predominant language used, and more. *

**/ public interface AmazonComprehendAsync extends AmazonComprehend { @@ -418,6 +418,23 @@ Future batchDetectTargetedSentimentAsync( * document in real-time, using a previously created and trained custom * model and an endpoint. *

+ *

+ * You can input plain text or you can upload a single-page input document + * (text, PDF, Word, or image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors that + * describes the errors. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param classifyDocumentRequest * @return A Java Future object containing the response from the @@ -445,6 +462,23 @@ Future classifyDocumentAsync( * document in real-time, using a previously created and trained custom * model and an endpoint. *

+ *

+ * You can input plain text or you can upload a single-page input document + * (text, PDF, Word, or image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors that + * describes the errors. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param classifyDocumentRequest * @param asyncHandler Asynchronous callback handler for events in the @@ -530,15 +564,77 @@ Future containsPiiEntitiesAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Creates a dataset to upload training or test data for a model associated + * with a flywheel. For more information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createDatasetRequest + * @return A Java Future object containing the response from the + * CreateDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future createDatasetAsync(CreateDatasetRequest createDatasetRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Creates a dataset to upload training or test data for a model associated + * with a flywheel. For more information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createDatasetRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * CreateDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future createDatasetAsync(CreateDatasetRequest createDatasetRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training - * documents that labeled with the categories that you want to use. After - * the classifier is trained you can use it to categorize a set of labeled - * documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide. + * documents that are labeled with the categories that you want to use. For + * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest @@ -569,11 +665,10 @@ Future createDocumentClassifierAsync( *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training - * documents that labeled with the categories that you want to use. After - * the classifier is trained you can use it to categorize a set of labeled - * documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide. + * documents that are labeled with the categories that you want to use. For + * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest @@ -676,7 +771,7 @@ Future createEndpointAsync(CreateEndpointRequest createEnd *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check - * job status using the API. + * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest @@ -707,7 +802,7 @@ Future createEntityRecognizerAsync( *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check - * job status using the API. + * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest @@ -739,6 +834,113 @@ Future createEntityRecognizerAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * A flywheel is an Amazon Web Services resource that orchestrates the + * ongoing training of a model for custom classification or custom entity + * recognition. You can create a flywheel to start with an existing trained + * model, or Comprehend can create and train a new model. + *

+ *

+ * When you create the flywheel, Comprehend creates a data lake in your + * account. The data lake holds the training data and test data for all + * versions of the model. + *

+ *

+ * To use a flywheel with an existing trained model, you specify the active + * model version. Comprehend copies the model's training data and test data + * into the flywheel's data lake. + *

+ *

+ * To use the flywheel with a new model, you need to provide a dataset for + * training data (and optional test data) when you create the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createFlywheelRequest + * @return A Java Future object containing the response from the + * CreateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws UnsupportedLanguageException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future createFlywheelAsync(CreateFlywheelRequest createFlywheelRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * A flywheel is an Amazon Web Services resource that orchestrates the + * ongoing training of a model for custom classification or custom entity + * recognition. You can create a flywheel to start with an existing trained + * model, or Comprehend can create and train a new model. + *

+ *

+ * When you create the flywheel, Comprehend creates a data lake in your + * account. The data lake holds the training data and test data for all + * versions of the model. + *

+ *

+ * To use a flywheel with an existing trained model, you specify the active + * model version. Comprehend copies the model's training data and test data + * into the flywheel's data lake. + *

+ *

+ * To use the flywheel with a new model, you need to provide a dataset for + * training data (and optional test data) when you create the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createFlywheelRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * CreateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws UnsupportedLanguageException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future createFlywheelAsync(CreateFlywheelRequest createFlywheelRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Deletes a previously created document classifier @@ -962,6 +1164,73 @@ Future deleteEntityRecognizerAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does + * not delete the data lake or the model associated with the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param deleteFlywheelRequest + * @return A Java Future object containing the response from the + * DeleteFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws ResourceInUseException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future deleteFlywheelAsync(DeleteFlywheelRequest deleteFlywheelRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does + * not delete the data lake or the model associated with the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param deleteFlywheelRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * DeleteFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws ResourceInUseException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future deleteFlywheelAsync(DeleteFlywheelRequest deleteFlywheelRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Deletes a resource-based policy that is attached to a custom model. @@ -1015,6 +1284,64 @@ Future deleteResourcePolicyAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Returns information about the dataset that you specify. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeDatasetRequest + * @return A Java Future object containing the response from the + * DescribeDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future describeDatasetAsync(DescribeDatasetRequest describeDatasetRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Returns information about the dataset that you specify. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeDatasetRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * DescribeDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future describeDatasetAsync( + DescribeDatasetRequest describeDatasetRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Gets the properties associated with a document classification job. Use @@ -1416,6 +1743,128 @@ Future describeEventsDetectionJobAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Provides configuration information about the flywheel. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelRequest + * @return A Java Future object containing the response from the + * DescribeFlywheel service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future describeFlywheelAsync( + DescribeFlywheelRequest describeFlywheelRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Provides configuration information about the flywheel. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * DescribeFlywheel service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future describeFlywheelAsync( + DescribeFlywheelRequest describeFlywheelRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Retrieve the configuration properties of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelIterationRequest + * @return A Java Future object containing the response from the + * DescribeFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future describeFlywheelIterationAsync( + DescribeFlywheelIterationRequest describeFlywheelIterationRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Retrieve the configuration properties of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelIterationRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * DescribeFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future describeFlywheelIterationAsync( + DescribeFlywheelIterationRequest describeFlywheelIterationRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Gets the properties associated with a key phrases detection job. Use this @@ -1817,10 +2266,32 @@ Future detectDominantLanguageAsync( /** *

- * Inspects text for named entities, and returns information about them. For - * more information, about named entities, see Entities in the Comprehend Developer Guide. + * Detects named entities in input text when you use the pre-trained model. + * Detects custom entities if you have a custom entity recognition model. + *

+ *

+ * When detecting named entities using the pre-trained model, use plain text + * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. + *

+ *

+ * When you use a custom entity recognition model, you can input plain text + * or you can upload a single-page input document (text, PDF, Word, or + * image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors for + * each error. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. *

* * @param detectEntitiesRequest @@ -1844,11 +2315,33 @@ Future detectEntitiesAsync(DetectEntitiesRequest detectEnt /** *

- * Inspects text for named entities, and returns information about them. For - * more information, about named entities, see + *

+ * When detecting named entities using the pre-trained model, use plain text + * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. *

+ *

+ * When you use a custom entity recognition model, you can input plain text + * or you can upload a single-page input document (text, PDF, Word, or + * image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors for + * each error. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param detectEntitiesRequest * @param asyncHandler Asynchronous callback handler for events in the @@ -2169,15 +2662,17 @@ Future detectTargetedSentimentAsync( /** *

* Creates a new custom model that replicates a source custom model that you - * import. The source model can be in your AWS account or another one. + * import. The source model can be in your Amazon Web Services account or + * another one. *

*

- * If the source model is in another AWS account, then it must have a - * resource-based policy that authorizes you to import it. + * If the source model is in another Amazon Web Services account, then it + * must have a resource-based policy that authorizes you to import it. *

*

- * The source model must be in the same AWS region that you're using when - * you import. You can't import a model that's in a different region. + * The source model must be in the same Amazon Web Services Region that + * you're using when you import. You can't import a model that's in a + * different Region. *

* * @param importModelRequest @@ -2206,15 +2701,17 @@ Future importModelAsync(ImportModelRequest importModelRequest /** *

* Creates a new custom model that replicates a source custom model that you - * import. The source model can be in your AWS account or another one. + * import. The source model can be in your Amazon Web Services account or + * another one. *

*

- * If the source model is in another AWS account, then it must have a - * resource-based policy that authorizes you to import it. + * If the source model is in another Amazon Web Services account, then it + * must have a resource-based policy that authorizes you to import it. *

*

- * The source model must be in the same AWS region that you're using when - * you import. You can't import a model that's in a different region. + * The source model must be in the same Amazon Web Services Region that + * you're using when you import. You can't import a model that's in a + * different Region. *

* * @param importModelRequest @@ -2245,6 +2742,65 @@ Future importModelAsync(ImportModelRequest importModelRequest AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * List the datasets that you have configured in this Region. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listDatasetsRequest + * @return A Java Future object containing the response from the + * ListDatasets service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listDatasetsAsync(ListDatasetsRequest listDatasetsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * List the datasets that you have configured in this Region. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listDatasetsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListDatasets service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listDatasetsAsync(ListDatasetsRequest listDatasetsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Gets a list of the documentation classification jobs that you have @@ -2760,6 +3316,120 @@ Future listEventsDetectionJobsAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Information about the history of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listFlywheelIterationHistoryRequest + * @return A Java Future object containing the response from the + * ListFlywheelIterationHistory service method, as returned by + * Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listFlywheelIterationHistoryAsync( + ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Information about the history of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listFlywheelIterationHistoryRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListFlywheelIterationHistory service method, as returned by + * Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listFlywheelIterationHistoryAsync( + ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Gets a list of the flywheels that you have created. + *

+ * + * @param listFlywheelsRequest + * @return A Java Future object containing the response from the + * ListFlywheels service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listFlywheelsAsync(ListFlywheelsRequest listFlywheelsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Gets a list of the flywheels that you have created. + *

+ * + * @param listFlywheelsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListFlywheels service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listFlywheelsAsync(ListFlywheelsRequest listFlywheelsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Get a list of key phrase detection jobs that you have submitted. @@ -3091,8 +3761,9 @@ Future listTopicsDetectionJobsAsync( /** *

* Attaches a resource-based policy to a custom model. You can use this - * policy to authorize an entity in another AWS account to import the custom - * model, which replicates it in Amazon Comprehend in their account. + * policy to authorize an entity in another Amazon Web Services account to + * import the custom model, which replicates it in Amazon Comprehend in + * their account. *

* * @param putResourcePolicyRequest @@ -3117,8 +3788,9 @@ Future putResourcePolicyAsync( /** *

* Attaches a resource-based policy to a custom model. You can use this - * policy to authorize an entity in another AWS account to import the custom - * model, which replicates it in Amazon Comprehend in their account. + * policy to authorize an entity in another Amazon Web Services account to + * import the custom model, which replicates it in Amazon Comprehend in + * their account. *

* * @param putResourcePolicyRequest @@ -3147,8 +3819,9 @@ Future putResourcePolicyAsync( /** *

- * Starts an asynchronous document classification job. Use the operation to - * track the progress of the job. + * Starts an asynchronous document classification job. Use the + * DescribeDocumentClassificationJob operation to track the + * progress of the job. *

* * @param startDocumentClassificationJobRequest @@ -3161,6 +3834,7 @@ Future putResourcePolicyAsync( * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3176,8 +3850,9 @@ Future startDocumentClassificationJobAsync /** *

- * Starts an asynchronous document classification job. Use the operation to - * track the progress of the job. + * Starts an asynchronous document classification job. Use the + * DescribeDocumentClassificationJob operation to track the + * progress of the job. *

* * @param startDocumentClassificationJobRequest @@ -3194,6 +3869,7 @@ Future startDocumentClassificationJobAsync * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3222,6 +3898,7 @@ Future startDocumentClassificationJobAsync * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3253,6 +3930,7 @@ Future startDominantLanguageDetectionJo * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3289,6 +3967,7 @@ Future startDominantLanguageDetectionJo * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3328,6 +4007,7 @@ Future startEntitiesDetectionJobAsync( * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3355,6 +4035,7 @@ Future startEntitiesDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3385,6 +4066,7 @@ Future startEventsDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3399,6 +4081,71 @@ Future startEventsDetectionJobAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Start the flywheel iteration.This operation uses any new datasets to + * train a new model version. For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param startFlywheelIterationRequest + * @return A Java Future object containing the response from the + * StartFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future startFlywheelIterationAsync( + StartFlywheelIterationRequest startFlywheelIterationRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Start the flywheel iteration.This operation uses any new datasets to + * train a new model version. For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param startFlywheelIterationRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * StartFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future startFlywheelIterationAsync( + StartFlywheelIterationRequest startFlywheelIterationRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Starts an asynchronous key phrase detection job for a collection of @@ -3413,6 +4160,7 @@ Future startEventsDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3444,6 +4192,7 @@ Future startKeyPhrasesDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3472,6 +4221,7 @@ Future startKeyPhrasesDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3503,6 +4253,7 @@ Future startPiiEntitiesDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3531,6 +4282,7 @@ Future startPiiEntitiesDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3562,6 +4314,7 @@ Future startSentimentDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3579,7 +4332,8 @@ Future startSentimentDetectionJobAsync( /** *

* Starts an asynchronous targeted sentiment detection job for a collection - * of documents. Use the operation to track the status of a job. + * of documents. Use the DescribeTargetedSentimentDetectionJob + * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest @@ -3590,6 +4344,7 @@ Future startSentimentDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3606,7 +4361,8 @@ Future startTargetedSentimentDetection /** *

* Starts an asynchronous targeted sentiment detection job for a collection - * of documents. Use the operation to track the status of a job. + * of documents. Use the DescribeTargetedSentimentDetectionJob + * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest @@ -3621,6 +4377,7 @@ Future startTargetedSentimentDetection * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3650,6 +4407,7 @@ Future startTargetedSentimentDetection * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3682,6 +4440,7 @@ Future startTopicsDetectionJobAsync( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4544,4 +5303,57 @@ Future updateEndpointAsync(UpdateEndpointRequest updateEnd AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Update the configuration information for an existing flywheel. + *

+ * + * @param updateFlywheelRequest + * @return A Java Future object containing the response from the + * UpdateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateFlywheelAsync(UpdateFlywheelRequest updateFlywheelRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Update the configuration information for an existing flywheel. + *

+ * + * @param updateFlywheelRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * UpdateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateFlywheelAsync(UpdateFlywheelRequest updateFlywheelRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + } diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsyncClient.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsyncClient.java index 994485b75c2..01346c0b078 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsyncClient.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsyncClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -33,10 +33,10 @@ /** * Interface for accessing Amazon Comprehend asynchronously. *

- * Amazon Comprehend is an AWS service for gaining insight into the content of - * documents. Use these actions to determine the topics contained in your - * documents, the topics they discuss, the predominant sentiment expressed in - * them, the predominant language used, and more. + * Amazon Comprehend is an Amazon Web Services service for gaining insight into + * the content of documents. Use these actions to determine the topics contained + * in your documents, the topics they discuss, the predominant sentiment + * expressed in them, the predominant language used, and more. *

**/ public class AmazonComprehendAsyncClient extends AmazonComprehendClient implements @@ -742,6 +742,23 @@ public BatchDetectTargetedSentimentResult call() throws Exception { * document in real-time, using a previously created and trained custom * model and an endpoint. *

+ *

+ * You can input plain text or you can upload a single-page input document + * (text, PDF, Word, or image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors that + * describes the errors. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param classifyDocumentRequest * @return A Java Future object containing the response from the @@ -775,6 +792,23 @@ public ClassifyDocumentResult call() throws Exception { * document in real-time, using a previously created and trained custom * model and an endpoint. *

+ *

+ * You can input plain text or you can upload a single-page input document + * (text, PDF, Word, or image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors that + * describes the errors. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param classifyDocumentRequest * @return A Java Future object containing the response from the @@ -886,15 +920,95 @@ public ContainsPiiEntitiesResult call() throws Exception { }); } + /** + *

+ * Creates a dataset to upload training or test data for a model associated + * with a flywheel. For more information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createDatasetRequest + * @return A Java Future object containing the response from the + * CreateDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createDatasetAsync( + final CreateDatasetRequest createDatasetRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreateDatasetResult call() throws Exception { + return createDataset(createDatasetRequest); + } + }); + } + + /** + *

+ * Creates a dataset to upload training or test data for a model associated + * with a flywheel. For more information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createDatasetRequest + * @return A Java Future object containing the response from the + * CreateDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createDatasetAsync( + final CreateDatasetRequest createDatasetRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateDatasetResult call() throws Exception { + CreateDatasetResult result = null; + try { + result = createDataset(createDatasetRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createDatasetRequest, result); + return result; + } + }); + } + /** *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training - * documents that labeled with the categories that you want to use. After - * the classifier is trained you can use it to categorize a set of labeled - * documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide. + * documents that are labeled with the categories that you want to use. For + * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest @@ -931,11 +1045,10 @@ public CreateDocumentClassifierResult call() throws Exception { *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training - * documents that labeled with the categories that you want to use. After - * the classifier is trained you can use it to categorize a set of labeled - * documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide. + * documents that are labeled with the categories that you want to use. For + * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest @@ -1066,7 +1179,7 @@ public CreateEndpointResult call() throws Exception { *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check - * job status using the API. + * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest @@ -1103,7 +1216,7 @@ public CreateEntityRecognizerResult call() throws Exception { *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check - * job status using the API. + * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest @@ -1145,6 +1258,131 @@ public CreateEntityRecognizerResult call() throws Exception { }); } + /** + *

+ * A flywheel is an Amazon Web Services resource that orchestrates the + * ongoing training of a model for custom classification or custom entity + * recognition. You can create a flywheel to start with an existing trained + * model, or Comprehend can create and train a new model. + *

+ *

+ * When you create the flywheel, Comprehend creates a data lake in your + * account. The data lake holds the training data and test data for all + * versions of the model. + *

+ *

+ * To use a flywheel with an existing trained model, you specify the active + * model version. Comprehend copies the model's training data and test data + * into the flywheel's data lake. + *

+ *

+ * To use the flywheel with a new model, you need to provide a dataset for + * training data (and optional test data) when you create the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createFlywheelRequest + * @return A Java Future object containing the response from the + * CreateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws UnsupportedLanguageException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createFlywheelAsync( + final CreateFlywheelRequest createFlywheelRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreateFlywheelResult call() throws Exception { + return createFlywheel(createFlywheelRequest); + } + }); + } + + /** + *

+ * A flywheel is an Amazon Web Services resource that orchestrates the + * ongoing training of a model for custom classification or custom entity + * recognition. You can create a flywheel to start with an existing trained + * model, or Comprehend can create and train a new model. + *

+ *

+ * When you create the flywheel, Comprehend creates a data lake in your + * account. The data lake holds the training data and test data for all + * versions of the model. + *

+ *

+ * To use a flywheel with an existing trained model, you specify the active + * model version. Comprehend copies the model's training data and test data + * into the flywheel's data lake. + *

+ *

+ * To use the flywheel with a new model, you need to provide a dataset for + * training data (and optional test data) when you create the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createFlywheelRequest + * @return A Java Future object containing the response from the + * CreateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws UnsupportedLanguageException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createFlywheelAsync( + final CreateFlywheelRequest createFlywheelRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateFlywheelResult call() throws Exception { + CreateFlywheelResult result = null; + try { + result = createFlywheel(createFlywheelRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createFlywheelRequest, result); + return result; + } + }); + } + /** *

* Deletes a previously created document classifier @@ -1418,6 +1656,91 @@ public DeleteEntityRecognizerResult call() throws Exception { }); } + /** + *

+ * Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does + * not delete the data lake or the model associated with the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param deleteFlywheelRequest + * @return A Java Future object containing the response from the + * DeleteFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws ResourceInUseException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteFlywheelAsync( + final DeleteFlywheelRequest deleteFlywheelRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DeleteFlywheelResult call() throws Exception { + return deleteFlywheel(deleteFlywheelRequest); + } + }); + } + + /** + *

+ * Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does + * not delete the data lake or the model associated with the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param deleteFlywheelRequest + * @return A Java Future object containing the response from the + * DeleteFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws ResourceInUseException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteFlywheelAsync( + final DeleteFlywheelRequest deleteFlywheelRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteFlywheelResult call() throws Exception { + DeleteFlywheelResult result = null; + try { + result = deleteFlywheel(deleteFlywheelRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteFlywheelRequest, result); + return result; + } + }); + } + /** *

* Deletes a resource-based policy that is attached to a custom model. @@ -1487,6 +1810,81 @@ public DeleteResourcePolicyResult call() throws Exception { }); } + /** + *

+ * Returns information about the dataset that you specify. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeDatasetRequest + * @return A Java Future object containing the response from the + * DescribeDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeDatasetAsync( + final DescribeDatasetRequest describeDatasetRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribeDatasetResult call() throws Exception { + return describeDataset(describeDatasetRequest); + } + }); + } + + /** + *

+ * Returns information about the dataset that you specify. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeDatasetRequest + * @return A Java Future object containing the response from the + * DescribeDataset service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeDatasetAsync( + final DescribeDatasetRequest describeDatasetRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeDatasetResult call() throws Exception { + DescribeDatasetResult result = null; + try { + result = describeDataset(describeDatasetRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(describeDatasetRequest, result); + return result; + } + }); + } + /** *

* Gets the properties associated with a document classification job. Use @@ -2000,6 +2398,160 @@ public DescribeEventsDetectionJobResult call() throws Exception { }); } + /** + *

+ * Provides configuration information about the flywheel. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelRequest + * @return A Java Future object containing the response from the + * DescribeFlywheel service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeFlywheelAsync( + final DescribeFlywheelRequest describeFlywheelRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribeFlywheelResult call() throws Exception { + return describeFlywheel(describeFlywheelRequest); + } + }); + } + + /** + *

+ * Provides configuration information about the flywheel. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelRequest + * @return A Java Future object containing the response from the + * DescribeFlywheel service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeFlywheelAsync( + final DescribeFlywheelRequest describeFlywheelRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeFlywheelResult call() throws Exception { + DescribeFlywheelResult result = null; + try { + result = describeFlywheel(describeFlywheelRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(describeFlywheelRequest, result); + return result; + } + }); + } + + /** + *

+ * Retrieve the configuration properties of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelIterationRequest + * @return A Java Future object containing the response from the + * DescribeFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeFlywheelIterationAsync( + final DescribeFlywheelIterationRequest describeFlywheelIterationRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeFlywheelIterationResult call() throws Exception { + return describeFlywheelIteration(describeFlywheelIterationRequest); + } + }); + } + + /** + *

+ * Retrieve the configuration properties of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelIterationRequest + * @return A Java Future object containing the response from the + * DescribeFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeFlywheelIterationAsync( + final DescribeFlywheelIterationRequest describeFlywheelIterationRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeFlywheelIterationResult call() throws Exception { + DescribeFlywheelIterationResult result = null; + try { + result = describeFlywheelIteration(describeFlywheelIterationRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(describeFlywheelIterationRequest, result); + return result; + } + }); + } + /** *

* Gets the properties associated with a key phrases detection job. Use this @@ -2513,11 +3065,33 @@ public DetectDominantLanguageResult call() throws Exception { /** *

- * Inspects text for named entities, and returns information about them. For - * more information, about named entities, see + *

+ * When detecting named entities using the pre-trained model, use plain text + * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. *

+ *

+ * When you use a custom entity recognition model, you can input plain text + * or you can upload a single-page input document (text, PDF, Word, or + * image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors for + * each error. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param detectEntitiesRequest * @return A Java Future object containing the response from the @@ -2547,11 +3121,33 @@ public DetectEntitiesResult call() throws Exception { /** *

- * Inspects text for named entities, and returns information about them. For - * more information, about named entities, see + *

+ * When detecting named entities using the pre-trained model, use plain text + * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. *

+ *

+ * When you use a custom entity recognition model, you can input plain text + * or you can upload a single-page input document (text, PDF, Word, or + * image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors for + * each error. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param detectEntitiesRequest * @return A Java Future object containing the response from the @@ -2966,15 +3562,17 @@ public DetectTargetedSentimentResult call() throws Exception { /** *

* Creates a new custom model that replicates a source custom model that you - * import. The source model can be in your AWS account or another one. + * import. The source model can be in your Amazon Web Services account or + * another one. *

*

- * If the source model is in another AWS account, then it must have a - * resource-based policy that authorizes you to import it. + * If the source model is in another Amazon Web Services account, then it + * must have a resource-based policy that authorizes you to import it. *

*

- * The source model must be in the same AWS region that you're using when - * you import. You can't import a model that's in a different region. + * The source model must be in the same Amazon Web Services Region that + * you're using when you import. You can't import a model that's in a + * different Region. *

* * @param importModelRequest @@ -3008,29 +3606,107 @@ public ImportModelResult call() throws Exception { /** *

- * Creates a new custom model that replicates a source custom model that you - * import. The source model can be in your AWS account or another one. - *

- *

- * If the source model is in another AWS account, then it must have a - * resource-based policy that authorizes you to import it. - *

- *

- * The source model must be in the same AWS region that you're using when - * you import. You can't import a model that's in a different region. + * Creates a new custom model that replicates a source custom model that you + * import. The source model can be in your Amazon Web Services account or + * another one. + *

+ *

+ * If the source model is in another Amazon Web Services account, then it + * must have a resource-based policy that authorizes you to import it. + *

+ *

+ * The source model must be in the same Amazon Web Services Region that + * you're using when you import. You can't import a model that's in a + * different Region. + *

+ * + * @param importModelRequest + * @return A Java Future object containing the response from the ImportModel + * service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws ResourceUnavailableException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws KmsKeyValidationException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future importModelAsync(final ImportModelRequest importModelRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ImportModelResult call() throws Exception { + ImportModelResult result = null; + try { + result = importModel(importModelRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(importModelRequest, result); + return result; + } + }); + } + + /** + *

+ * List the datasets that you have configured in this Region. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listDatasetsRequest + * @return A Java Future object containing the response from the + * ListDatasets service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future listDatasetsAsync( + final ListDatasetsRequest listDatasetsRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListDatasetsResult call() throws Exception { + return listDatasets(listDatasetsRequest); + } + }); + } + + /** + *

+ * List the datasets that you have configured in this Region. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. *

* - * @param importModelRequest - * @return A Java Future object containing the response from the ImportModel - * service method, as returned by Amazon Comprehend. + * @param listDatasetsRequest + * @return A Java Future object containing the response from the + * ListDatasets service method, as returned by Amazon Comprehend. * @throws InvalidRequestException - * @throws ResourceNotFoundException - * @throws ResourceInUseException - * @throws ResourceUnavailableException - * @throws TooManyTagsException * @throws TooManyRequestsException - * @throws ResourceLimitExceededException - * @throws KmsKeyValidationException + * @throws InvalidFilterException + * @throws ResourceNotFoundException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3040,19 +3716,20 @@ public ImportModelResult call() throws Exception { * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ - public Future importModelAsync(final ImportModelRequest importModelRequest, - final AsyncHandler asyncHandler) + public Future listDatasetsAsync( + final ListDatasetsRequest listDatasetsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ImportModelResult call() throws Exception { - ImportModelResult result = null; + return executorService.submit(new Callable() { + public ListDatasetsResult call() throws Exception { + ListDatasetsResult result = null; try { - result = importModel(importModelRequest); + result = listDatasets(listDatasetsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(importModelRequest, result); + asyncHandler.onSuccess(listDatasetsRequest, result); return result; } }); @@ -3719,6 +4396,154 @@ public ListEventsDetectionJobsResult call() throws Exception { }); } + /** + *

+ * Information about the history of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listFlywheelIterationHistoryRequest + * @return A Java Future object containing the response from the + * ListFlywheelIterationHistory service method, as returned by + * Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future listFlywheelIterationHistoryAsync( + final ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListFlywheelIterationHistoryResult call() throws Exception { + return listFlywheelIterationHistory(listFlywheelIterationHistoryRequest); + } + }); + } + + /** + *

+ * Information about the history of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listFlywheelIterationHistoryRequest + * @return A Java Future object containing the response from the + * ListFlywheelIterationHistory service method, as returned by + * Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future listFlywheelIterationHistoryAsync( + final ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListFlywheelIterationHistoryResult call() throws Exception { + ListFlywheelIterationHistoryResult result = null; + try { + result = listFlywheelIterationHistory(listFlywheelIterationHistoryRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(listFlywheelIterationHistoryRequest, result); + return result; + } + }); + } + + /** + *

+ * Gets a list of the flywheels that you have created. + *

+ * + * @param listFlywheelsRequest + * @return A Java Future object containing the response from the + * ListFlywheels service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future listFlywheelsAsync( + final ListFlywheelsRequest listFlywheelsRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListFlywheelsResult call() throws Exception { + return listFlywheels(listFlywheelsRequest); + } + }); + } + + /** + *

+ * Gets a list of the flywheels that you have created. + *

+ * + * @param listFlywheelsRequest + * @return A Java Future object containing the response from the + * ListFlywheels service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future listFlywheelsAsync( + final ListFlywheelsRequest listFlywheelsRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListFlywheelsResult call() throws Exception { + ListFlywheelsResult result = null; + try { + result = listFlywheels(listFlywheelsRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(listFlywheelsRequest, result); + return result; + } + }); + } + /** *

* Get a list of key phrase detection jobs that you have submitted. @@ -4146,8 +4971,9 @@ public ListTopicsDetectionJobsResult call() throws Exception { /** *

* Attaches a resource-based policy to a custom model. You can use this - * policy to authorize an entity in another AWS account to import the custom - * model, which replicates it in Amazon Comprehend in their account. + * policy to authorize an entity in another Amazon Web Services account to + * import the custom model, which replicates it in Amazon Comprehend in + * their account. *

* * @param putResourcePolicyRequest @@ -4178,8 +5004,9 @@ public PutResourcePolicyResult call() throws Exception { /** *

* Attaches a resource-based policy to a custom model. You can use this - * policy to authorize an entity in another AWS account to import the custom - * model, which replicates it in Amazon Comprehend in their account. + * policy to authorize an entity in another Amazon Web Services account to + * import the custom model, which replicates it in Amazon Comprehend in + * their account. *

* * @param putResourcePolicyRequest @@ -4218,8 +5045,9 @@ public PutResourcePolicyResult call() throws Exception { /** *

- * Starts an asynchronous document classification job. Use the operation to - * track the progress of the job. + * Starts an asynchronous document classification job. Use the + * DescribeDocumentClassificationJob operation to track the + * progress of the job. *

* * @param startDocumentClassificationJobRequest @@ -4232,6 +5060,7 @@ public PutResourcePolicyResult call() throws Exception { * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4253,8 +5082,9 @@ public StartDocumentClassificationJobResult call() throws Exception { /** *

- * Starts an asynchronous document classification job. Use the operation to - * track the progress of the job. + * Starts an asynchronous document classification job. Use the + * DescribeDocumentClassificationJob operation to track the + * progress of the job. *

* * @param startDocumentClassificationJobRequest @@ -4267,6 +5097,7 @@ public StartDocumentClassificationJobResult call() throws Exception { * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4309,6 +5140,7 @@ public StartDocumentClassificationJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4342,6 +5174,7 @@ public StartDominantLanguageDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4392,6 +5225,7 @@ public StartDominantLanguageDetectionJobResult call() throws Exception { * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4433,6 +5267,7 @@ public StartEntitiesDetectionJobResult call() throws Exception { * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4474,6 +5309,7 @@ public StartEntitiesDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4506,6 +5342,7 @@ public StartEventsDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4534,6 +5371,87 @@ public StartEventsDetectionJobResult call() throws Exception { }); } + /** + *

+ * Start the flywheel iteration.This operation uses any new datasets to + * train a new model version. For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param startFlywheelIterationRequest + * @return A Java Future object containing the response from the + * StartFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future startFlywheelIterationAsync( + final StartFlywheelIterationRequest startFlywheelIterationRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public StartFlywheelIterationResult call() throws Exception { + return startFlywheelIteration(startFlywheelIterationRequest); + } + }); + } + + /** + *

+ * Start the flywheel iteration.This operation uses any new datasets to + * train a new model version. For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param startFlywheelIterationRequest + * @return A Java Future object containing the response from the + * StartFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future startFlywheelIterationAsync( + final StartFlywheelIterationRequest startFlywheelIterationRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public StartFlywheelIterationResult call() throws Exception { + StartFlywheelIterationResult result = null; + try { + result = startFlywheelIteration(startFlywheelIterationRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(startFlywheelIterationRequest, result); + return result; + } + }); + } + /** *

* Starts an asynchronous key phrase detection job for a collection of @@ -4548,6 +5466,7 @@ public StartEventsDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4581,6 +5500,7 @@ public StartKeyPhrasesDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4623,6 +5543,7 @@ public StartKeyPhrasesDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4656,6 +5577,7 @@ public StartPiiEntitiesDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4698,6 +5620,7 @@ public StartPiiEntitiesDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4731,6 +5654,7 @@ public StartSentimentDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4762,7 +5686,8 @@ public StartSentimentDetectionJobResult call() throws Exception { /** *

* Starts an asynchronous targeted sentiment detection job for a collection - * of documents. Use the operation to track the status of a job. + * of documents. Use the DescribeTargetedSentimentDetectionJob + * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest @@ -4773,6 +5698,7 @@ public StartSentimentDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4795,7 +5721,8 @@ public StartTargetedSentimentDetectionJobResult call() throws Exception { /** *

* Starts an asynchronous targeted sentiment detection job for a collection - * of documents. Use the operation to track the status of a job. + * of documents. Use the DescribeTargetedSentimentDetectionJob + * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest @@ -4806,6 +5733,7 @@ public StartTargetedSentimentDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4849,6 +5777,7 @@ public StartTargetedSentimentDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4883,6 +5812,7 @@ public StartTopicsDetectionJobResult call() throws Exception { * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5955,4 +6885,75 @@ public UpdateEndpointResult call() throws Exception { }); } + /** + *

+ * Update the configuration information for an existing flywheel. + *

+ * + * @param updateFlywheelRequest + * @return A Java Future object containing the response from the + * UpdateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateFlywheelAsync( + final UpdateFlywheelRequest updateFlywheelRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public UpdateFlywheelResult call() throws Exception { + return updateFlywheel(updateFlywheelRequest); + } + }); + } + + /** + *

+ * Update the configuration information for an existing flywheel. + *

+ * + * @param updateFlywheelRequest + * @return A Java Future object containing the response from the + * UpdateFlywheel service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateFlywheelAsync( + final UpdateFlywheelRequest updateFlywheelRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public UpdateFlywheelResult call() throws Exception { + UpdateFlywheelResult result = null; + try { + result = updateFlywheel(updateFlywheelRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(updateFlywheelRequest, result); + return result; + } + }); + } + } diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendClient.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendClient.java index 09df1f82546..da6fae95932 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendClient.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -35,10 +35,10 @@ * client are blocking, and will not return until the service call completes. *

*

- * Amazon Comprehend is an AWS service for gaining insight into the content of - * documents. Use these actions to determine the topics contained in your - * documents, the topics they discuss, the predominant sentiment expressed in - * them, the predominant language used, and more. + * Amazon Comprehend is an Amazon Web Services service for gaining insight into + * the content of documents. Use these actions to determine the topics contained + * in your documents, the topics they discuss, the predominant sentiment + * expressed in them, the predominant language used, and more. *

*/ public class AmazonComprehendClient extends AmazonWebServiceClient implements AmazonComprehend { @@ -705,6 +705,23 @@ public BatchDetectTargetedSentimentResult batchDetectTargetedSentiment( * document in real-time, using a previously created and trained custom * model and an endpoint. *

+ *

+ * You can input plain text or you can upload a single-page input document + * (text, PDF, Word, or image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors that + * describes the errors. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param classifyDocumentRequest * @return classifyDocumentResult The response from the ClassifyDocument @@ -804,15 +821,69 @@ public ContainsPiiEntitiesResult containsPiiEntities( } } + /** + *

+ * Creates a dataset to upload training or test data for a model associated + * with a flywheel. For more information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createDatasetRequest + * @return createDatasetResult The response from the CreateDataset service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public CreateDatasetResult createDataset(CreateDatasetRequest createDatasetRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(createDatasetRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new CreateDatasetRequestMarshaller().marshall(createDatasetRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new CreateDatasetResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training - * documents that labeled with the categories that you want to use. After - * the classifier is trained you can use it to categorize a set of labeled - * documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide. + * documents that are labeled with the categories that you want to use. For + * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest @@ -927,7 +998,7 @@ public CreateEndpointResult createEndpoint(CreateEndpointRequest createEndpointR *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check - * job status using the API. + * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest @@ -981,6 +1052,83 @@ public CreateEntityRecognizerResult createEntityRecognizer( } } + /** + *

+ * A flywheel is an Amazon Web Services resource that orchestrates the + * ongoing training of a model for custom classification or custom entity + * recognition. You can create a flywheel to start with an existing trained + * model, or Comprehend can create and train a new model. + *

+ *

+ * When you create the flywheel, Comprehend creates a data lake in your + * account. The data lake holds the training data and test data for all + * versions of the model. + *

+ *

+ * To use a flywheel with an existing trained model, you specify the active + * model version. Comprehend copies the model's training data and test data + * into the flywheel's data lake. + *

+ *

+ * To use the flywheel with a new model, you need to provide a dataset for + * training data (and optional test data) when you create the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param createFlywheelRequest + * @return createFlywheelResult The response from the CreateFlywheel service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws ResourceInUseException + * @throws TooManyTagsException + * @throws TooManyRequestsException + * @throws ResourceLimitExceededException + * @throws UnsupportedLanguageException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public CreateFlywheelResult createFlywheel(CreateFlywheelRequest createFlywheelRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(createFlywheelRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new CreateFlywheelRequestMarshaller().marshall(createFlywheelRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new CreateFlywheelResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Deletes a previously created document classifier @@ -1165,6 +1313,63 @@ public DeleteEntityRecognizerResult deleteEntityRecognizer( } } + /** + *

+ * Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does + * not delete the data lake or the model associated with the flywheel. + *

+ *

+ * For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param deleteFlywheelRequest + * @return deleteFlywheelResult The response from the DeleteFlywheel service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws ResourceUnavailableException + * @throws ResourceInUseException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public DeleteFlywheelResult deleteFlywheel(DeleteFlywheelRequest deleteFlywheelRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(deleteFlywheelRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DeleteFlywheelRequestMarshaller().marshall(deleteFlywheelRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DeleteFlywheelResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Deletes a resource-based policy that is attached to a custom model. @@ -1216,6 +1421,58 @@ public DeleteResourcePolicyResult deleteResourcePolicy( } } + /** + *

+ * Returns information about the dataset that you specify. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeDatasetRequest + * @return describeDatasetResult The response from the DescribeDataset + * service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeDatasetResult describeDataset(DescribeDatasetRequest describeDatasetRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeDatasetRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeDatasetRequestMarshaller().marshall(describeDatasetRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeDatasetResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Gets the properties associated with a document classification job. Use @@ -1585,6 +1842,113 @@ public DescribeEventsDetectionJobResult describeEventsDetectionJob( } } + /** + *

+ * Provides configuration information about the flywheel. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelRequest + * @return describeFlywheelResult The response from the DescribeFlywheel + * service method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeFlywheelResult describeFlywheel(DescribeFlywheelRequest describeFlywheelRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeFlywheelRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeFlywheelRequestMarshaller().marshall(describeFlywheelRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeFlywheelResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

+ * Retrieve the configuration properties of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param describeFlywheelIterationRequest + * @return describeFlywheelIterationResult The response from the + * DescribeFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeFlywheelIterationResult describeFlywheelIteration( + DescribeFlywheelIterationRequest describeFlywheelIterationRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeFlywheelIterationRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeFlywheelIterationRequestMarshaller() + .marshall(describeFlywheelIterationRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeFlywheelIterationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Gets the properties associated with a key phrases detection job. Use this @@ -1958,11 +2322,33 @@ public DetectDominantLanguageResult detectDominantLanguage( /** *

- * Inspects text for named entities, and returns information about them. For - * more information, about named entities, see + *

+ * When detecting named entities using the pre-trained model, use plain text + * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. *

+ *

+ * When you use a custom entity recognition model, you can input plain text + * or you can upload a single-page input document (text, PDF, Word, or + * image). + *

+ *

+ * If the system detects errors while processing a page in the input + * document, the API response includes an entry in Errors for + * each error. + *

+ *

+ * If the system detects a document-level error in your input document, the + * API returns an InvalidRequestException error response. For + * details about this exception, see Errors in semi-structured documents in the Comprehend Developer + * Guide. + *

* * @param detectEntitiesRequest * @return detectEntitiesResult The response from the DetectEntities service @@ -2274,15 +2660,17 @@ public DetectTargetedSentimentResult detectTargetedSentiment( /** *

* Creates a new custom model that replicates a source custom model that you - * import. The source model can be in your AWS account or another one. + * import. The source model can be in your Amazon Web Services account or + * another one. *

*

- * If the source model is in another AWS account, then it must have a - * resource-based policy that authorizes you to import it. + * If the source model is in another Amazon Web Services account, then it + * must have a resource-based policy that authorizes you to import it. *

*

- * The source model must be in the same AWS region that you're using when - * you import. You can't import a model that's in a different region. + * The source model must be in the same Amazon Web Services Region that + * you're using when you import. You can't import a model that's in a + * different Region. *

* * @param importModelRequest @@ -2334,6 +2722,59 @@ public ImportModelResult importModel(ImportModelRequest importModelRequest) } } + /** + *

+ * List the datasets that you have configured in this Region. For more + * information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listDatasetsRequest + * @return listDatasetsResult The response from the ListDatasets service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public ListDatasetsResult listDatasets(ListDatasetsRequest listDatasetsRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(listDatasetsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListDatasetsRequestMarshaller().marshall(listDatasetsRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new ListDatasetsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Gets a list of the documentation classification jobs that you have @@ -2811,6 +3252,111 @@ public ListEventsDetectionJobsResult listEventsDetectionJobs( } } + /** + *

+ * Information about the history of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param listFlywheelIterationHistoryRequest + * @return listFlywheelIterationHistoryResult The response from the + * ListFlywheelIterationHistory service method, as returned by + * Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public ListFlywheelIterationHistoryResult listFlywheelIterationHistory( + ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(listFlywheelIterationHistoryRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListFlywheelIterationHistoryRequestMarshaller() + .marshall(listFlywheelIterationHistoryRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new ListFlywheelIterationHistoryResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

+ * Gets a list of the flywheels that you have created. + *

+ * + * @param listFlywheelsRequest + * @return listFlywheelsResult The response from the ListFlywheels service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws InvalidFilterException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public ListFlywheelsResult listFlywheels(ListFlywheelsRequest listFlywheelsRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(listFlywheelsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListFlywheelsRequestMarshaller().marshall(listFlywheelsRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new ListFlywheelsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Get a list of key phrase detection jobs that you have submitted. @@ -3125,8 +3671,9 @@ public ListTopicsDetectionJobsResult listTopicsDetectionJobs( /** *

* Attaches a resource-based policy to a custom model. You can use this - * policy to authorize an entity in another AWS account to import the custom - * model, which replicates it in Amazon Comprehend in their account. + * policy to authorize an entity in another Amazon Web Services account to + * import the custom model, which replicates it in Amazon Comprehend in + * their account. *

* * @param putResourcePolicyRequest @@ -3176,8 +3723,9 @@ public PutResourcePolicyResult putResourcePolicy( /** *

- * Starts an asynchronous document classification job. Use the operation to - * track the progress of the job. + * Starts an asynchronous document classification job. Use the + * DescribeDocumentClassificationJob operation to track the + * progress of the job. *

* * @param startDocumentClassificationJobRequest @@ -3190,6 +3738,7 @@ public PutResourcePolicyResult putResourcePolicy( * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3244,6 +3793,7 @@ public StartDocumentClassificationJobResult startDocumentClassificationJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3306,6 +3856,7 @@ public StartDominantLanguageDetectionJobResult startDominantLanguageDetectionJob * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3359,6 +3910,7 @@ public StartEntitiesDetectionJobResult startEntitiesDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3399,6 +3951,63 @@ public StartEventsDetectionJobResult startEventsDetectionJob( } } + /** + *

+ * Start the flywheel iteration.This operation uses any new datasets to + * train a new model version. For more information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ * + * @param startFlywheelIterationRequest + * @return startFlywheelIterationResult The response from the + * StartFlywheelIteration service method, as returned by Amazon + * Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public StartFlywheelIterationResult startFlywheelIteration( + StartFlywheelIterationRequest startFlywheelIterationRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(startFlywheelIterationRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new StartFlywheelIterationRequestMarshaller() + .marshall(startFlywheelIterationRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new StartFlywheelIterationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

* Starts an asynchronous key phrase detection job for a collection of @@ -3413,6 +4022,7 @@ public StartEventsDetectionJobResult startEventsDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3467,6 +4077,7 @@ public StartKeyPhrasesDetectionJobResult startKeyPhrasesDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3521,6 +4132,7 @@ public StartPiiEntitiesDetectionJobResult startPiiEntitiesDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3564,7 +4176,8 @@ public StartSentimentDetectionJobResult startSentimentDetectionJob( /** *

* Starts an asynchronous targeted sentiment detection job for a collection - * of documents. Use the operation to track the status of a job. + * of documents. Use the DescribeTargetedSentimentDetectionJob + * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest @@ -3575,6 +4188,7 @@ public StartSentimentDetectionJobResult startSentimentDetectionJob( * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3630,6 +4244,7 @@ public StartTargetedSentimentDetectionJobResult startTargetedSentimentDetectionJ * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException + * @throws ResourceInUseException * @throws InternalServerException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4385,6 +5000,56 @@ public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest updateEndpointR } } + /** + *

+ * Update the configuration information for an existing flywheel. + *

+ * + * @param updateFlywheelRequest + * @return updateFlywheelResult The response from the UpdateFlywheel service + * method, as returned by Amazon Comprehend. + * @throws InvalidRequestException + * @throws TooManyRequestsException + * @throws KmsKeyValidationException + * @throws ResourceNotFoundException + * @throws InternalServerException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Comprehend indicating either a problem with the data in the + * request, or a server side issue. + */ + public UpdateFlywheelResult updateFlywheel(UpdateFlywheelRequest updateFlywheelRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(updateFlywheelRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateFlywheelRequestMarshaller().marshall(updateFlywheelRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new UpdateFlywheelResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** * Returns additional metadata for a previously executed successful, * request, typically used for debugging issues where a service isn't acting diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsDocumentTypeFormat.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsDocumentTypeFormat.java index bde02f13c07..23225190af2 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsDocumentTypeFormat.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsDocumentTypeFormat.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsListItem.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsListItem.java index 75a5ac881a1..310a76c912c 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsListItem.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/AugmentedManifestsListItem.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageItemResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageItemResult.java index 4c181eb3721..e5c9372aa2a 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageItemResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageItemResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageRequest.java index c0448efefc5..c6ca84c4cc4 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageResult.java index c0dfa898527..ce3c74c0d80 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesItemResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesItemResult.java index 000ccdffefe..24c28787c00 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesItemResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesItemResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesRequest.java index 647532e0ab8..32454bb5974 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesResult.java index 7c4b965319a..c277dc15ad5 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectEntitiesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesItemResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesItemResult.java index db6a674ef81..cc2616663de 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesItemResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesItemResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesRequest.java index 1c7da67949d..45d8a49b075 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesResult.java index e5744c2f78f..ee17d60ba9e 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectKeyPhrasesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentItemResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentItemResult.java index 7ad6b10534d..683c7892e8a 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentItemResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentItemResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentRequest.java index 41d3d692ec2..53577e1678f 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -33,13 +33,6 @@ public class BatchDetectSentimentRequest extends AmazonWebServiceRequest impleme * can contain a maximum of 25 documents. The maximum size of each document * is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the first 500 - * characters of the input text and ignores any additional text in the - * input. - *

- *
*/ private java.util.List textList; @@ -61,26 +54,12 @@ public class BatchDetectSentimentRequest extends AmazonWebServiceRequest impleme * can contain a maximum of 25 documents. The maximum size of each document * is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the first 500 - * characters of the input text and ignores any additional text in the - * input. - *

- *
* * @return

* A list containing the UTF-8 encoded text of the input documents. * The list can contain a maximum of 25 documents. The maximum size * of each document is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the - * first 500 characters of the input text and ignores any additional - * text in the input. - *

- *
*/ public java.util.List getTextList() { return textList; @@ -92,26 +71,12 @@ public java.util.List getTextList() { * can contain a maximum of 25 documents. The maximum size of each document * is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the first 500 - * characters of the input text and ignores any additional text in the - * input. - *

- *
* * @param textList

* A list containing the UTF-8 encoded text of the input * documents. The list can contain a maximum of 25 documents. The * maximum size of each document is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the - * first 500 characters of the input text and ignores any - * additional text in the input. - *

- *
*/ public void setTextList(java.util.Collection textList) { if (textList == null) { @@ -128,13 +93,6 @@ public void setTextList(java.util.Collection textList) { * can contain a maximum of 25 documents. The maximum size of each document * is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the first 500 - * characters of the input text and ignores any additional text in the - * input. - *

- *
*

* Returns a reference to this object so that method calls can be chained * together. @@ -144,13 +102,6 @@ public void setTextList(java.util.Collection textList) { * documents. The list can contain a maximum of 25 documents. The * maximum size of each document is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the - * first 500 characters of the input text and ignores any - * additional text in the input. - *

- *
* @return A reference to this updated object so that method calls can be * chained together. */ @@ -170,13 +121,6 @@ public BatchDetectSentimentRequest withTextList(String... textList) { * can contain a maximum of 25 documents. The maximum size of each document * is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the first 500 - * characters of the input text and ignores any additional text in the - * input. - *

- *
*

* Returns a reference to this object so that method calls can be chained * together. @@ -186,13 +130,6 @@ public BatchDetectSentimentRequest withTextList(String... textList) { * documents. The list can contain a maximum of 25 documents. The * maximum size of each document is 5 KB. *

- * - *

- * Amazon Comprehend performs real-time sentiment analysis on the - * first 500 characters of the input text and ignores any - * additional text in the input. - *

- *
* @return A reference to this updated object so that method calls can be * chained together. */ diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentResult.java index a3cdc485e13..ace25093acc 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSentimentResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxItemResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxItemResult.java index 477b02dbb1f..10d02e68555 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxItemResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxItemResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxRequest.java index 976aa6ea48e..d2ffa5648d8 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxResult.java index 64b6b38ab06..8258f3f549d 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectSyntaxResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentItemResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentItemResult.java index ace1d11870e..835a867d0fb 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentItemResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentItemResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentRequest.java index 44abb2cd91e..9bbe0e3c8fd 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentResult.java index 07bee385274..a7c45d85588 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectTargetedSentimentResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchItemError.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchItemError.java index 1a17d6437d9..f57a631ecf9 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchItemError.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchItemError.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchSizeLimitExceededException.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchSizeLimitExceededException.java index 5abc257256d..c770c2496ce 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchSizeLimitExceededException.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchSizeLimitExceededException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Block.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Block.java new file mode 100644 index 00000000000..af0b84335ab --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Block.java @@ -0,0 +1,707 @@ +/* + * Copyright 2010-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; + +/** + *

+ * Information about each word or line of text in the input document. + *

+ *

+ * For additional information, see Block in the Amazon Textract API reference. + *

+ */ +public class Block implements Serializable { + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ */ + private String id; + + /** + *

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is one or more + * ISO basic Latin script characters that aren't separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are detected on a + * document page + *

    + *
  • + *
+ *

+ * Constraints:
+ * Allowed Values: LINE, WORD + */ + private String blockType; + + /** + *

+ * The word or line of text extracted from the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ */ + private String text; + + /** + *

+ * Page number where the block appears. + *

+ */ + private Integer page; + + /** + *

+ * Co-ordinates of the rectangle or polygon that contains the text. + *

+ */ + private Geometry geometry; + + /** + *

+ * A list of child blocks of the current block. For example, a LINE object + * has child blocks for each WORD block that's part of the line of text. + *

+ */ + private java.util.List relationships; + + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @return

+ * Unique identifier for the block. + *

+ */ + public String getId() { + return id; + } + + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @param id

+ * Unique identifier for the block. + *

+ */ + public void setId(String id) { + this.id = id; + } + + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 1 -
+ * + * @param id

+ * Unique identifier for the block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Block withId(String id) { + this.id = id; + return this; + } + + /** + *

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is one or more + * ISO basic Latin script characters that aren't separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are detected on a + * document page + *

    + *
  • + *
+ *

+ * Constraints:
+ * Allowed Values: LINE, WORD + * + * @return

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is one + * or more ISO basic Latin script characters that aren't separated + * by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page + *

    + *
  • + *
+ * @see BlockType + */ + public String getBlockType() { + return blockType; + } + + /** + *

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is one or more + * ISO basic Latin script characters that aren't separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are detected on a + * document page + *

    + *
  • + *
+ *

+ * Constraints:
+ * Allowed Values: LINE, WORD + * + * @param blockType

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is + * one or more ISO basic Latin script characters that aren't + * separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page + *

    + *
  • + *
+ * @see BlockType + */ + public void setBlockType(String blockType) { + this.blockType = blockType; + } + + /** + *

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is one or more + * ISO basic Latin script characters that aren't separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are detected on a + * document page + *

    + *
  • + *
+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Allowed Values: LINE, WORD + * + * @param blockType

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is + * one or more ISO basic Latin script characters that aren't + * separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page + *

    + *
  • + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see BlockType + */ + public Block withBlockType(String blockType) { + this.blockType = blockType; + return this; + } + + /** + *

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is one or more + * ISO basic Latin script characters that aren't separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are detected on a + * document page + *

    + *
  • + *
+ *

+ * Constraints:
+ * Allowed Values: LINE, WORD + * + * @param blockType

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is + * one or more ISO basic Latin script characters that aren't + * separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page + *

    + *
  • + *
+ * @see BlockType + */ + public void setBlockType(BlockType blockType) { + this.blockType = blockType.toString(); + } + + /** + *

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is one or more + * ISO basic Latin script characters that aren't separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are detected on a + * document page + *

    + *
  • + *
+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Allowed Values: LINE, WORD + * + * @param blockType

+ * The block represents a line of text or one word of text. + *

+ *
    + *
  • + *

    + * WORD - A word that's detected on a document page. A word is + * one or more ISO basic Latin script characters that aren't + * separated by spaces. + *

    + *
  • + *
  • + *

    + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page + *

    + *
  • + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see BlockType + */ + public Block withBlockType(BlockType blockType) { + this.blockType = blockType.toString(); + return this; + } + + /** + *

+ * The word or line of text extracted from the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @return

+ * The word or line of text extracted from the block. + *

+ */ + public String getText() { + return text; + } + + /** + *

+ * The word or line of text extracted from the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @param text

+ * The word or line of text extracted from the block. + *

+ */ + public void setText(String text) { + this.text = text; + } + + /** + *

+ * The word or line of text extracted from the block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 1 -
+ * + * @param text

+ * The word or line of text extracted from the block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Block withText(String text) { + this.text = text; + return this; + } + + /** + *

+ * Page number where the block appears. + *

+ * + * @return

+ * Page number where the block appears. + *

+ */ + public Integer getPage() { + return page; + } + + /** + *

+ * Page number where the block appears. + *

+ * + * @param page

+ * Page number where the block appears. + *

+ */ + public void setPage(Integer page) { + this.page = page; + } + + /** + *

+ * Page number where the block appears. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param page

+ * Page number where the block appears. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Block withPage(Integer page) { + this.page = page; + return this; + } + + /** + *

+ * Co-ordinates of the rectangle or polygon that contains the text. + *

+ * + * @return

+ * Co-ordinates of the rectangle or polygon that contains the text. + *

+ */ + public Geometry getGeometry() { + return geometry; + } + + /** + *

+ * Co-ordinates of the rectangle or polygon that contains the text. + *

+ * + * @param geometry

+ * Co-ordinates of the rectangle or polygon that contains the + * text. + *

+ */ + public void setGeometry(Geometry geometry) { + this.geometry = geometry; + } + + /** + *

+ * Co-ordinates of the rectangle or polygon that contains the text. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param geometry

+ * Co-ordinates of the rectangle or polygon that contains the + * text. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Block withGeometry(Geometry geometry) { + this.geometry = geometry; + return this; + } + + /** + *

+ * A list of child blocks of the current block. For example, a LINE object + * has child blocks for each WORD block that's part of the line of text. + *

+ * + * @return

+ * A list of child blocks of the current block. For example, a LINE + * object has child blocks for each WORD block that's part of the + * line of text. + *

+ */ + public java.util.List getRelationships() { + return relationships; + } + + /** + *

+ * A list of child blocks of the current block. For example, a LINE object + * has child blocks for each WORD block that's part of the line of text. + *

+ * + * @param relationships

+ * A list of child blocks of the current block. For example, a + * LINE object has child blocks for each WORD block that's part + * of the line of text. + *

+ */ + public void setRelationships(java.util.Collection relationships) { + if (relationships == null) { + this.relationships = null; + return; + } + + this.relationships = new java.util.ArrayList(relationships); + } + + /** + *

+ * A list of child blocks of the current block. For example, a LINE object + * has child blocks for each WORD block that's part of the line of text. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param relationships

+ * A list of child blocks of the current block. For example, a + * LINE object has child blocks for each WORD block that's part + * of the line of text. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Block withRelationships(RelationshipsListItem... relationships) { + if (getRelationships() == null) { + this.relationships = new java.util.ArrayList( + relationships.length); + } + for (RelationshipsListItem value : relationships) { + this.relationships.add(value); + } + return this; + } + + /** + *

+ * A list of child blocks of the current block. For example, a LINE object + * has child blocks for each WORD block that's part of the line of text. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param relationships

+ * A list of child blocks of the current block. For example, a + * LINE object has child blocks for each WORD block that's part + * of the line of text. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Block withRelationships(java.util.Collection relationships) { + setRelationships(relationships); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getBlockType() != null) + sb.append("BlockType: " + getBlockType() + ","); + if (getText() != null) + sb.append("Text: " + getText() + ","); + if (getPage() != null) + sb.append("Page: " + getPage() + ","); + if (getGeometry() != null) + sb.append("Geometry: " + getGeometry() + ","); + if (getRelationships() != null) + sb.append("Relationships: " + getRelationships()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + ((getBlockType() == null) ? 0 : getBlockType().hashCode()); + hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode()); + hashCode = prime * hashCode + ((getPage() == null) ? 0 : getPage().hashCode()); + hashCode = prime * hashCode + ((getGeometry() == null) ? 0 : getGeometry().hashCode()); + hashCode = prime * hashCode + + ((getRelationships() == null) ? 0 : getRelationships().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Block == false) + return false; + Block other = (Block) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getBlockType() == null ^ this.getBlockType() == null) + return false; + if (other.getBlockType() != null + && other.getBlockType().equals(this.getBlockType()) == false) + return false; + if (other.getText() == null ^ this.getText() == null) + return false; + if (other.getText() != null && other.getText().equals(this.getText()) == false) + return false; + if (other.getPage() == null ^ this.getPage() == null) + return false; + if (other.getPage() != null && other.getPage().equals(this.getPage()) == false) + return false; + if (other.getGeometry() == null ^ this.getGeometry() == null) + return false; + if (other.getGeometry() != null && other.getGeometry().equals(this.getGeometry()) == false) + return false; + if (other.getRelationships() == null ^ this.getRelationships() == null) + return false; + if (other.getRelationships() != null + && other.getRelationships().equals(this.getRelationships()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockReference.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockReference.java new file mode 100644 index 00000000000..8d0cbb0cd39 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockReference.java @@ -0,0 +1,344 @@ +/* + * Copyright 2010-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; + +/** + *

+ * A reference to a block. + *

+ */ +public class BlockReference implements Serializable { + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ */ + private String blockId; + + /** + *

+ * Offset of the start of the block within its parent block. + *

+ */ + private Integer beginOffset; + + /** + *

+ * Offset of the end of the block within its parent block. + *

+ */ + private Integer endOffset; + + /** + *

+ * List of child blocks within this block. + *

+ */ + private java.util.List childBlocks; + + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @return

+ * Unique identifier for the block. + *

+ */ + public String getBlockId() { + return blockId; + } + + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @param blockId

+ * Unique identifier for the block. + *

+ */ + public void setBlockId(String blockId) { + this.blockId = blockId; + } + + /** + *

+ * Unique identifier for the block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 1 -
+ * + * @param blockId

+ * Unique identifier for the block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BlockReference withBlockId(String blockId) { + this.blockId = blockId; + return this; + } + + /** + *

+ * Offset of the start of the block within its parent block. + *

+ * + * @return

+ * Offset of the start of the block within its parent block. + *

+ */ + public Integer getBeginOffset() { + return beginOffset; + } + + /** + *

+ * Offset of the start of the block within its parent block. + *

+ * + * @param beginOffset

+ * Offset of the start of the block within its parent block. + *

+ */ + public void setBeginOffset(Integer beginOffset) { + this.beginOffset = beginOffset; + } + + /** + *

+ * Offset of the start of the block within its parent block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param beginOffset

+ * Offset of the start of the block within its parent block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BlockReference withBeginOffset(Integer beginOffset) { + this.beginOffset = beginOffset; + return this; + } + + /** + *

+ * Offset of the end of the block within its parent block. + *

+ * + * @return

+ * Offset of the end of the block within its parent block. + *

+ */ + public Integer getEndOffset() { + return endOffset; + } + + /** + *

+ * Offset of the end of the block within its parent block. + *

+ * + * @param endOffset

+ * Offset of the end of the block within its parent block. + *

+ */ + public void setEndOffset(Integer endOffset) { + this.endOffset = endOffset; + } + + /** + *

+ * Offset of the end of the block within its parent block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endOffset

+ * Offset of the end of the block within its parent block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BlockReference withEndOffset(Integer endOffset) { + this.endOffset = endOffset; + return this; + } + + /** + *

+ * List of child blocks within this block. + *

+ * + * @return

+ * List of child blocks within this block. + *

+ */ + public java.util.List getChildBlocks() { + return childBlocks; + } + + /** + *

+ * List of child blocks within this block. + *

+ * + * @param childBlocks

+ * List of child blocks within this block. + *

+ */ + public void setChildBlocks(java.util.Collection childBlocks) { + if (childBlocks == null) { + this.childBlocks = null; + return; + } + + this.childBlocks = new java.util.ArrayList(childBlocks); + } + + /** + *

+ * List of child blocks within this block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param childBlocks

+ * List of child blocks within this block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BlockReference withChildBlocks(ChildBlock... childBlocks) { + if (getChildBlocks() == null) { + this.childBlocks = new java.util.ArrayList(childBlocks.length); + } + for (ChildBlock value : childBlocks) { + this.childBlocks.add(value); + } + return this; + } + + /** + *

+ * List of child blocks within this block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param childBlocks

+ * List of child blocks within this block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BlockReference withChildBlocks(java.util.Collection childBlocks) { + setChildBlocks(childBlocks); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getBlockId() != null) + sb.append("BlockId: " + getBlockId() + ","); + if (getBeginOffset() != null) + sb.append("BeginOffset: " + getBeginOffset() + ","); + if (getEndOffset() != null) + sb.append("EndOffset: " + getEndOffset() + ","); + if (getChildBlocks() != null) + sb.append("ChildBlocks: " + getChildBlocks()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getBlockId() == null) ? 0 : getBlockId().hashCode()); + hashCode = prime * hashCode + + ((getBeginOffset() == null) ? 0 : getBeginOffset().hashCode()); + hashCode = prime * hashCode + ((getEndOffset() == null) ? 0 : getEndOffset().hashCode()); + hashCode = prime * hashCode + + ((getChildBlocks() == null) ? 0 : getChildBlocks().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BlockReference == false) + return false; + BlockReference other = (BlockReference) obj; + + if (other.getBlockId() == null ^ this.getBlockId() == null) + return false; + if (other.getBlockId() != null && other.getBlockId().equals(this.getBlockId()) == false) + return false; + if (other.getBeginOffset() == null ^ this.getBeginOffset() == null) + return false; + if (other.getBeginOffset() != null + && other.getBeginOffset().equals(this.getBeginOffset()) == false) + return false; + if (other.getEndOffset() == null ^ this.getEndOffset() == null) + return false; + if (other.getEndOffset() != null + && other.getEndOffset().equals(this.getEndOffset()) == false) + return false; + if (other.getChildBlocks() == null ^ this.getChildBlocks() == null) + return false; + if (other.getChildBlocks() != null + && other.getChildBlocks().equals(this.getChildBlocks()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockType.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockType.java new file mode 100644 index 00000000000..133a6c4585f --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BlockType.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-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.util.HashMap; +import java.util.Map; + +/** + * Block Type + */ +public enum BlockType { + + LINE("LINE"), + WORD("WORD"); + + private String value; + + private BlockType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("LINE", LINE); + enumMap.put("WORD", WORD); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return BlockType corresponding to the value + */ + public static BlockType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BoundingBox.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BoundingBox.java new file mode 100644 index 00000000000..1e96f3df320 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BoundingBox.java @@ -0,0 +1,334 @@ +/* + * Copyright 2010-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; + +/** + *

+ * The bounding box around the detected page or around an element on a document + * page. The left (x-coordinate) and top (y-coordinate) are coordinates that + * represent the top and left sides of the bounding box. Note that the + * upper-left corner of the image is the origin (0,0). + *

+ *

+ * For additional information, see BoundingBox in the Amazon Textract API reference. + *

+ */ +public class BoundingBox implements Serializable { + /** + *

+ * The height of the bounding box as a ratio of the overall document page + * height. + *

+ */ + private Float height; + + /** + *

+ * The left coordinate of the bounding box as a ratio of overall document + * page width. + *

+ */ + private Float left; + + /** + *

+ * The top coordinate of the bounding box as a ratio of overall document + * page height. + *

+ */ + private Float top; + + /** + *

+ * The width of the bounding box as a ratio of the overall document page + * width. + *

+ */ + private Float width; + + /** + *

+ * The height of the bounding box as a ratio of the overall document page + * height. + *

+ * + * @return

+ * The height of the bounding box as a ratio of the overall document + * page height. + *

+ */ + public Float getHeight() { + return height; + } + + /** + *

+ * The height of the bounding box as a ratio of the overall document page + * height. + *

+ * + * @param height

+ * The height of the bounding box as a ratio of the overall + * document page height. + *

+ */ + public void setHeight(Float height) { + this.height = height; + } + + /** + *

+ * The height of the bounding box as a ratio of the overall document page + * height. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param height

+ * The height of the bounding box as a ratio of the overall + * document page height. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BoundingBox withHeight(Float height) { + this.height = height; + return this; + } + + /** + *

+ * The left coordinate of the bounding box as a ratio of overall document + * page width. + *

+ * + * @return

+ * The left coordinate of the bounding box as a ratio of overall + * document page width. + *

+ */ + public Float getLeft() { + return left; + } + + /** + *

+ * The left coordinate of the bounding box as a ratio of overall document + * page width. + *

+ * + * @param left

+ * The left coordinate of the bounding box as a ratio of overall + * document page width. + *

+ */ + public void setLeft(Float left) { + this.left = left; + } + + /** + *

+ * The left coordinate of the bounding box as a ratio of overall document + * page width. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param left

+ * The left coordinate of the bounding box as a ratio of overall + * document page width. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BoundingBox withLeft(Float left) { + this.left = left; + return this; + } + + /** + *

+ * The top coordinate of the bounding box as a ratio of overall document + * page height. + *

+ * + * @return

+ * The top coordinate of the bounding box as a ratio of overall + * document page height. + *

+ */ + public Float getTop() { + return top; + } + + /** + *

+ * The top coordinate of the bounding box as a ratio of overall document + * page height. + *

+ * + * @param top

+ * The top coordinate of the bounding box as a ratio of overall + * document page height. + *

+ */ + public void setTop(Float top) { + this.top = top; + } + + /** + *

+ * The top coordinate of the bounding box as a ratio of overall document + * page height. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param top

+ * The top coordinate of the bounding box as a ratio of overall + * document page height. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BoundingBox withTop(Float top) { + this.top = top; + return this; + } + + /** + *

+ * The width of the bounding box as a ratio of the overall document page + * width. + *

+ * + * @return

+ * The width of the bounding box as a ratio of the overall document + * page width. + *

+ */ + public Float getWidth() { + return width; + } + + /** + *

+ * The width of the bounding box as a ratio of the overall document page + * width. + *

+ * + * @param width

+ * The width of the bounding box as a ratio of the overall + * document page width. + *

+ */ + public void setWidth(Float width) { + this.width = width; + } + + /** + *

+ * The width of the bounding box as a ratio of the overall document page + * width. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param width

+ * The width of the bounding box as a ratio of the overall + * document page width. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BoundingBox withWidth(Float width) { + this.width = width; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getHeight() != null) + sb.append("Height: " + getHeight() + ","); + if (getLeft() != null) + sb.append("Left: " + getLeft() + ","); + if (getTop() != null) + sb.append("Top: " + getTop() + ","); + if (getWidth() != null) + sb.append("Width: " + getWidth()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getHeight() == null) ? 0 : getHeight().hashCode()); + hashCode = prime * hashCode + ((getLeft() == null) ? 0 : getLeft().hashCode()); + hashCode = prime * hashCode + ((getTop() == null) ? 0 : getTop().hashCode()); + hashCode = prime * hashCode + ((getWidth() == null) ? 0 : getWidth().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BoundingBox == false) + return false; + BoundingBox other = (BoundingBox) obj; + + if (other.getHeight() == null ^ this.getHeight() == null) + return false; + if (other.getHeight() != null && other.getHeight().equals(this.getHeight()) == false) + return false; + if (other.getLeft() == null ^ this.getLeft() == null) + return false; + if (other.getLeft() != null && other.getLeft().equals(this.getLeft()) == false) + return false; + if (other.getTop() == null ^ this.getTop() == null) + return false; + if (other.getTop() != null && other.getTop().equals(this.getTop()) == false) + return false; + if (other.getWidth() == null ^ this.getWidth() == null) + return false; + if (other.getWidth() != null && other.getWidth().equals(this.getWidth()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ChildBlock.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ChildBlock.java new file mode 100644 index 00000000000..f9a7bbc05d9 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ChildBlock.java @@ -0,0 +1,258 @@ +/* + * Copyright 2010-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; + +/** + *

+ * Nested block contained within a block. + *

+ */ +public class ChildBlock implements Serializable { + /** + *

+ * Unique identifier for the child block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ */ + private String childBlockId; + + /** + *

+ * Offset of the start of the child block within its parent block. + *

+ */ + private Integer beginOffset; + + /** + *

+ * Offset of the end of the child block within its parent block. + *

+ */ + private Integer endOffset; + + /** + *

+ * Unique identifier for the child block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @return

+ * Unique identifier for the child block. + *

+ */ + public String getChildBlockId() { + return childBlockId; + } + + /** + *

+ * Unique identifier for the child block. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @param childBlockId

+ * Unique identifier for the child block. + *

+ */ + public void setChildBlockId(String childBlockId) { + this.childBlockId = childBlockId; + } + + /** + *

+ * Unique identifier for the child block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 1 -
+ * + * @param childBlockId

+ * Unique identifier for the child block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ChildBlock withChildBlockId(String childBlockId) { + this.childBlockId = childBlockId; + return this; + } + + /** + *

+ * Offset of the start of the child block within its parent block. + *

+ * + * @return

+ * Offset of the start of the child block within its parent block. + *

+ */ + public Integer getBeginOffset() { + return beginOffset; + } + + /** + *

+ * Offset of the start of the child block within its parent block. + *

+ * + * @param beginOffset

+ * Offset of the start of the child block within its parent + * block. + *

+ */ + public void setBeginOffset(Integer beginOffset) { + this.beginOffset = beginOffset; + } + + /** + *

+ * Offset of the start of the child block within its parent block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param beginOffset

+ * Offset of the start of the child block within its parent + * block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ChildBlock withBeginOffset(Integer beginOffset) { + this.beginOffset = beginOffset; + return this; + } + + /** + *

+ * Offset of the end of the child block within its parent block. + *

+ * + * @return

+ * Offset of the end of the child block within its parent block. + *

+ */ + public Integer getEndOffset() { + return endOffset; + } + + /** + *

+ * Offset of the end of the child block within its parent block. + *

+ * + * @param endOffset

+ * Offset of the end of the child block within its parent block. + *

+ */ + public void setEndOffset(Integer endOffset) { + this.endOffset = endOffset; + } + + /** + *

+ * Offset of the end of the child block within its parent block. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endOffset

+ * Offset of the end of the child block within its parent block. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ChildBlock withEndOffset(Integer endOffset) { + this.endOffset = endOffset; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getChildBlockId() != null) + sb.append("ChildBlockId: " + getChildBlockId() + ","); + if (getBeginOffset() != null) + sb.append("BeginOffset: " + getBeginOffset() + ","); + if (getEndOffset() != null) + sb.append("EndOffset: " + getEndOffset()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getChildBlockId() == null) ? 0 : getChildBlockId().hashCode()); + hashCode = prime * hashCode + + ((getBeginOffset() == null) ? 0 : getBeginOffset().hashCode()); + hashCode = prime * hashCode + ((getEndOffset() == null) ? 0 : getEndOffset().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ChildBlock == false) + return false; + ChildBlock other = (ChildBlock) obj; + + if (other.getChildBlockId() == null ^ this.getChildBlockId() == null) + return false; + if (other.getChildBlockId() != null + && other.getChildBlockId().equals(this.getChildBlockId()) == false) + return false; + if (other.getBeginOffset() == null ^ this.getBeginOffset() == null) + return false; + if (other.getBeginOffset() != null + && other.getBeginOffset().equals(this.getBeginOffset()) == false) + return false; + if (other.getEndOffset() == null ^ this.getEndOffset() == null) + return false; + if (other.getEndOffset() != null + && other.getEndOffset().equals(this.getEndOffset()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierEvaluationMetrics.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierEvaluationMetrics.java index 3de532ee5d1..82455ef92a3 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierEvaluationMetrics.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierEvaluationMetrics.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierMetadata.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierMetadata.java index 45eccc5dc6d..a9c2171bc2b 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierMetadata.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifierMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentRequest.java index 066232fac32..c662d22a7e0 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -25,11 +25,28 @@ * real-time, using a previously created and trained custom model and an * endpoint. *

+ *

+ * You can input plain text or you can upload a single-page input document + * (text, PDF, Word, or image). + *

+ *

+ * If the system detects errors while processing a page in the input document, + * the API response includes an entry in Errors that describes the + * errors. + *

+ *

+ * If the system detects a document-level error in your input document, the API + * returns an InvalidRequestException error response. For details + * about this exception, see + * Errors in semi-structured documents in the Comprehend Developer Guide. + *

*/ public class ClassifyDocumentRequest extends AmazonWebServiceRequest implements Serializable { /** *

- * The document text to be analyzed. + * The document text to be analyzed. If you enter text using this parameter, + * do not use the Bytes parameter. *

*

* Constraints:
@@ -55,14 +72,53 @@ public class ClassifyDocumentRequest extends AmazonWebServiceRequest implements /** *

- * The document text to be analyzed. + * Use the Bytes parameter to input a text, PDF, Word or image + * file. You can also use the Bytes parameter to input an + * Amazon Textract DetectDocumentText or + * AnalyzeDocument output file. + *

+ *

+ * Provide the input document as a sequence of base64-encoded bytes. If your + * code uses an Amazon Web Services SDK to classify documents, the SDK may + * encode the document file bytes for you. + *

+ *

+ * The maximum length of this field depends on the input document type. For + * details, see + * Inputs for real-time custom analysis in the Comprehend Developer + * Guide. + *

+ *

+ * If you use the Bytes parameter, do not use the + * Text parameter. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ */ + private java.nio.ByteBuffer bytes; + + /** + *

+ * Provides configuration parameters to override the default actions for + * extracting text from PDF documents and image files. + *

+ */ + private DocumentReaderConfig documentReaderConfig; + + /** + *

+ * The document text to be analyzed. If you enter text using this parameter, + * do not use the Bytes parameter. *

*

* Constraints:
* Length: 1 -
* * @return

- * The document text to be analyzed. + * The document text to be analyzed. If you enter text using this + * parameter, do not use the Bytes parameter. *

*/ public String getText() { @@ -71,14 +127,16 @@ public String getText() { /** *

- * The document text to be analyzed. + * The document text to be analyzed. If you enter text using this parameter, + * do not use the Bytes parameter. *

*

* Constraints:
* Length: 1 -
* * @param text

- * The document text to be analyzed. + * The document text to be analyzed. If you enter text using this + * parameter, do not use the Bytes parameter. *

*/ public void setText(String text) { @@ -87,7 +145,8 @@ public void setText(String text) { /** *

- * The document text to be analyzed. + * The document text to be analyzed. If you enter text using this parameter, + * do not use the Bytes parameter. *

*

* Returns a reference to this object so that method calls can be chained @@ -97,7 +156,8 @@ public void setText(String text) { * Length: 1 -
* * @param text

- * The document text to be analyzed. + * The document text to be analyzed. If you enter text using this + * parameter, do not use the Bytes parameter. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -188,6 +248,232 @@ public ClassifyDocumentRequest withEndpointArn(String endpointArn) { return this; } + /** + *

+ * Use the Bytes parameter to input a text, PDF, Word or image + * file. You can also use the Bytes parameter to input an + * Amazon Textract DetectDocumentText or + * AnalyzeDocument output file. + *

+ *

+ * Provide the input document as a sequence of base64-encoded bytes. If your + * code uses an Amazon Web Services SDK to classify documents, the SDK may + * encode the document file bytes for you. + *

+ *

+ * The maximum length of this field depends on the input document type. For + * details, see + * Inputs for real-time custom analysis in the Comprehend Developer + * Guide. + *

+ *

+ * If you use the Bytes parameter, do not use the + * Text parameter. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @return

+ * Use the Bytes parameter to input a text, PDF, Word + * or image file. You can also use the Bytes parameter + * to input an Amazon Textract DetectDocumentText or + * AnalyzeDocument output file. + *

+ *

+ * Provide the input document as a sequence of base64-encoded bytes. + * If your code uses an Amazon Web Services SDK to classify + * documents, the SDK may encode the document file bytes for you. + *

+ *

+ * The maximum length of this field depends on the input document + * type. For details, see Inputs for real-time custom analysis in the Comprehend + * Developer Guide. + *

+ *

+ * If you use the Bytes parameter, do not use the + * Text parameter. + *

+ */ + public java.nio.ByteBuffer getBytes() { + return bytes; + } + + /** + *

+ * Use the Bytes parameter to input a text, PDF, Word or image + * file. You can also use the Bytes parameter to input an + * Amazon Textract DetectDocumentText or + * AnalyzeDocument output file. + *

+ *

+ * Provide the input document as a sequence of base64-encoded bytes. If your + * code uses an Amazon Web Services SDK to classify documents, the SDK may + * encode the document file bytes for you. + *

+ *

+ * The maximum length of this field depends on the input document type. For + * details, see + * Inputs for real-time custom analysis in the Comprehend Developer + * Guide. + *

+ *

+ * If you use the Bytes parameter, do not use the + * Text parameter. + *

+ *

+ * Constraints:
+ * Length: 1 -
+ * + * @param bytes

+ * Use the Bytes parameter to input a text, PDF, + * Word or image file. You can also use the Bytes + * parameter to input an Amazon Textract + * DetectDocumentText or + * AnalyzeDocument output file. + *

+ *

+ * Provide the input document as a sequence of base64-encoded + * bytes. If your code uses an Amazon Web Services SDK to + * classify documents, the SDK may encode the document file bytes + * for you. + *

+ *

+ * The maximum length of this field depends on the input document + * type. For details, see Inputs for real-time custom analysis in the Comprehend + * Developer Guide. + *

+ *

+ * If you use the Bytes parameter, do not use the + * Text parameter. + *

+ */ + public void setBytes(java.nio.ByteBuffer bytes) { + this.bytes = bytes; + } + + /** + *

+ * Use the Bytes parameter to input a text, PDF, Word or image + * file. You can also use the Bytes parameter to input an + * Amazon Textract DetectDocumentText or + * AnalyzeDocument output file. + *

+ *

+ * Provide the input document as a sequence of base64-encoded bytes. If your + * code uses an Amazon Web Services SDK to classify documents, the SDK may + * encode the document file bytes for you. + *

+ *

+ * The maximum length of this field depends on the input document type. For + * details, see + * Inputs for real-time custom analysis in the Comprehend Developer + * Guide. + *

+ *

+ * If you use the Bytes parameter, do not use the + * Text parameter. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 1 -
+ * + * @param bytes

+ * Use the Bytes parameter to input a text, PDF, + * Word or image file. You can also use the Bytes + * parameter to input an Amazon Textract + * DetectDocumentText or + * AnalyzeDocument output file. + *

+ *

+ * Provide the input document as a sequence of base64-encoded + * bytes. If your code uses an Amazon Web Services SDK to + * classify documents, the SDK may encode the document file bytes + * for you. + *

+ *

+ * The maximum length of this field depends on the input document + * type. For details, see Inputs for real-time custom analysis in the Comprehend + * Developer Guide. + *

+ *

+ * If you use the Bytes parameter, do not use the + * Text parameter. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentRequest withBytes(java.nio.ByteBuffer bytes) { + this.bytes = bytes; + return this; + } + + /** + *

+ * Provides configuration parameters to override the default actions for + * extracting text from PDF documents and image files. + *

+ * + * @return

+ * Provides configuration parameters to override the default actions + * for extracting text from PDF documents and image files. + *

+ */ + public DocumentReaderConfig getDocumentReaderConfig() { + return documentReaderConfig; + } + + /** + *

+ * Provides configuration parameters to override the default actions for + * extracting text from PDF documents and image files. + *

+ * + * @param documentReaderConfig

+ * Provides configuration parameters to override the default + * actions for extracting text from PDF documents and image + * files. + *

+ */ + public void setDocumentReaderConfig(DocumentReaderConfig documentReaderConfig) { + this.documentReaderConfig = documentReaderConfig; + } + + /** + *

+ * Provides configuration parameters to override the default actions for + * extracting text from PDF documents and image files. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param documentReaderConfig

+ * Provides configuration parameters to override the default + * actions for extracting text from PDF documents and image + * files. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentRequest withDocumentReaderConfig( + DocumentReaderConfig documentReaderConfig) { + this.documentReaderConfig = documentReaderConfig; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -202,7 +488,11 @@ public String toString() { if (getText() != null) sb.append("Text: " + getText() + ","); if (getEndpointArn() != null) - sb.append("EndpointArn: " + getEndpointArn()); + sb.append("EndpointArn: " + getEndpointArn() + ","); + if (getBytes() != null) + sb.append("Bytes: " + getBytes() + ","); + if (getDocumentReaderConfig() != null) + sb.append("DocumentReaderConfig: " + getDocumentReaderConfig()); sb.append("}"); return sb.toString(); } @@ -215,6 +505,9 @@ public int hashCode() { hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode()); hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); + hashCode = prime * hashCode + ((getBytes() == null) ? 0 : getBytes().hashCode()); + hashCode = prime * hashCode + + ((getDocumentReaderConfig() == null) ? 0 : getDocumentReaderConfig().hashCode()); return hashCode; } @@ -238,6 +531,15 @@ public boolean equals(Object obj) { if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == false) return false; + if (other.getBytes() == null ^ this.getBytes() == null) + return false; + if (other.getBytes() != null && other.getBytes().equals(this.getBytes()) == false) + return false; + if (other.getDocumentReaderConfig() == null ^ this.getDocumentReaderConfig() == null) + return false; + if (other.getDocumentReaderConfig() != null + && other.getDocumentReaderConfig().equals(this.getDocumentReaderConfig()) == false) + return false; return true; } } diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentResult.java index 27bf6f7f1b8..e377419b705 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ClassifyDocumentResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -40,6 +40,45 @@ public class ClassifyDocumentResult implements Serializable { */ private java.util.List labels; + /** + *

+ * Extraction information about the document. This field is present in the + * response only if your request includes the Byte parameter. + *

+ */ + private DocumentMetadata documentMetadata; + + /** + *

+ * The document type for each page in the input document. This field is + * present in the response only if your request includes the + * Byte parameter. + *

+ */ + private java.util.List documentType; + + /** + *

+ * Page-level errors that the system detected while processing the input + * document. The field is empty if the system encountered no errors. + *

+ */ + private java.util.List errors; + + /** + *

+ * Warnings detected while processing the input document. The response + * includes a warning if there is a mismatch between the input document type + * and the model type associated with the endpoint that you specified. The + * response can also include warnings for individual pages that have a + * mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ */ + private java.util.List warnings; + /** *

* The classes used by the document being analyzed. These are used for @@ -256,6 +295,367 @@ public ClassifyDocumentResult withLabels(java.util.Collection lab return this; } + /** + *

+ * Extraction information about the document. This field is present in the + * response only if your request includes the Byte parameter. + *

+ * + * @return

+ * Extraction information about the document. This field is present + * in the response only if your request includes the + * Byte parameter. + *

+ */ + public DocumentMetadata getDocumentMetadata() { + return documentMetadata; + } + + /** + *

+ * Extraction information about the document. This field is present in the + * response only if your request includes the Byte parameter. + *

+ * + * @param documentMetadata

+ * Extraction information about the document. This field is + * present in the response only if your request includes the + * Byte parameter. + *

+ */ + public void setDocumentMetadata(DocumentMetadata documentMetadata) { + this.documentMetadata = documentMetadata; + } + + /** + *

+ * Extraction information about the document. This field is present in the + * response only if your request includes the Byte parameter. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param documentMetadata

+ * Extraction information about the document. This field is + * present in the response only if your request includes the + * Byte parameter. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentResult withDocumentMetadata(DocumentMetadata documentMetadata) { + this.documentMetadata = documentMetadata; + return this; + } + + /** + *

+ * The document type for each page in the input document. This field is + * present in the response only if your request includes the + * Byte parameter. + *

+ * + * @return

+ * The document type for each page in the input document. This field + * is present in the response only if your request includes the + * Byte parameter. + *

+ */ + public java.util.List getDocumentType() { + return documentType; + } + + /** + *

+ * The document type for each page in the input document. This field is + * present in the response only if your request includes the + * Byte parameter. + *

+ * + * @param documentType

+ * The document type for each page in the input document. This + * field is present in the response only if your request includes + * the Byte parameter. + *

+ */ + public void setDocumentType(java.util.Collection documentType) { + if (documentType == null) { + this.documentType = null; + return; + } + + this.documentType = new java.util.ArrayList(documentType); + } + + /** + *

+ * The document type for each page in the input document. This field is + * present in the response only if your request includes the + * Byte parameter. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param documentType

+ * The document type for each page in the input document. This + * field is present in the response only if your request includes + * the Byte parameter. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentResult withDocumentType(DocumentTypeListItem... documentType) { + if (getDocumentType() == null) { + this.documentType = new java.util.ArrayList(documentType.length); + } + for (DocumentTypeListItem value : documentType) { + this.documentType.add(value); + } + return this; + } + + /** + *

+ * The document type for each page in the input document. This field is + * present in the response only if your request includes the + * Byte parameter. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param documentType

+ * The document type for each page in the input document. This + * field is present in the response only if your request includes + * the Byte parameter. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentResult withDocumentType( + java.util.Collection documentType) { + setDocumentType(documentType); + return this; + } + + /** + *

+ * Page-level errors that the system detected while processing the input + * document. The field is empty if the system encountered no errors. + *

+ * + * @return

+ * Page-level errors that the system detected while processing the + * input document. The field is empty if the system encountered no + * errors. + *

+ */ + public java.util.List getErrors() { + return errors; + } + + /** + *

+ * Page-level errors that the system detected while processing the input + * document. The field is empty if the system encountered no errors. + *

+ * + * @param errors

+ * Page-level errors that the system detected while processing + * the input document. The field is empty if the system + * encountered no errors. + *

+ */ + public void setErrors(java.util.Collection errors) { + if (errors == null) { + this.errors = null; + return; + } + + this.errors = new java.util.ArrayList(errors); + } + + /** + *

+ * Page-level errors that the system detected while processing the input + * document. The field is empty if the system encountered no errors. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

+ * Page-level errors that the system detected while processing + * the input document. The field is empty if the system + * encountered no errors. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentResult withErrors(ErrorsListItem... errors) { + if (getErrors() == null) { + this.errors = new java.util.ArrayList(errors.length); + } + for (ErrorsListItem value : errors) { + this.errors.add(value); + } + return this; + } + + /** + *

+ * Page-level errors that the system detected while processing the input + * document. The field is empty if the system encountered no errors. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

+ * Page-level errors that the system detected while processing + * the input document. The field is empty if the system + * encountered no errors. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentResult withErrors(java.util.Collection errors) { + setErrors(errors); + return this; + } + + /** + *

+ * Warnings detected while processing the input document. The response + * includes a warning if there is a mismatch between the input document type + * and the model type associated with the endpoint that you specified. The + * response can also include warnings for individual pages that have a + * mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ * + * @return

+ * Warnings detected while processing the input document. The + * response includes a warning if there is a mismatch between the + * input document type and the model type associated with the + * endpoint that you specified. The response can also include + * warnings for individual pages that have a mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ */ + public java.util.List getWarnings() { + return warnings; + } + + /** + *

+ * Warnings detected while processing the input document. The response + * includes a warning if there is a mismatch between the input document type + * and the model type associated with the endpoint that you specified. The + * response can also include warnings for individual pages that have a + * mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ * + * @param warnings

+ * Warnings detected while processing the input document. The + * response includes a warning if there is a mismatch between the + * input document type and the model type associated with the + * endpoint that you specified. The response can also include + * warnings for individual pages that have a mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ */ + public void setWarnings(java.util.Collection warnings) { + if (warnings == null) { + this.warnings = null; + return; + } + + this.warnings = new java.util.ArrayList(warnings); + } + + /** + *

+ * Warnings detected while processing the input document. The response + * includes a warning if there is a mismatch between the input document type + * and the model type associated with the endpoint that you specified. The + * response can also include warnings for individual pages that have a + * mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param warnings

+ * Warnings detected while processing the input document. The + * response includes a warning if there is a mismatch between the + * input document type and the model type associated with the + * endpoint that you specified. The response can also include + * warnings for individual pages that have a mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentResult withWarnings(WarningsListItem... warnings) { + if (getWarnings() == null) { + this.warnings = new java.util.ArrayList(warnings.length); + } + for (WarningsListItem value : warnings) { + this.warnings.add(value); + } + return this; + } + + /** + *

+ * Warnings detected while processing the input document. The response + * includes a warning if there is a mismatch between the input document type + * and the model type associated with the endpoint that you specified. The + * response can also include warnings for individual pages that have a + * mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param warnings

+ * Warnings detected while processing the input document. The + * response includes a warning if there is a mismatch between the + * input document type and the model type associated with the + * endpoint that you specified. The response can also include + * warnings for individual pages that have a mismatch. + *

+ *

+ * The field is empty if the system generated no warnings. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClassifyDocumentResult withWarnings(java.util.Collection warnings) { + setWarnings(warnings); + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -270,7 +670,15 @@ public String toString() { if (getClasses() != null) sb.append("Classes: " + getClasses() + ","); if (getLabels() != null) - sb.append("Labels: " + getLabels()); + sb.append("Labels: " + getLabels() + ","); + if (getDocumentMetadata() != null) + sb.append("DocumentMetadata: " + getDocumentMetadata() + ","); + if (getDocumentType() != null) + sb.append("DocumentType: " + getDocumentType() + ","); + if (getErrors() != null) + sb.append("Errors: " + getErrors() + ","); + if (getWarnings() != null) + sb.append("Warnings: " + getWarnings()); sb.append("}"); return sb.toString(); } @@ -282,6 +690,12 @@ public int hashCode() { hashCode = prime * hashCode + ((getClasses() == null) ? 0 : getClasses().hashCode()); hashCode = prime * hashCode + ((getLabels() == null) ? 0 : getLabels().hashCode()); + hashCode = prime * hashCode + + ((getDocumentMetadata() == null) ? 0 : getDocumentMetadata().hashCode()); + hashCode = prime * hashCode + + ((getDocumentType() == null) ? 0 : getDocumentType().hashCode()); + hashCode = prime * hashCode + ((getErrors() == null) ? 0 : getErrors().hashCode()); + hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); return hashCode; } @@ -304,6 +718,24 @@ public boolean equals(Object obj) { return false; if (other.getLabels() != null && other.getLabels().equals(this.getLabels()) == false) return false; + if (other.getDocumentMetadata() == null ^ this.getDocumentMetadata() == null) + return false; + if (other.getDocumentMetadata() != null + && other.getDocumentMetadata().equals(this.getDocumentMetadata()) == false) + return false; + if (other.getDocumentType() == null ^ this.getDocumentType() == null) + return false; + if (other.getDocumentType() != null + && other.getDocumentType().equals(this.getDocumentType()) == false) + return false; + if (other.getErrors() == null ^ this.getErrors() == null) + return false; + if (other.getErrors() != null && other.getErrors().equals(this.getErrors()) == false) + return false; + if (other.getWarnings() == null ^ this.getWarnings() == null) + return false; + if (other.getWarnings() != null && other.getWarnings().equals(this.getWarnings()) == false) + return false; return true; } } diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ConcurrentModificationException.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ConcurrentModificationException.java index 109241f542d..66f70400d64 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ConcurrentModificationException.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ConcurrentModificationException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesRequest.java index aaa2ee615e2..f09f3963ee7 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesResult.java index b6fd9f3de2e..da81f55c11c 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ContainsPiiEntitiesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetRequest.java new file mode 100644 index 00000000000..f2f3181e29d --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetRequest.java @@ -0,0 +1,689 @@ +/* + * Copyright 2010-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 com.amazonaws.AmazonWebServiceRequest; + +/** + *

+ * Creates a dataset to upload training or test data for a model associated with + * a flywheel. For more information about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *

+ */ +public class CreateDatasetRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel to + * receive the data. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ */ + private String flywheelArn; + + /** + *

+ * Name of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ */ + private String datasetName; + + /** + *

+ * The dataset type. You can specify that the data in a dataset is for + * training the model or for testing the model. + *

+ *

+ * Constraints:
+ * Allowed Values: TRAIN, TEST + */ + private String datasetType; + + /** + *

+ * Description of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ */ + private String description; + + /** + *

+ * Information about the input data configuration. The type of input data + * varies based on the format of the input and whether the data is for a + * classifier model or an entity recognition model. + *

+ */ + private DatasetInputDataConfig inputDataConfig; + + /** + *

+ * A 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-]+$
+ */ + private String clientRequestToken; + + /** + *

+ * Tags for the dataset. + *

+ */ + private java.util.List tags; + + /** + *

+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel to + * receive the data. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ * + * @return

+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel + * to receive the data. + *

+ */ + public String getFlywheelArn() { + return flywheelArn; + } + + /** + *

+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel to + * receive the data. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ * + * @param flywheelArn

+ * The Amazon Resource Number (ARN) of the flywheel of the + * flywheel to receive the data. + *

+ */ + public void setFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + } + + /** + *

+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel to + * receive the data. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ * + * @param flywheelArn

+ * The Amazon Resource Number (ARN) of the flywheel of the + * flywheel to receive the data. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetRequest withFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + return this; + } + + /** + *

+ * Name of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ * + * @return

+ * Name of the dataset. + *

+ */ + public String getDatasetName() { + return datasetName; + } + + /** + *

+ * Name of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ * + * @param datasetName

+ * Name of the dataset. + *

+ */ + public void setDatasetName(String datasetName) { + this.datasetName = datasetName; + } + + /** + *

+ * Name of the dataset. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ * + * @param datasetName

+ * Name of the dataset. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetRequest withDatasetName(String datasetName) { + this.datasetName = datasetName; + return this; + } + + /** + *

+ * The dataset type. You can specify that the data in a dataset is for + * training the model or for testing the model. + *

+ *

+ * Constraints:
+ * Allowed Values: TRAIN, TEST + * + * @return

+ * The dataset type. You can specify that the data in a dataset is + * for training the model or for testing the model. + *

+ * @see DatasetType + */ + public String getDatasetType() { + return datasetType; + } + + /** + *

+ * The dataset type. You can specify that the data in a dataset is for + * training the model or for testing the model. + *

+ *

+ * Constraints:
+ * Allowed Values: TRAIN, TEST + * + * @param datasetType

+ * The dataset type. You can specify that the data in a dataset + * is for training the model or for testing the model. + *

+ * @see DatasetType + */ + public void setDatasetType(String datasetType) { + this.datasetType = datasetType; + } + + /** + *

+ * The dataset type. You can specify that the data in a dataset is for + * training the model or for testing the model. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Allowed Values: TRAIN, TEST + * + * @param datasetType

+ * The dataset type. You can specify that the data in a dataset + * is for training the model or for testing the model. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetType + */ + public CreateDatasetRequest withDatasetType(String datasetType) { + this.datasetType = datasetType; + return this; + } + + /** + *

+ * The dataset type. You can specify that the data in a dataset is for + * training the model or for testing the model. + *

+ *

+ * Constraints:
+ * Allowed Values: TRAIN, TEST + * + * @param datasetType

+ * The dataset type. You can specify that the data in a dataset + * is for training the model or for testing the model. + *

+ * @see DatasetType + */ + public void setDatasetType(DatasetType datasetType) { + this.datasetType = datasetType.toString(); + } + + /** + *

+ * The dataset type. You can specify that the data in a dataset is for + * training the model or for testing the model. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Allowed Values: TRAIN, TEST + * + * @param datasetType

+ * The dataset type. You can specify that the data in a dataset + * is for training the model or for testing the model. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetType + */ + public CreateDatasetRequest withDatasetType(DatasetType datasetType) { + this.datasetType = datasetType.toString(); + return this; + } + + /** + *

+ * Description of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ * + * @return

+ * Description of the dataset. + *

+ */ + public String getDescription() { + return description; + } + + /** + *

+ * Description of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ * + * @param description

+ * Description of the dataset. + *

+ */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

+ * Description of the dataset. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ * + * @param description

+ * Description of the dataset. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetRequest withDescription(String description) { + this.description = description; + return this; + } + + /** + *

+ * Information about the input data configuration. The type of input data + * varies based on the format of the input and whether the data is for a + * classifier model or an entity recognition model. + *

+ * + * @return

+ * Information about the input data configuration. The type of input + * data varies based on the format of the input and whether the data + * is for a classifier model or an entity recognition model. + *

+ */ + public DatasetInputDataConfig getInputDataConfig() { + return inputDataConfig; + } + + /** + *

+ * Information about the input data configuration. The type of input data + * varies based on the format of the input and whether the data is for a + * classifier model or an entity recognition model. + *

+ * + * @param inputDataConfig

+ * Information about the input data configuration. The type of + * input data varies based on the format of the input and whether + * the data is for a classifier model or an entity recognition + * model. + *

+ */ + public void setInputDataConfig(DatasetInputDataConfig inputDataConfig) { + this.inputDataConfig = inputDataConfig; + } + + /** + *

+ * Information about the input data configuration. The type of input data + * varies based on the format of the input and whether the data is for a + * classifier model or an entity recognition model. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param inputDataConfig

+ * Information about the input data configuration. The type of + * input data varies based on the format of the input and whether + * the data is for a classifier model or an entity recognition + * model. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetRequest withInputDataConfig(DatasetInputDataConfig inputDataConfig) { + this.inputDataConfig = inputDataConfig; + return this; + } + + /** + *

+ * A 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-]+$
+ * + * @return

+ * A unique identifier for the request. If you don't set the client + * request token, Amazon Comprehend generates one. + *

+ */ + public String getClientRequestToken() { + return clientRequestToken; + } + + /** + *

+ * A 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-]+$
+ * + * @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. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 1 - 64
+ * Pattern: ^[a-zA-Z0-9-]+$
+ * + * @param clientRequestToken

+ * A unique identifier for the request. If you don't set the + * client request token, Amazon Comprehend generates one. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetRequest withClientRequestToken(String clientRequestToken) { + this.clientRequestToken = clientRequestToken; + return this; + } + + /** + *

+ * Tags for the dataset. + *

+ * + * @return

+ * Tags for the dataset. + *

+ */ + public java.util.List getTags() { + return tags; + } + + /** + *

+ * Tags for the dataset. + *

+ * + * @param tags

+ * Tags for the dataset. + *

+ */ + public void setTags(java.util.Collection tags) { + if (tags == null) { + this.tags = null; + return; + } + + this.tags = new java.util.ArrayList(tags); + } + + /** + *

+ * Tags for the dataset. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

+ * Tags for the dataset. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetRequest withTags(Tag... tags) { + if (getTags() == null) { + this.tags = new java.util.ArrayList(tags.length); + } + for (Tag value : tags) { + this.tags.add(value); + } + return this; + } + + /** + *

+ * Tags for the dataset. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

+ * Tags for the dataset. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetRequest withTags(java.util.Collection tags) { + setTags(tags); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFlywheelArn() != null) + sb.append("FlywheelArn: " + getFlywheelArn() + ","); + if (getDatasetName() != null) + sb.append("DatasetName: " + getDatasetName() + ","); + if (getDatasetType() != null) + sb.append("DatasetType: " + getDatasetType() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription() + ","); + if (getInputDataConfig() != null) + sb.append("InputDataConfig: " + getInputDataConfig() + ","); + if (getClientRequestToken() != null) + sb.append("ClientRequestToken: " + getClientRequestToken() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getFlywheelArn() == null) ? 0 : getFlywheelArn().hashCode()); + hashCode = prime * hashCode + + ((getDatasetName() == null) ? 0 : getDatasetName().hashCode()); + hashCode = prime * hashCode + + ((getDatasetType() == null) ? 0 : getDatasetType().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + hashCode = prime * hashCode + + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode()); + hashCode = prime * hashCode + + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateDatasetRequest == false) + return false; + CreateDatasetRequest other = (CreateDatasetRequest) obj; + + if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) + return false; + if (other.getFlywheelArn() != null + && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) + return false; + if (other.getDatasetName() == null ^ this.getDatasetName() == null) + return false; + if (other.getDatasetName() != null + && other.getDatasetName().equals(this.getDatasetName()) == false) + return false; + if (other.getDatasetType() == null ^ this.getDatasetType() == null) + return false; + if (other.getDatasetType() != null + && other.getDatasetType().equals(this.getDatasetType()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + if (other.getInputDataConfig() == null ^ this.getInputDataConfig() == null) + return false; + if (other.getInputDataConfig() != null + && other.getInputDataConfig().equals(this.getInputDataConfig()) == false) + return false; + if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) + return false; + if (other.getClientRequestToken() != null + && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetResult.java new file mode 100644 index 00000000000..52a7ef00b37 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDatasetResult.java @@ -0,0 +1,145 @@ +/* + * Copyright 2010-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; + +public class CreateDatasetResult implements Serializable { + /** + *

+ * The ARN of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9]){@literal *} + * /dataset/[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ */ + private String datasetArn; + + /** + *

+ * The ARN of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9]){@literal *} + * /dataset/[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ * + * @return

+ * The ARN of the dataset. + *

+ */ + public String getDatasetArn() { + return datasetArn; + } + + /** + *

+ * The ARN of the dataset. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9]){@literal *} + * /dataset/[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ * + * @param datasetArn

+ * The ARN of the dataset. + *

+ */ + public void setDatasetArn(String datasetArn) { + this.datasetArn = datasetArn; + } + + /** + *

+ * The ARN of the dataset. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: - 256
+ * Pattern: + * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel + * /[a-zA-Z0-9](-*[a-zA-Z0-9]){@literal *} + * /dataset/[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ * + * @param datasetArn

+ * The ARN of the dataset. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateDatasetResult withDatasetArn(String datasetArn) { + this.datasetArn = datasetArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getDatasetArn() != null) + sb.append("DatasetArn: " + getDatasetArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDatasetArn() == null) ? 0 : getDatasetArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateDatasetResult == false) + return false; + CreateDatasetResult other = (CreateDatasetResult) obj; + + if (other.getDatasetArn() == null ^ this.getDatasetArn() == null) + return false; + if (other.getDatasetArn() != null + && other.getDatasetArn().equals(this.getDatasetArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierRequest.java index 8fb2f9901ac..08d8b11f035 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-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. @@ -22,12 +22,11 @@ /** *

* Creates a new document classifier that you can use to categorize documents. - * To create a classifier, you provide a set of training documents that labeled - * with the categories that you want to use. After the classifier is trained you - * can use it to categorize a set of labeled documents into the categories. For - * more information, see Document Classification in the Comprehend Developer Guide. + * To create a classifier, you provide a set of training documents that are + * labeled with the categories that you want to use. For more information, see + * Training classifier models in the Comprehend Developer Guide. *

*/ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest implements @@ -48,7 +47,8 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp * The version name given to the newly created classifier. Version names can * have a maximum of 256 characters. Alphanumeric characters, hyphens (-) * and underscores (_) are allowed. The version name must be unique among - * all models with the same classifier name in the account/AWS Region. + * all models with the same classifier name in the Amazon Web Services + * account/Amazon Web Services Region. *

*

* Constraints:
@@ -59,8 +59,8 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp /** *

- * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) - * role that grants Amazon Comprehend read access to your input data. + * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend read access to your input data. *

*

* Constraints:
@@ -71,10 +71,10 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp /** *

- * Tags to be associated with the document classifier being created. A tag - * is a key-value pair that adds as a 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. + * Tags to associate with the document classifier. A tag is a key-value pair + * that adds as a 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 tags; @@ -88,8 +88,9 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp /** *

- * Enables the addition of output results configuration parameters for - * custom classifier jobs. + * Specifies the location for the output files from a custom classifier job. + * This parameter is required for a request that creates a native classifier + * model. *

*/ private DocumentClassifierOutputDataConfig outputDataConfig; @@ -108,10 +109,9 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp /** *

- * The language of the input documents. You can specify any of the following - * languages supported by Amazon Comprehend: German ("de"), English ("en"), - * Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All - * documents must be in the same language. + * The language of the input documents. You can specify any of the languages + * supported by Amazon Comprehend. All documents must be in the same + * language. *

*

* Constraints:
@@ -121,10 +121,10 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp /** *

- * ID for the AWS Key Management Service (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: + * ID for the Amazon Web Services Key Management Service (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: *

*