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.
+ *
+ * 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.
*
+ * 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
* 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.
*
+ * List the datasets that you have configured in this Region. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* 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.
+ *
+ * Gets a list of the flywheels that you have created.
+ *
* 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.
*
- * Starts an asynchronous document classification job. Use the operation to
- * track the progress of the job.
+ * Starts an asynchronous document classification job. Use the
+ *
+ * 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.
+ *
* 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
+ * Update the configuration information for an existing flywheel.
+ *
- * 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.
* Errors
for
+ * each error.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * DescribeDocumentClassificationJob
operation to track the
+ * progress of the job.
* DescribeTargetedSentimentDetectionJob
+ * operation to track the status of a job.
*
+ * 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.
+ *
+ * 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.
+ *
+ * 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+ * 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* 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* 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
* 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.
*
* 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.
*
+ * 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+ * 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
* Deletes a previously created document classifier
@@ -962,6 +1164,73 @@ Future
+ * 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.
+ *
+ * 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.
+ *
* Deletes a resource-based policy that is attached to a custom model.
@@ -1015,6 +1284,64 @@ Future
+ * Returns information about the dataset that you specify. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Returns information about the dataset that you specify. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* Gets the properties associated with a document classification job. Use
@@ -1416,6 +1743,128 @@ Future
+ * Provides configuration information about the flywheel. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Provides configuration information about the flywheel. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Retrieve the configuration properties of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Retrieve the configuration properties of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* Gets the properties associated with a key phrases detection job. Use this
@@ -1817,10 +2266,32 @@ Future
- * 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
- * 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
* 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.
*
* 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.
*
+ * List the datasets that you have configured in this Region. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * List the datasets that you have configured in this Region. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* Gets a list of the documentation classification jobs that you have
@@ -2760,6 +3316,120 @@ Future
+ * Information about the history of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Information about the history of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Gets a list of the flywheels that you have created.
+ *
+ * Gets a list of the flywheels that you have created.
+ *
* Get a list of key phrase detection jobs that you have submitted.
@@ -3091,8 +3761,9 @@ Future
* 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.
*
* 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.
*
- * Starts an asynchronous document classification job. Use the operation to
- * track the progress of the job.
+ * Starts an asynchronous document classification job. Use the
+ *
- * Starts an asynchronous document classification job. Use the operation to
- * track the progress of the job.
+ * Starts an asynchronous document classification job. Use the
+ *
+ * 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.
+ *
+ * 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.
+ *
* Starts an asynchronous key phrase detection job for a collection of
@@ -3413,6 +4160,7 @@ Future
* 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
* 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
+ * Update the configuration information for an existing flywheel.
+ *
+ * Update the configuration information for an existing flywheel.
+ *
- * 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.
*
+ * 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
+ * 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
+ * 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.
+ *
+ * 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.
+ *
* 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.
*
* 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.
*
* Creates an entity recognizer using submitted files. After your
*
* Creates an entity recognizer using submitted files. After your
*
+ * 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.
+ *
+ * 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.
+ *
* 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.
+ *
+ * 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.
+ *
* 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.
+ *
+ * Returns information about the dataset that you specify. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* 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.
+ *
+ * Provides configuration information about the flywheel. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Retrieve the configuration properties of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Retrieve the configuration properties of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
- * 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
* 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.
*
- * 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.
+ *
+ * List the datasets that you have configured in this Region. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * List the datasets that you have configured in this Region. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
*
+ * Information about the history of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Information about the history of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * Gets a list of the flywheels that you have created.
+ *
+ * Gets a list of the flywheels that you have created.
+ *
* 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.
*
* 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.
*
- * Starts an asynchronous document classification job. Use the operation to
- * track the progress of the job.
+ * Starts an asynchronous document classification job. Use the
+ *
- * Starts an asynchronous document classification job. Use the operation to
- * track the progress of the job.
+ * Starts an asynchronous document classification job. Use the
+ *
+ * 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.
+ *
+ * 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.
+ *
* 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
* 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
+ * Update the configuration information for an existing flywheel.
+ *
+ * Update the configuration information for an existing flywheel.
+ *
*
- * 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.
*
+ * 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
+ * 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.
+ *
* 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.
*
* Creates an entity recognizer using submitted files. After your
*
+ * 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.
+ *
* 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.
+ *
* 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.
+ *
* 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.
+ *
+ * Retrieve the configuration properties of a flywheel iteration. For more
+ * information about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* 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
+ * If the system detects a document-level error in your input document, the
+ * API returns an
* 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.
*
+ * List the datasets that you have configured in this Region. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
* 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.
+ *
+ * Gets a list of the flywheels that you have created.
+ *
* 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.
*
- * Starts an asynchronous document classification job. Use the operation to
- * track the progress of the job.
+ * Starts an asynchronous document classification job. Use the
+ *
+ * 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.
+ *
* 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
+ * Update the configuration information for an existing flywheel.
+ *
- * Amazon Comprehend performs real-time sentiment analysis on the first 500
- * characters of the input text and ignores any additional text in the
- * input.
- *
- * Amazon Comprehend performs real-time sentiment analysis on the first 500
- * characters of the input text and ignores any additional text in the
- * input.
- *
* 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.
- *
- * Amazon Comprehend performs real-time sentiment analysis on the first 500
- * characters of the input text and ignores any additional text in the
- * input.
- *
* 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.
- *
- * 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
- * Amazon Comprehend performs real-time sentiment analysis on the
- * first 500 characters of the input text and ignores any
- * additional text in the input.
- *
- * 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.
- *
+ * Information about each word or line of text in the input document.
+ *
+ * For additional information, see Block in the Amazon Textract API reference.
+ *
+ * Unique identifier for the block.
+ *
+ * Constraints:
+ * 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:
+ * The word or line of text extracted from the block.
+ *
+ * Constraints:
+ * Page number where the block appears.
+ *
+ * Co-ordinates of the rectangle or polygon that contains the text.
+ *
+ * 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.
+ *
+ * Unique identifier for the block.
+ *
+ * Constraints:
+ * Unique identifier for the block.
+ *
+ * Unique identifier for the block.
+ *
+ * Constraints:
+ * Unique identifier for the block.
+ *
+ * Unique identifier for the block.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Unique identifier for the block.
+ *
+ * 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:
+ * 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
+ *
+ * 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:
+ * 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
+ *
+ * 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:
+ * 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
+ *
+ * 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:
+ * 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
+ *
+ * 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:
+ * 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
+ *
+ * The word or line of text extracted from the block.
+ *
+ * Constraints:
+ * The word or line of text extracted from the block.
+ *
+ * The word or line of text extracted from the block.
+ *
+ * Constraints:
+ * The word or line of text extracted from the block.
+ *
+ * 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:
+ * The word or line of text extracted from the block.
+ *
+ * Page number where the block appears.
+ *
+ * Page number where the block appears.
+ *
+ * Page number where the block appears.
+ *
+ * Page number where the block appears.
+ *
+ * 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.
+ *
+ * Co-ordinates of the rectangle or polygon that contains the text.
+ *
+ * Co-ordinates of the rectangle or polygon that contains the text.
+ *
+ * Co-ordinates of the rectangle or polygon that contains the text.
+ *
+ * Co-ordinates of the rectangle or polygon that contains the
+ * text.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * A reference to a block.
+ *
+ * Unique identifier for the block.
+ *
+ * Constraints:
+ * Offset of the start of the block within its parent block.
+ *
+ * Offset of the end of the block within its parent block.
+ *
+ * List of child blocks within this block.
+ *
+ * Unique identifier for the block.
+ *
+ * Constraints:
+ * Unique identifier for the block.
+ *
+ * Unique identifier for the block.
+ *
+ * Constraints:
+ * Unique identifier for the block.
+ *
+ * Unique identifier for the block.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Unique identifier for the block.
+ *
+ * Offset of the start of the block within its parent block.
+ *
+ * Offset of the start of the block within its parent block.
+ *
+ * Offset of the start of the block within its parent block.
+ *
+ * Offset of the start of the block within its parent block.
+ *
+ * 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.
+ *
+ * Offset of the end of the block within its parent block.
+ *
+ * Offset of the end of the block within its parent block.
+ *
+ * Offset of the end of the block within its parent block.
+ *
+ * Offset of the end of the block within its parent block.
+ *
+ * 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.
+ *
+ * List of child blocks within this block.
+ *
+ * List of child blocks within this block.
+ *
+ * List of child blocks within this block.
+ *
+ * List of child blocks within this block.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * The height of the bounding box as a ratio of the overall document page
+ * height.
+ *
+ * The left coordinate of the bounding box as a ratio of overall document
+ * page width.
+ *
+ * The top coordinate of the bounding box as a ratio of overall document
+ * page height.
+ *
+ * The width of the bounding box as a ratio of the overall document page
+ * width.
+ *
+ * The height of the bounding box as a ratio of the overall document page
+ * height.
+ *
+ * The height of the bounding box as a ratio of the overall document
+ * page height.
+ *
+ * The height of the bounding box as a ratio of the overall document page
+ * height.
+ *
+ * The height of the bounding box as a ratio of the overall
+ * document page 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.
+ *
+ * The left coordinate of the bounding box as a ratio of overall document
+ * page width.
+ *
+ * The left coordinate of the bounding box as a ratio of overall
+ * document page width.
+ *
+ * The left coordinate of the bounding box as a ratio of overall document
+ * page width.
+ *
+ * The left coordinate of the bounding box as a ratio of overall
+ * document page width.
+ *
+ * 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.
+ *
+ * The top coordinate of the bounding box as a ratio of overall document
+ * page height.
+ *
+ * The top coordinate of the bounding box as a ratio of overall
+ * document page height.
+ *
+ * The top coordinate of the bounding box as a ratio of overall document
+ * page height.
+ *
+ * The top coordinate of the bounding box as a ratio of overall
+ * document page height.
+ *
+ * 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.
+ *
+ * The width of the bounding box as a ratio of the overall document page
+ * width.
+ *
+ * The width of the bounding box as a ratio of the overall document
+ * page width.
+ *
+ * The width of the bounding box as a ratio of the overall document page
+ * width.
+ *
+ * The width of the bounding box as a ratio of the overall
+ * document page 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.
+ *
+ * Nested block contained within a block.
+ *
+ * Unique identifier for the child block.
+ *
+ * Constraints:
+ * Offset of the start of the child block within its parent block.
+ *
+ * Offset of the end of the child block within its parent block.
+ *
+ * Unique identifier for the child block.
+ *
+ * Constraints:
+ * Unique identifier for the child block.
+ *
+ * Unique identifier for the child block.
+ *
+ * Constraints:
+ * Unique identifier for the child block.
+ *
+ * Unique identifier for the child block.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Unique identifier for the child block.
+ *
+ * Offset of the start of the child block within its parent block.
+ *
+ * Offset of the start of the child block within its parent block.
+ *
+ * Offset of the start of the child block within its parent block.
+ *
+ * Offset of the start of the child block within its parent
+ * block.
+ *
+ * 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.
+ *
+ * Offset of the end of the child block within its parent block.
+ *
+ * Offset of the end of the child block within its parent block.
+ *
+ * Offset of the end of the child block within its parent block.
+ *
+ * Offset of the end of the child block within its parent block.
+ *
+ * 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.
+ *
+ * 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
+ * If the system detects a document-level error in your input document, the API
+ * returns an
- * The document text to be analyzed.
+ * The document text to be analyzed. If you enter text using this parameter,
+ * do not use the
* Constraints:
- * The document text to be analyzed.
+ * Use the
+ * 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
+ * Constraints:
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * The document text to be analyzed. If you enter text using this parameter,
+ * do not use the
* Constraints:
- * The document text to be analyzed.
+ * The document text to be analyzed. If you enter text using this
+ * parameter, do not use the
- * The document text to be analyzed.
+ * The document text to be analyzed. If you enter text using this parameter,
+ * do not use the
* Constraints:
- * The document text to be analyzed.
+ * The document text to be analyzed. If you enter text using this
+ * parameter, do not use the
- * The document text to be analyzed.
+ * The document text to be analyzed. If you enter text using this parameter,
+ * do not use the
* Returns a reference to this object so that method calls can be chained
@@ -97,7 +156,8 @@ public void setText(String text) {
* Length: 1 -
- * The document text to be analyzed.
+ * The document text to be analyzed. If you enter text using this
+ * parameter, do not use the
+ * Use the
+ * 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
+ * Constraints:
+ * Use the
+ * 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
+ * Use the
+ * 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
+ * Constraints:
+ * Use the
+ * 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
+ * Use the
+ * 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
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Use the
+ * 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
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * Provides configuration parameters to override the default actions
+ * for extracting text from PDF documents and image files.
+ *
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * Provides configuration parameters to override the default
+ * actions for extracting text from PDF documents and image
+ * files.
+ *
+ * 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.
+ *
+ * Extraction information about the document. This field is present in the
+ * response only if your request includes the
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request includes the
+ *
+ * Page-level errors that the system detected while processing the input
+ * document. The field is empty if the system encountered no 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.
+ *
* The classes used by the document being analyzed. These are used for
@@ -256,6 +295,367 @@ public ClassifyDocumentResult withLabels(java.util.Collection
+ * Extraction information about the document. This field is present in the
+ * response only if your request includes the
+ * Extraction information about the document. This field is present
+ * in the response only if your request includes the
+ *
+ * Extraction information about the document. This field is present in the
+ * response only if your request includes the
+ * Extraction information about the document. This field is
+ * present in the response only if your request includes the
+ *
+ * Extraction information about the document. This field is present in the
+ * response only if your request includes the
+ * 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
+ *
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request includes the
+ *
+ * The document type for each page in the input document. This field
+ * is present in the response only if your request includes the
+ *
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request includes the
+ *
+ * The document type for each page in the input document. This
+ * field is present in the response only if your request includes
+ * the
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request includes the
+ *
+ * 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
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request includes the
+ *
+ * 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
+ * Page-level errors that the system detected while processing the input
+ * document. The field is empty if the system encountered no errors.
+ *
+ * Page-level errors that the system detected while processing the
+ * input document. The field is empty if the system encountered no
+ * errors.
+ *
+ * Page-level errors that the system detected while processing the input
+ * document. The field is empty if the system encountered no errors.
+ *
+ * Page-level errors that the system detected while processing
+ * the input document. The field is empty if the system
+ * encountered no 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel to
+ * receive the data.
+ *
+ * Constraints:
+ * Name of the dataset.
+ *
+ * Constraints:
+ * The dataset type. You can specify that the data in a dataset is for
+ * training the model or for testing the model.
+ *
+ * Constraints:
+ * Description of the dataset.
+ *
+ * Constraints:
+ * 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.
+ *
+ * A unique identifier for the request. If you don't set the client request
+ * token, Amazon Comprehend generates one.
+ *
+ * Constraints:
+ * Tags for the dataset.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel to
+ * receive the data.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel
+ * to receive the data.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel of the flywheel to
+ * receive the data.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel of the
+ * flywheel to receive the data.
+ *
+ * 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:
+ * The Amazon Resource Number (ARN) of the flywheel of the
+ * flywheel to receive the data.
+ *
+ * Name of the dataset.
+ *
+ * Constraints:
+ * Name of the dataset.
+ *
+ * Name of the dataset.
+ *
+ * Constraints:
+ * Name of the dataset.
+ *
+ * Name of the dataset.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Name of the dataset.
+ *
+ * The dataset type. You can specify that the data in a dataset is for
+ * training the model or for testing the model.
+ *
+ * Constraints:
+ * The dataset type. You can specify that the data in a dataset is
+ * for training the model or for testing the model.
+ *
+ * The dataset type. You can specify that the data in a dataset is for
+ * training the model or for testing the model.
+ *
+ * Constraints:
+ * The dataset type. You can specify that the data in a dataset
+ * is for training the model or for testing the model.
+ *
+ * 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:
+ * The dataset type. You can specify that the data in a dataset
+ * is for training the model or for testing the model.
+ *
+ * The dataset type. You can specify that the data in a dataset is for
+ * training the model or for testing the model.
+ *
+ * Constraints:
+ * The dataset type. You can specify that the data in a dataset
+ * is for training the model or for testing the model.
+ *
+ * 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:
+ * The dataset type. You can specify that the data in a dataset
+ * is for training the model or for testing the model.
+ *
+ * Description of the dataset.
+ *
+ * Constraints:
+ * Description of the dataset.
+ *
+ * Description of the dataset.
+ *
+ * Constraints:
+ * Description of the dataset.
+ *
+ * Description of the dataset.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Description of the dataset.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * A unique identifier for the request. If you don't set the client request
+ * token, Amazon Comprehend generates one.
+ *
+ * Constraints:
+ * A unique identifier for the request. If you don't set the client
+ * request token, Amazon Comprehend generates one.
+ *
+ * A unique identifier for the request. If you don't set the client request
+ * token, Amazon Comprehend generates one.
+ *
+ * Constraints:
+ * A unique identifier for the request. If you don't set the
+ * client request token, Amazon Comprehend generates one.
+ *
+ * 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:
+ * A unique identifier for the request. If you don't set the
+ * client request token, Amazon Comprehend generates one.
+ *
+ * Tags for the dataset.
+ *
+ * Tags for the dataset.
+ *
+ * Tags for the dataset.
+ *
+ * Tags for the dataset.
+ *
+ * Tags for the dataset.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param tags
+ * Tags for the dataset.
+ *
+ * Tags for the dataset.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param tags
+ * Tags for the dataset.
+ *
+ * The ARN of the dataset.
+ *
+ * Constraints:
+ * The ARN of the dataset.
+ *
+ * Constraints:
+ * The ARN of the dataset.
+ *
+ * The ARN of the dataset.
+ *
+ * Constraints:
+ * The ARN of the dataset.
+ *
+ * The ARN of the dataset.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The ARN of the dataset.
+ *
* 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.
*
* Constraints:
- * 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:
- * 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.
*
- * 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.
*
- * 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:
- * 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:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt trained custom models. The ModelKmsKeyId can be either of
- * the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom
+ * models. The ModelKmsKeyId can be either of the following formats:
*
* The resource-based policy to attach to your custom document classifier
- * model. You can use this policy to allow another AWS account to import
- * your custom model.
+ * model. You can use this policy to allow another Amazon Web Services
+ * account to import your custom model.
*
* Provide your policy as a JSON body that you enter as a UTF-8 encoded
@@ -290,7 +289,8 @@ public CreateDocumentClassifierRequest withDocumentClassifierName(String documen
* 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:
* Constraints:Errors
for
+ * each error.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
* Errors
for
+ * each error.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * DescribeDocumentClassificationJob
operation to track the
+ * progress of the job.
* DescribeDocumentClassificationJob
operation to track the
+ * progress of the job.
* DescribeTargetedSentimentDetectionJob
+ * operation to track the status of a job.
* DescribeTargetedSentimentDetectionJob
+ * operation to track the status of a job.
* Errors
that
+ * describes the errors.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * Errors
that
+ * describes the errors.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * CreateEntityRecognizer
request is submitted, you can check
- * job status using the API.
+ * job status using the DescribeEntityRecognizer
API.
* CreateEntityRecognizer
request is submitted, you can check
- * job status using the API.
+ * job status using the DescribeEntityRecognizer
API.
* Errors
for
+ * each error.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * Errors
for
+ * each error.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * DescribeDocumentClassificationJob
operation to track the
+ * progress of the job.
* DescribeDocumentClassificationJob
operation to track the
+ * progress of the job.
* DescribeTargetedSentimentDetectionJob
+ * operation to track the status of a job.
* DescribeTargetedSentimentDetectionJob
+ * operation to track the status of a job.
* Errors
that
+ * describes the errors.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * CreateEntityRecognizer
request is submitted, you can check
- * job status using the API.
+ * job status using the DescribeEntityRecognizer
API.
* Errors
for
+ * each error.
+ * InvalidRequestException
error response. For
+ * details about this exception, see Errors in semi-structured documents in the Comprehend Developer
+ * Guide.
+ * DescribeDocumentClassificationJob
operation to track the
+ * progress of the job.
* DescribeTargetedSentimentDetectionJob
+ * operation to track the status of a job.
*
+ * Length: 1 -
+ */
+ private String id;
+
+ /**
+ *
+ *
+ *
+ * Allowed Values: LINE, WORD
+ */
+ private String blockType;
+
+ /**
+ *
+ * Length: 1 -
+ */
+ private String text;
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param id
+ * Length: 1 -
+ *
+ * @param id
+ *
+ *
+ * Allowed Values: LINE, WORD
+ *
+ * @return
+ *
+ * @see BlockType
+ */
+ public String getBlockType() {
+ return blockType;
+ }
+
+ /**
+ *
+ *
+ *
+ * Allowed Values: LINE, WORD
+ *
+ * @param blockType
+ *
+ * @see BlockType
+ */
+ public void setBlockType(String blockType) {
+ this.blockType = blockType;
+ }
+
+ /**
+ *
+ *
+ *
+ * Allowed Values: LINE, WORD
+ *
+ * @param blockType
+ *
+ * @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;
+ }
+
+ /**
+ *
+ *
+ *
+ * Allowed Values: LINE, WORD
+ *
+ * @param blockType
+ *
+ * @see BlockType
+ */
+ public void setBlockType(BlockType blockType) {
+ this.blockType = blockType.toString();
+ }
+
+ /**
+ *
+ *
+ *
+ * Allowed Values: LINE, WORD
+ *
+ * @param blockType
+ *
+ * @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;
+ }
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param text
+ * Length: 1 -
+ *
+ * @param text
+ * Length: 1 -
+ */
+ private String blockId;
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param blockId
+ * Length: 1 -
+ *
+ * @param blockId
+ * Length: 1 -
+ */
+ private String childBlockId;
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param childBlockId
+ * Length: 1 -
+ *
+ * @param childBlockId Errors
that describes the
+ * errors.
+ * InvalidRequestException
error response. For details
+ * about this exception, see
+ * Errors in semi-structured documents in the Comprehend Developer Guide.
+ * Bytes
parameter.
*
@@ -55,14 +72,53 @@ public class ClassifyDocumentRequest extends AmazonWebServiceRequest implements
/**
* 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.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ */
+ private java.nio.ByteBuffer bytes;
+
+ /**
+ * Bytes
parameter.
*
* Length: 1 -
*
* @return Bytes
parameter.
* Bytes
parameter.
*
* Length: 1 -
*
* @param text Bytes
parameter.
* Bytes
parameter.
*
*
* @param text Bytes
parameter.
* 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.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ *
+ * @return 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.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ * 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.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ *
+ * @param bytes 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.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ * 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.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ *
+ * @param bytes 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.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ *
+ * 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;
+
+ /**
+ *
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ */
+ private String datasetName;
+
+ /**
+ *
+ * Allowed Values: TRAIN, TEST
+ */
+ private String datasetType;
+
+ /**
+ *
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ */
+ private String description;
+
+ /**
+ *
+ * Length: 1 - 64
+ * Pattern: ^[a-zA-Z0-9-]+$
+ */
+ private String clientRequestToken;
+
+ /**
+ *
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ *
+ * @return
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ *
+ * @param datasetName
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ *
+ * @param datasetName
+ * Allowed Values: TRAIN, TEST
+ *
+ * @return
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ *
+ * @return
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ *
+ * @param description
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ *
+ * @param description
+ * Length: 1 - 64
+ * Pattern: ^[a-zA-Z0-9-]+$
+ *
+ * @return
+ * Length: 1 - 64
+ * Pattern: ^[a-zA-Z0-9-]+$
+ *
+ * @param clientRequestToken
+ * Length: 1 - 64
+ * Pattern: ^[a-zA-Z0-9-]+$
+ *
+ * @param clientRequestToken
+ * 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;
+
+ /**
+ *
+ * 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
+ * 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
+ * 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
@@ -59,8 +59,8 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp
/**
*
@@ -71,10 +71,10 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp
/**
*
@@ -121,10 +121,10 @@ public class CreateDocumentClassifierRequest extends AmazonWebServiceRequest imp
/**
*
*
*
@@ -302,7 +302,8 @@ public CreateDocumentClassifierRequest withDocumentClassifierName(String documen
* 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.
+ * classifier name in the Amazon Web Services account/Amazon Web
+ * Services Region.
*
@@ -326,7 +328,8 @@ public String getVersionName() {
* 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.
+ * the same classifier name in the Amazon Web Services
+ * account/Amazon Web Services Region.
*
* Returns a reference to this object so that method calls can be chained @@ -353,7 +357,8 @@ public void setVersionName(String versionName) { * 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. + * the same classifier name in the Amazon Web Services + * account/Amazon Web Services Region. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -365,8 +370,8 @@ public CreateDocumentClassifierRequest withVersionName(String versionName) { /** *- * 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:
@@ -374,9 +379,8 @@ public CreateDocumentClassifierRequest withVersionName(String versionName) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
- * 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. *
*/ public String getDataAccessRoleArn() { @@ -385,8 +389,8 @@ public String getDataAccessRoleArn() { /** *- * 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:
@@ -394,9 +398,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * 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. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { @@ -405,8 +408,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) { /** *- * 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. *
*
* Returns a reference to this object so that method calls can be chained
@@ -417,9 +420,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -431,17 +433,17 @@ public CreateDocumentClassifierRequest withDataAccessRoleArn(String dataAccessRo /** *- * 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. *
* * @return- * 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 + * 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. *
*/ @@ -451,18 +453,18 @@ public java.util.List- * 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. *
* * @param tags- * 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. *
*/ public void setTags(java.util.Collection- * 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
- * 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -507,21 +509,21 @@ public CreateDocumentClassifierRequest withTags(Tag... tags) { /** *- * 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
- * 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -581,13 +583,15 @@ public CreateDocumentClassifierRequest withInputDataConfig( /** *- * 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. *
* * @return- * 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. *
*/ public DocumentClassifierOutputDataConfig getOutputDataConfig() { @@ -596,13 +600,15 @@ public DocumentClassifierOutputDataConfig getOutputDataConfig() { /** *- * 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. *
* * @param outputDataConfig- * 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. *
*/ public void setOutputDataConfig(DocumentClassifierOutputDataConfig outputDataConfig) { @@ -611,16 +617,18 @@ public void setOutputDataConfig(DocumentClassifierOutputDataConfig outputDataCon /** *- * 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param outputDataConfig
- * 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -696,10 +704,9 @@ public CreateDocumentClassifierRequest withClientRequestToken(String clientReque /** *- * 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:
@@ -707,10 +714,8 @@ public CreateDocumentClassifierRequest withClientRequestToken(String clientReque
*
* @return
* 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. + * languages supported by Amazon Comprehend. All documents must be + * in the same language. *
* @see LanguageCode */ @@ -720,10 +725,9 @@ public String getLanguageCode() { /** *- * 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:
@@ -731,10 +735,8 @@ public String getLanguageCode() {
*
* @param languageCode
* 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 languages supported by Amazon Comprehend. All documents + * must be in the same language. *
* @see LanguageCode */ @@ -744,10 +746,9 @@ public void setLanguageCode(String languageCode) { /** *- * 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. *
** Returns a reference to this object so that method calls can be chained @@ -758,10 +759,8 @@ public void setLanguageCode(String languageCode) { * * @param languageCode
* 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 languages supported by Amazon Comprehend. All documents + * must be in the same language. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -774,10 +773,9 @@ public CreateDocumentClassifierRequest withLanguageCode(String languageCode) { /** *- * 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:
@@ -785,10 +783,8 @@ public CreateDocumentClassifierRequest withLanguageCode(String languageCode) {
*
* @param languageCode
* 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 languages supported by Amazon Comprehend. All documents + * must be in the same language. *
* @see LanguageCode */ @@ -798,10 +794,9 @@ public void setLanguageCode(LanguageCode languageCode) { /** *- * 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. *
** Returns a reference to this object so that method calls can be chained @@ -812,10 +807,8 @@ public void setLanguageCode(LanguageCode languageCode) { * * @param languageCode
* 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 languages supported by Amazon Comprehend. All documents + * must be in the same language. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -828,10 +821,10 @@ public CreateDocumentClassifierRequest withLanguageCode(LanguageCode languageCod /** *- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained + * custom models. The ModelKmsKeyId can be either of the following + * formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
** The resource-based policy to attach to your custom document classifier - * model. You can use this policy to allow another AWS account to import - * your custom model. + * model. You can use this policy to allow another Amazon Web Services + * account to import your custom model. *
** Provide your policy as a JSON body that you enter as a UTF-8 encoded @@ -1381,8 +1373,8 @@ public CreateDocumentClassifierRequest withModelKmsKeyId(String modelKmsKeyId) { * * @return
* The resource-based policy to attach to your custom document - * classifier model. You can use this policy to allow another AWS - * account to import your custom model. + * classifier model. You can use this policy to allow another Amazon + * Web Services account to import your custom model. *
** Provide your policy as a JSON body that you enter as a UTF-8 @@ -1410,8 +1402,8 @@ public String getModelPolicy() { /** *
* The resource-based policy to attach to your custom document classifier - * model. You can use this policy to allow another AWS account to import - * your custom model. + * model. You can use this policy to allow another Amazon Web Services + * account to import your custom model. *
** Provide your policy as a JSON body that you enter as a UTF-8 encoded @@ -1437,8 +1429,8 @@ public String getModelPolicy() { * * @param modelPolicy
* The resource-based policy to attach to your custom document - * classifier model. You can use this policy to allow another AWS - * account to import your custom model. + * classifier model. You can use this policy to allow another + * Amazon Web Services account to import your custom model. *
** Provide your policy as a JSON body that you enter as a UTF-8 @@ -1466,8 +1458,8 @@ public void setModelPolicy(String modelPolicy) { /** *
* The resource-based policy to attach to your custom document classifier - * model. You can use this policy to allow another AWS account to import - * your custom model. + * model. You can use this policy to allow another Amazon Web Services + * account to import your custom model. *
** Provide your policy as a JSON body that you enter as a UTF-8 encoded @@ -1496,8 +1488,8 @@ public void setModelPolicy(String modelPolicy) { * * @param modelPolicy
* The resource-based policy to attach to your custom document - * classifier model. You can use this policy to allow another AWS - * account to import your custom model. + * classifier model. You can use this policy to allow another + * Amazon Web Services account to import your custom model. *
** Provide your policy as a JSON body that you enter as a UTF-8 diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierResult.java index df770696b23..e7e35822ab1 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateDocumentClassifierResult.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/CreateEndpointRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEndpointRequest.java index 5afb98b202b..129cbd35c00 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEndpointRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEndpointRequest.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. @@ -84,9 +84,9 @@ public class CreateEndpointRequest extends AmazonWebServiceRequest implements Se /** *
- * Tags associated with the endpoint being created. A tag is a key-value - * pair that adds metadata to the endpoint. For example, a tag with "Sales" - * as the key might be added to an endpoint to indicate its use by the sales + * Tags to associate with the endpoint. A tag is a key-value pair that adds + * metadata to the endpoint. For example, a tag with "Sales" as the key + * might be added to an endpoint to indicate its use by the sales * department. *
*/ @@ -94,9 +94,9 @@ public class CreateEndpointRequest extends AmazonWebServiceRequest implements Se /** *- * The Amazon Resource Name (ARN) of the AWS identity and Access Management - * (IAM) role that grants Amazon Comprehend read access to trained custom - * models encrypted with a customer managed key (ModelKmsKeyId). + * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend read access to trained custom models encrypted with a customer + * managed key (ModelKmsKeyId). *
*
* Constraints:
@@ -105,6 +105,20 @@ public class CreateEndpointRequest extends AmazonWebServiceRequest implements Se
*/
private String dataAccessRoleArn;
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the flywheel to which the endpoint + * will be attached. + *
+ *
+ * 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;
+
/**
*
* This is the descriptive suffix that becomes part of the @@ -388,17 +402,17 @@ public CreateEndpointRequest withClientRequestToken(String clientRequestToken) { /** *
- * Tags associated with the endpoint being created. A tag is a key-value - * pair that adds metadata to the endpoint. For example, a tag with "Sales" - * as the key might be added to an endpoint to indicate its use by the sales + * Tags to associate with the endpoint. A tag is a key-value pair that adds + * metadata to the endpoint. For example, a tag with "Sales" as the key + * might be added to an endpoint to indicate its use by the sales * department. *
* * @return- * Tags associated with the endpoint being created. A tag is a - * key-value pair that adds metadata to the endpoint. For example, a - * tag with "Sales" as the key might be added to an endpoint to - * indicate its use by the sales department. + * Tags to associate with the endpoint. A tag is a key-value pair + * that adds metadata to the endpoint. For example, a tag with + * "Sales" as the key might be added to an endpoint to indicate its + * use by the sales department. *
*/ public java.util.List- * Tags associated with the endpoint being created. A tag is a key-value - * pair that adds metadata to the endpoint. For example, a tag with "Sales" - * as the key might be added to an endpoint to indicate its use by the sales + * Tags to associate with the endpoint. A tag is a key-value pair that adds + * metadata to the endpoint. For example, a tag with "Sales" as the key + * might be added to an endpoint to indicate its use by the sales * department. *
* * @param tags- * Tags associated with the endpoint being created. A tag is a - * key-value pair that adds metadata to the endpoint. For - * example, a tag with "Sales" as the key might be added to an - * endpoint to indicate its use by the sales department. + * Tags to associate with the endpoint. A tag is a key-value pair + * that adds metadata to the endpoint. For example, a tag with + * "Sales" as the key might be added to an endpoint to indicate + * its use by the sales department. *
*/ public void setTags(java.util.Collection- * Tags associated with the endpoint being created. A tag is a key-value - * pair that adds metadata to the endpoint. For example, a tag with "Sales" - * as the key might be added to an endpoint to indicate its use by the sales + * Tags to associate with the endpoint. A tag is a key-value pair that adds + * metadata to the endpoint. For example, a tag with "Sales" as the key + * might be added to an endpoint to indicate its use by the sales * department. *
*
@@ -441,10 +455,10 @@ public void setTags(java.util.Collection
- * Tags associated with the endpoint being created. A tag is a
- * key-value pair that adds metadata to the endpoint. For
- * example, a tag with "Sales" as the key might be added to an
- * endpoint to indicate its use by the sales department.
+ * Tags to associate with the endpoint. A tag is a key-value pair
+ * that adds metadata to the endpoint. For example, a tag with
+ * "Sales" as the key might be added to an endpoint to indicate
+ * its use by the sales department.
*
- * Tags associated with the endpoint being created. A tag is a key-value
- * pair that adds metadata to the endpoint. For example, a tag with "Sales"
- * as the key might be added to an endpoint to indicate its use by the sales
+ * Tags to associate with the endpoint. A tag is a key-value pair that adds
+ * metadata to the endpoint. For example, a tag with "Sales" as the key
+ * might be added to an endpoint to indicate its use by the sales
* department.
*
@@ -471,10 +485,10 @@ public CreateEndpointRequest withTags(Tag... tags) {
* together.
*
* @param tags
- * Tags associated with the endpoint being created. A tag is a
- * key-value pair that adds metadata to the endpoint. For
- * example, a tag with "Sales" as the key might be added to an
- * endpoint to indicate its use by the sales department.
+ * Tags to associate with the endpoint. A tag is a key-value pair
+ * that adds metadata to the endpoint. For example, a tag with
+ * "Sales" as the key might be added to an endpoint to indicate
+ * its use by the sales department.
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to trained custom
- * models encrypted with a customer managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a customer
+ * managed key (ModelKmsKeyId).
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * Management (IAM) role that grants Amazon Comprehend read access
- * to trained custom models encrypted with a customer managed key
- * (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a
+ * customer managed key (ModelKmsKeyId).
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to trained custom
- * models encrypted with a customer managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a customer
+ * managed key (ModelKmsKeyId).
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to trained custom models encrypted with a customer
- * managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to trained custom models
+ * encrypted with a customer managed key (ModelKmsKeyId).
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to trained custom
- * models encrypted with a customer managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a customer
+ * managed key (ModelKmsKeyId).
*
* Returns a reference to this object so that method calls can be chained
@@ -543,10 +555,9 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to trained custom models encrypted with a customer
- * managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to trained custom models
+ * encrypted with a customer managed key (ModelKmsKeyId).
*
+ * The Amazon Resource Number (ARN) of the flywheel to which the endpoint
+ * will be attached.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel to which the
+ * endpoint will be attached.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel to which the endpoint
+ * will be attached.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel to which the
+ * endpoint will be attached.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel to which the endpoint
+ * will be attached.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel to which the
+ * endpoint will be attached.
+ *
+ * The Amazon Resource Number (ARN) of the model to which the endpoint is
+ * attached.
+ *
+ * Constraints:
* The Amazon Resource Number (ARN) of the endpoint being created.
@@ -100,6 +116,81 @@ public CreateEndpointResult withEndpointArn(String endpointArn) {
return this;
}
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the model to which the endpoint is
+ * attached.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the model to which the
+ * endpoint is attached.
+ *
+ * The Amazon Resource Number (ARN) of the model to which the endpoint is
+ * attached.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the model to which the
+ * endpoint is attached.
+ *
+ * The Amazon Resource Number (ARN) of the model to which the endpoint is
+ * attached.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the model to which the
+ * endpoint is attached.
+ *
* Creates an entity recognizer using submitted files. After your
*
* Constraints:
* Constraints:
- * 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:
- * Tags to be associated with the entity recognizer 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 entity recognizer. 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.
*
* Specifies the format and location of the input data. The S3 bucket
- * containing the input data must be located in the same region as the
+ * containing the input data must be located in the same Region as the
* entity recognizer being created.
*
- * You can specify any of the following languages supported by Amazon
- * Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian
- * ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the
- * same language.
+ * You can specify any of the following languages: English ("en"), Spanish
+ * ("es"), French ("fr"), Italian ("it"), German ("de"), or Portuguese
+ * ("pt"). If you plan to use this entity recognizer with PDF, Word, or
+ * image input files, you must specify English as the language. All training
+ * documents must be in the same language.
*
* Constraints:
- * 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:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt trained custom models. The ModelKmsKeyId can be either of
- * the following formats
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom
+ * models. The ModelKmsKeyId can be either of the following formats:
*
* The JSON resource-based policy to attach to your custom entity recognizer
- * model. You can use this policy to allow another AWS account to import
- * your custom model.
+ * model. You can use this policy to allow another Amazon Web Services
+ * account to import your custom model.
*
* Provide your JSON as a UTF-8 encoded string without line breaks. To
@@ -210,7 +210,7 @@ public class CreateEntityRecognizerRequest extends AmazonWebServiceRequest imple
* The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and
* underscores (_) are allowed. The name must be unique in the
- * account/region.
+ * account/Region.
*
* Constraints:
@@ -496,10 +510,9 @@ public CreateEndpointRequest withTags(java.util.Collection
*
* @return
@@ -518,10 +531,9 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String modelArn;
+
/**
*
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param modelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param modelArn CreateEntityRecognizer
request is submitted, you can check job
- * status using the API.
+ * status using the DescribeEntityRecognizer
API.
*
@@ -46,7 +46,7 @@ public class CreateEntityRecognizerRequest extends AmazonWebServiceRequest imple
* The version name given to the newly created recognizer. Version names can
* be a maximum of 256 characters. Alphanumeric characters, hyphens (-) and
* underscores (_) are allowed. The version name must be unique among all
- * models with the same recognizer name in the account/ AWS Region.
+ * models with the same recognizer name in the account/Region.
*
@@ -57,8 +57,8 @@ public class CreateEntityRecognizerRequest extends AmazonWebServiceRequest imple
/**
*
@@ -69,10 +69,10 @@ public class CreateEntityRecognizerRequest extends AmazonWebServiceRequest imple
/**
*
@@ -113,10 +114,10 @@ public class CreateEntityRecognizerRequest extends AmazonWebServiceRequest imple
/**
*
*
*
@@ -221,7 +221,7 @@ public class CreateEntityRecognizerRequest extends AmazonWebServiceRequest imple
* The name given to the newly created recognizer. Recognizer names
* can be a maximum of 256 characters. Alphanumeric characters,
* hyphens (-) and underscores (_) are allowed. The name must be
- * unique in the account/region.
+ * unique in the account/Region.
*
* Constraints:
@@ -244,7 +244,7 @@ public String getRecognizerName() {
* The name given to the newly created recognizer. Recognizer
* names can be a maximum of 256 characters. Alphanumeric
* characters, hyphens (-) and underscores (_) are allowed. The
- * name must be unique in the account/region.
+ * name must be unique in the account/Region.
*
* Returns a reference to this object so that method calls can be chained @@ -270,7 +270,7 @@ public void setRecognizerName(String recognizerName) { * The name given to the newly created recognizer. Recognizer * names can be a maximum of 256 characters. Alphanumeric * characters, hyphens (-) and underscores (_) are allowed. The - * name must be unique in the account/region. + * name must be unique in the account/Region. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -285,7 +285,7 @@ public CreateEntityRecognizerRequest withRecognizerName(String recognizerName) { * The version name given to the newly created recognizer. Version names can * be a maximum of 256 characters. Alphanumeric characters, hyphens (-) and * underscores (_) are allowed. The version name must be unique among all - * models with the same recognizer name in the account/ AWS Region. + * models with the same recognizer name in the account/Region. * *
* Constraints:
@@ -297,7 +297,7 @@ public CreateEntityRecognizerRequest withRecognizerName(String recognizerName) {
* names can be a maximum of 256 characters. Alphanumeric
* characters, hyphens (-) and underscores (_) are allowed. The
* version name must be unique among all models with the same
- * recognizer name in the account/ AWS Region.
+ * recognizer name in the account/Region.
*
* Constraints:
@@ -321,7 +321,7 @@ public String getVersionName() {
* Version names can be a maximum of 256 characters. Alphanumeric
* characters, hyphens (-) and underscores (_) are allowed. The
* version name must be unique among all models with the same
- * recognizer name in the account/ AWS Region.
+ * recognizer name in the account/Region.
*
* Returns a reference to this object so that method calls can be chained @@ -348,7 +348,7 @@ public void setVersionName(String versionName) { * Version names can be a maximum of 256 characters. Alphanumeric * characters, hyphens (-) and underscores (_) are allowed. The * version name must be unique among all models with the same - * recognizer name in the account/ AWS Region. + * recognizer name in the account/Region. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -360,8 +360,8 @@ public CreateEntityRecognizerRequest withVersionName(String versionName) { /** *- * 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:
@@ -369,9 +369,8 @@ public CreateEntityRecognizerRequest withVersionName(String versionName) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
- * 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. *
*/ public String getDataAccessRoleArn() { @@ -380,8 +379,8 @@ public String getDataAccessRoleArn() { /** *- * 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:
@@ -389,9 +388,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * 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. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { @@ -400,8 +398,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) { /** *- * 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. *
*
* Returns a reference to this object so that method calls can be chained
@@ -412,9 +410,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -426,17 +423,17 @@ public CreateEntityRecognizerRequest withDataAccessRoleArn(String dataAccessRole /** *- * Tags to be associated with the entity recognizer 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 entity recognizer. 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. *
* * @return- * Tags to be associated with the entity recognizer 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 + * Tags to associate with the entity recognizer. 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. *
*/ @@ -446,18 +443,18 @@ public java.util.List- * Tags to be associated with the entity recognizer 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 entity recognizer. 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. *
* * @param tags- * Tags to be associated with the entity recognizer 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 entity recognizer. 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. *
*/ public void setTags(java.util.Collection- * Tags to be associated with the entity recognizer 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 entity recognizer. 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
- * Tags to be associated with the entity recognizer 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 entity recognizer. 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -502,21 +499,21 @@ public CreateEntityRecognizerRequest withTags(Tag... tags) { /** *- * Tags to be associated with the entity recognizer 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 entity recognizer. 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
- * Tags to be associated with the entity recognizer 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 entity recognizer. 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -529,14 +526,14 @@ public CreateEntityRecognizerRequest withTags(java.util.Collection* Specifies the format and location of the input data. The S3 bucket - * containing the input data must be located in the same region as the + * containing the input data must be located in the same Region as the * entity recognizer being created. *
* * @return* Specifies the format and location of the input data. The S3 * bucket containing the input data must be located in the same - * region as the entity recognizer being created. + * Region as the entity recognizer being created. *
*/ public EntityRecognizerInputDataConfig getInputDataConfig() { @@ -546,14 +543,14 @@ public EntityRecognizerInputDataConfig getInputDataConfig() { /** ** Specifies the format and location of the input data. The S3 bucket - * containing the input data must be located in the same region as the + * containing the input data must be located in the same Region as the * entity recognizer being created. *
* * @param inputDataConfig* Specifies the format and location of the input data. The S3 * bucket containing the input data must be located in the same - * region as the entity recognizer being created. + * Region as the entity recognizer being created. *
*/ public void setInputDataConfig(EntityRecognizerInputDataConfig inputDataConfig) { @@ -563,7 +560,7 @@ public void setInputDataConfig(EntityRecognizerInputDataConfig inputDataConfig) /** ** Specifies the format and location of the input data. The S3 bucket - * containing the input data must be located in the same region as the + * containing the input data must be located in the same Region as the * entity recognizer being created. *
*@@ -573,7 +570,7 @@ public void setInputDataConfig(EntityRecognizerInputDataConfig inputDataConfig) * @param inputDataConfig
* Specifies the format and location of the input data. The S3 * bucket containing the input data must be located in the same - * region as the entity recognizer being created. + * Region as the entity recognizer being created. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -649,20 +646,22 @@ public CreateEntityRecognizerRequest withClientRequestToken(String clientRequest /** *- * You can specify any of the following languages supported by Amazon - * Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian - * ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the - * same language. + * You can specify any of the following languages: English ("en"), Spanish + * ("es"), French ("fr"), Italian ("it"), German ("de"), or Portuguese + * ("pt"). If you plan to use this entity recognizer with PDF, Word, or + * image input files, you must specify English as the language. All training + * documents must be in the same language. *
*
* Constraints:
* Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
*
* @return
- * You can specify any of the following languages supported by - * Amazon Comprehend: English ("en"), Spanish ("es"), French ("fr"), - * Italian ("it"), German ("de"), or Portuguese ("pt"). All - * documents must be in the same language. + * You can specify any of the following languages: English ("en"), + * Spanish ("es"), French ("fr"), Italian ("it"), German ("de"), or + * Portuguese ("pt"). If you plan to use this entity recognizer with + * PDF, Word, or image input files, you must specify English as the + * language. All training documents must be in the same language. *
* @see LanguageCode */ @@ -672,20 +671,23 @@ public String getLanguageCode() { /** *- * You can specify any of the following languages supported by Amazon - * Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian - * ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the - * same language. + * You can specify any of the following languages: English ("en"), Spanish + * ("es"), French ("fr"), Italian ("it"), German ("de"), or Portuguese + * ("pt"). If you plan to use this entity recognizer with PDF, Word, or + * image input files, you must specify English as the language. All training + * documents must be in the same language. *
*
* Constraints:
* Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
*
* @param languageCode
- * You can specify any of the following languages supported by - * Amazon Comprehend: English ("en"), Spanish ("es"), French - * ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt"). - * All documents must be in the same language. + * You can specify any of the following languages: English + * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), German + * ("de"), or Portuguese ("pt"). If you plan to use this entity + * recognizer with PDF, Word, or image input files, you must + * specify English as the language. All training documents must + * be in the same language. *
* @see LanguageCode */ @@ -695,10 +697,11 @@ public void setLanguageCode(String languageCode) { /** *- * You can specify any of the following languages supported by Amazon - * Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian - * ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the - * same language. + * You can specify any of the following languages: English ("en"), Spanish + * ("es"), French ("fr"), Italian ("it"), German ("de"), or Portuguese + * ("pt"). If you plan to use this entity recognizer with PDF, Word, or + * image input files, you must specify English as the language. All training + * documents must be in the same language. *
** Returns a reference to this object so that method calls can be chained @@ -708,10 +711,12 @@ public void setLanguageCode(String languageCode) { * Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW * * @param languageCode
- * You can specify any of the following languages supported by - * Amazon Comprehend: English ("en"), Spanish ("es"), French - * ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt"). - * All documents must be in the same language. + * You can specify any of the following languages: English + * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), German + * ("de"), or Portuguese ("pt"). If you plan to use this entity + * recognizer with PDF, Word, or image input files, you must + * specify English as the language. All training documents must + * be in the same language. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -724,20 +729,23 @@ public CreateEntityRecognizerRequest withLanguageCode(String languageCode) { /** *- * You can specify any of the following languages supported by Amazon - * Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian - * ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the - * same language. + * You can specify any of the following languages: English ("en"), Spanish + * ("es"), French ("fr"), Italian ("it"), German ("de"), or Portuguese + * ("pt"). If you plan to use this entity recognizer with PDF, Word, or + * image input files, you must specify English as the language. All training + * documents must be in the same language. *
*
* Constraints:
* Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
*
* @param languageCode
- * You can specify any of the following languages supported by - * Amazon Comprehend: English ("en"), Spanish ("es"), French - * ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt"). - * All documents must be in the same language. + * You can specify any of the following languages: English + * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), German + * ("de"), or Portuguese ("pt"). If you plan to use this entity + * recognizer with PDF, Word, or image input files, you must + * specify English as the language. All training documents must + * be in the same language. *
* @see LanguageCode */ @@ -747,10 +755,11 @@ public void setLanguageCode(LanguageCode languageCode) { /** *- * You can specify any of the following languages supported by Amazon - * Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian - * ("it"), German ("de"), or Portuguese ("pt"). All documents must be in the - * same language. + * You can specify any of the following languages: English ("en"), Spanish + * ("es"), French ("fr"), Italian ("it"), German ("de"), or Portuguese + * ("pt"). If you plan to use this entity recognizer with PDF, Word, or + * image input files, you must specify English as the language. All training + * documents must be in the same language. *
** Returns a reference to this object so that method calls can be chained @@ -760,10 +769,12 @@ public void setLanguageCode(LanguageCode languageCode) { * Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW * * @param languageCode
- * You can specify any of the following languages supported by - * Amazon Comprehend: English ("en"), Spanish ("es"), French - * ("fr"), Italian ("it"), German ("de"), or Portuguese ("pt"). - * All documents must be in the same language. + * You can specify any of the following languages: English + * ("en"), Spanish ("es"), French ("fr"), Italian ("it"), German + * ("de"), or Portuguese ("pt"). If you plan to use this entity + * recognizer with PDF, Word, or image input files, you must + * specify English as the language. All training documents must + * be in the same language. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -776,10 +787,10 @@ public CreateEntityRecognizerRequest withLanguageCode(LanguageCode languageCode) /** *- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats + * ID for the KMS key that Amazon Comprehend uses to encrypt trained + * custom models. The ModelKmsKeyId can be either of the following + * formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
** The JSON resource-based policy to attach to your custom entity recognizer - * model. You can use this policy to allow another AWS account to import - * your custom model. + * model. You can use this policy to allow another Amazon Web Services + * account to import your custom model. *
** Provide your JSON as a UTF-8 encoded string without line breaks. To @@ -1179,8 +1189,8 @@ public CreateEntityRecognizerRequest withModelKmsKeyId(String modelKmsKeyId) { * * @return
* The JSON resource-based policy to attach to your custom entity - * recognizer model. You can use this policy to allow another AWS - * account to import your custom model. + * recognizer model. You can use this policy to allow another Amazon + * Web Services account to import your custom model. *
** Provide your JSON as a UTF-8 encoded string without line breaks. @@ -1208,8 +1218,8 @@ public String getModelPolicy() { /** *
* The JSON resource-based policy to attach to your custom entity recognizer - * model. You can use this policy to allow another AWS account to import - * your custom model. + * model. You can use this policy to allow another Amazon Web Services + * account to import your custom model. *
** Provide your JSON as a UTF-8 encoded string without line breaks. To @@ -1235,8 +1245,8 @@ public String getModelPolicy() { * * @param modelPolicy
* The JSON resource-based policy to attach to your custom entity - * recognizer model. You can use this policy to allow another AWS - * account to import your custom model. + * recognizer model. You can use this policy to allow another + * Amazon Web Services account to import your custom model. *
** Provide your JSON as a UTF-8 encoded string without line @@ -1264,8 +1274,8 @@ public void setModelPolicy(String modelPolicy) { /** *
* The JSON resource-based policy to attach to your custom entity recognizer - * model. You can use this policy to allow another AWS account to import - * your custom model. + * model. You can use this policy to allow another Amazon Web Services + * account to import your custom model. *
** Provide your JSON as a UTF-8 encoded string without line breaks. To @@ -1294,8 +1304,8 @@ public void setModelPolicy(String modelPolicy) { * * @param modelPolicy
* The JSON resource-based policy to attach to your custom entity - * recognizer model. You can use this policy to allow another AWS - * account to import your custom model. + * recognizer model. You can use this policy to allow another + * Amazon Web Services account to import your custom model. *
** Provide your JSON as a UTF-8 encoded string without line diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEntityRecognizerResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEntityRecognizerResult.java index e4b7a094f58..a0a81351a3b 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEntityRecognizerResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateEntityRecognizerResult.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/CreateFlywheelRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateFlywheelRequest.java new file mode 100644 index 00000000000..72b62d91cbf --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/CreateFlywheelRequest.java @@ -0,0 +1,856 @@ +/* + * 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; + +/** + *
+ * 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. + *
+ */ +public class CreateFlywheelRequest extends AmazonWebServiceRequest implements Serializable { + /** + *+ * Name for the flywheel. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ */
+ private String flywheelName;
+
+ /**
+ *
+ * To associate an existing model with the flywheel, specify the Amazon + * Resource Number (ARN) of the model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String activeModelArn;
+
+ /**
+ *
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend the permissions required to access the flywheel data in the + * data lake. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ */
+ private String dataAccessRoleArn;
+
+ /**
+ *
+ * Configuration about the custom classifier associated with the flywheel. + *
+ */ + private TaskConfig taskConfig; + + /** + *+ * The model type. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ */
+ private String modelType;
+
+ /**
+ *
+ * Enter the S3 location for the data lake. You can specify a new S3 bucket + * or a new folder of an existing S3 bucket. The flywheel creates the data + * lake at this location. + *
+ *
+ * Constraints:
+ * Length: - 512
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String dataLakeS3Uri;
+
+ /**
+ *
+ * Data security configurations. + *
+ */ + private DataSecurityConfig dataSecurityConfig; + + /** + *+ * A unique identifier for the request. If you don't set the client request + * token, Amazon Comprehend generates one. + *
+ *
+ * Constraints:
+ * Length: 1 - 64
+ * Pattern: ^[a-zA-Z0-9-]+$
+ */
+ private String clientRequestToken;
+
+ /**
+ *
+ * The tags to associate with this flywheel. + *
+ */ + private java.util.List+ * Name for the flywheel. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ *
+ * @return
+ * Name for the flywheel. + *
+ */ + public String getFlywheelName() { + return flywheelName; + } + + /** + *+ * Name for the flywheel. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ *
+ * @param flywheelName
+ * Name for the flywheel. + *
+ */ + public void setFlywheelName(String flywheelName) { + this.flywheelName = flywheelName; + } + + /** + *+ * Name for the flywheel. + *
+ *+ * 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 flywheelName
+ * Name for the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withFlywheelName(String flywheelName) { + this.flywheelName = flywheelName; + return this; + } + + /** + *+ * To associate an existing model with the flywheel, specify the Amazon + * Resource Number (ARN) of the model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * To associate an existing model with the flywheel, specify the + * Amazon Resource Number (ARN) of the model version. + *
+ */ + public String getActiveModelArn() { + return activeModelArn; + } + + /** + *+ * To associate an existing model with the flywheel, specify the Amazon + * Resource Number (ARN) of the model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * To associate an existing model with the flywheel, specify the + * Amazon Resource Number (ARN) of the model version. + *
+ */ + public void setActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + } + + /** + *+ * To associate an existing model with the flywheel, specify the Amazon + * Resource Number (ARN) of the model version. + *
+ *+ * 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}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * To associate an existing model with the flywheel, specify the + * Amazon Resource Number (ARN) of the model version. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + return this; + } + + /** + *+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend the permissions required to access the flywheel data in the + * data lake. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ *
+ * @return
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend the permissions required to access the flywheel data + * in the data lake. + *
+ */ + public String getDataAccessRoleArn() { + return dataAccessRoleArn; + } + + /** + *+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend the permissions required to access the flywheel data in the + * data lake. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ *
+ * @param dataAccessRoleArn
+ * The Amazon Resource Name (ARN) of the IAM role that grants + * Amazon Comprehend the permissions required to access the + * flywheel data in the data lake. + *
+ */ + public void setDataAccessRoleArn(String dataAccessRoleArn) { + this.dataAccessRoleArn = dataAccessRoleArn; + } + + /** + *+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend the permissions required to access the flywheel data in the + * data lake. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ *
+ * @param dataAccessRoleArn
+ * The Amazon Resource Name (ARN) of the IAM role that grants + * Amazon Comprehend the permissions required to access the + * flywheel data in the data lake. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withDataAccessRoleArn(String dataAccessRoleArn) { + this.dataAccessRoleArn = dataAccessRoleArn; + return this; + } + + /** + *+ * Configuration about the custom classifier associated with the flywheel. + *
+ * + * @return+ * Configuration about the custom classifier associated with the + * flywheel. + *
+ */ + public TaskConfig getTaskConfig() { + return taskConfig; + } + + /** + *+ * Configuration about the custom classifier associated with the flywheel. + *
+ * + * @param taskConfig+ * Configuration about the custom classifier associated with the + * flywheel. + *
+ */ + public void setTaskConfig(TaskConfig taskConfig) { + this.taskConfig = taskConfig; + } + + /** + *+ * Configuration about the custom classifier associated with the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param taskConfig
+ * Configuration about the custom classifier associated with the + * flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withTaskConfig(TaskConfig taskConfig) { + this.taskConfig = taskConfig; + return this; + } + + /** + *+ * The model type. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @return
+ * The model type. + *
+ * @see ModelType + */ + public String getModelType() { + return modelType; + } + + /** + *+ * The model type. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * The model type. + *
+ * @see ModelType + */ + public void setModelType(String modelType) { + this.modelType = modelType; + } + + /** + *+ * The model type. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * The model type. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see ModelType + */ + public CreateFlywheelRequest withModelType(String modelType) { + this.modelType = modelType; + return this; + } + + /** + *+ * The model type. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * The model type. + *
+ * @see ModelType + */ + public void setModelType(ModelType modelType) { + this.modelType = modelType.toString(); + } + + /** + *+ * The model type. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * The model type. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see ModelType + */ + public CreateFlywheelRequest withModelType(ModelType modelType) { + this.modelType = modelType.toString(); + return this; + } + + /** + *+ * Enter the S3 location for the data lake. You can specify a new S3 bucket + * or a new folder of an existing S3 bucket. The flywheel creates the data + * lake at this location. + *
+ *
+ * Constraints:
+ * Length: - 512
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Enter the S3 location for the data lake. You can specify a new S3 + * bucket or a new folder of an existing S3 bucket. The flywheel + * creates the data lake at this location. + *
+ */ + public String getDataLakeS3Uri() { + return dataLakeS3Uri; + } + + /** + *+ * Enter the S3 location for the data lake. You can specify a new S3 bucket + * or a new folder of an existing S3 bucket. The flywheel creates the data + * lake at this location. + *
+ *
+ * Constraints:
+ * Length: - 512
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param dataLakeS3Uri
+ * Enter the S3 location for the data lake. You can specify a new + * S3 bucket or a new folder of an existing S3 bucket. The + * flywheel creates the data lake at this location. + *
+ */ + public void setDataLakeS3Uri(String dataLakeS3Uri) { + this.dataLakeS3Uri = dataLakeS3Uri; + } + + /** + *+ * Enter the S3 location for the data lake. You can specify a new S3 bucket + * or a new folder of an existing S3 bucket. The flywheel creates the data + * lake at this location. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 512
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param dataLakeS3Uri
+ * Enter the S3 location for the data lake. You can specify a new + * S3 bucket or a new folder of an existing S3 bucket. The + * flywheel creates the data lake at this location. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withDataLakeS3Uri(String dataLakeS3Uri) { + this.dataLakeS3Uri = dataLakeS3Uri; + return this; + } + + /** + *+ * Data security configurations. + *
+ * + * @return+ * Data security configurations. + *
+ */ + public DataSecurityConfig getDataSecurityConfig() { + return dataSecurityConfig; + } + + /** + *+ * Data security configurations. + *
+ * + * @param dataSecurityConfig+ * Data security configurations. + *
+ */ + public void setDataSecurityConfig(DataSecurityConfig dataSecurityConfig) { + this.dataSecurityConfig = dataSecurityConfig; + } + + /** + *+ * Data security configurations. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param dataSecurityConfig
+ * Data security configurations. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withDataSecurityConfig(DataSecurityConfig dataSecurityConfig) { + this.dataSecurityConfig = dataSecurityConfig; + 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 CreateFlywheelRequest withClientRequestToken(String clientRequestToken) { + this.clientRequestToken = clientRequestToken; + return this; + } + + /** + *+ * The tags to associate with this flywheel. + *
+ * + * @return+ * The tags to associate with this flywheel. + *
+ */ + public java.util.List+ * The tags to associate with this flywheel. + *
+ * + * @param tags+ * The tags to associate with this flywheel. + *
+ */ + public void setTags(java.util.Collection+ * The tags to associate with this flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags
+ * The tags to associate with this flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withTags(Tag... tags) { + if (getTags() == null) { + this.tags = new java.util.ArrayList+ * The tags to associate with this flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags
+ * The tags to associate with this flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelRequest withTags(java.util.Collection+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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;
+
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String activeModelArn;
+
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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. + *
+ */ + public String getFlywheelArn() { + return flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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. + *
+ */ + public void setFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *+ * 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. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelResult withFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + return this; + } + + /** + *+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ */ + public String getActiveModelArn() { + return activeModelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ */ + public void setActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *+ * 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}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateFlywheelResult withActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + 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 (getActiveModelArn() != null) + sb.append("ActiveModelArn: " + getActiveModelArn()); + 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 + + ((getActiveModelArn() == null) ? 0 : getActiveModelArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateFlywheelResult == false) + return false; + CreateFlywheelResult other = (CreateFlywheelResult) obj; + + if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) + return false; + if (other.getFlywheelArn() != null + && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) + return false; + if (other.getActiveModelArn() == null ^ this.getActiveModelArn() == null) + return false; + if (other.getActiveModelArn() != null + && other.getActiveModelArn().equals(this.getActiveModelArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DataSecurityConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DataSecurityConfig.java new file mode 100644 index 00000000000..860cbfd1903 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DataSecurityConfig.java @@ -0,0 +1,494 @@ +/* + * 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; + +/** + *+ * Data security configuration. + *
+ */ +public class DataSecurityConfig implements Serializable { + /** + *+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: + *
+ *
+ * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Amazon Resource Name (ARN) of a KMS Key:
+ * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ */
+ private String modelKmsKeyId;
+
+ /**
+ *
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the volume. + *
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ */
+ private String volumeKmsKeyId;
+
+ /**
+ *
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the data in the + * data lake. + *
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ */
+ private String dataLakeKmsKeyId;
+
+ /**
+ *
+ * Configuration parameters for an optional private Virtual Private Cloud + * (VPC) containing the resources you are using for the job. For more + * information, see Amazon VPC. + *
+ */ + private VpcConfig vpcConfig; + + /** + *+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: + *
+ *
+ * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Amazon Resource Name (ARN) of a KMS Key:
+ * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @return
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained + * custom models. The ModelKmsKeyId can be either of the following + * formats: + *
+ *
+ * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Amazon Resource Name (ARN) of a KMS Key:
+ * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: + *
+ *
+ * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Amazon Resource Name (ARN) of a KMS Key:
+ * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @param modelKmsKeyId
+ * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: + *
+ *
+ * KMS Key ID:
+ * "1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Amazon Resource Name (ARN) of a KMS Key:
+ * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: + *
+ *
+ * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Amazon Resource Name (ARN) of a KMS Key:
+ * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @param modelKmsKeyId
+ * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: + *
+ *
+ * KMS Key ID:
+ * "1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * Amazon Resource Name (ARN) of a KMS Key:
+ * "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ *
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the volume. + *
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @return
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the + * volume. + *
+ */ + public String getVolumeKmsKeyId() { + return volumeKmsKeyId; + } + + /** + *+ * ID for the KMS key that Amazon Comprehend uses to encrypt the volume. + *
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @param volumeKmsKeyId
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the + * volume. + *
+ */ + public void setVolumeKmsKeyId(String volumeKmsKeyId) { + this.volumeKmsKeyId = volumeKmsKeyId; + } + + /** + *+ * ID for the KMS key that Amazon Comprehend uses to encrypt the volume. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @param volumeKmsKeyId
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the + * volume. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DataSecurityConfig withVolumeKmsKeyId(String volumeKmsKeyId) { + this.volumeKmsKeyId = volumeKmsKeyId; + return this; + } + + /** + *+ * ID for the KMS key that Amazon Comprehend uses to encrypt the data in the + * data lake. + *
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @return
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the + * data in the data lake. + *
+ */ + public String getDataLakeKmsKeyId() { + return dataLakeKmsKeyId; + } + + /** + *+ * ID for the KMS key that Amazon Comprehend uses to encrypt the data in the + * data lake. + *
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @param dataLakeKmsKeyId
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the + * data in the data lake. + *
+ */ + public void setDataLakeKmsKeyId(String dataLakeKmsKeyId) { + this.dataLakeKmsKeyId = dataLakeKmsKeyId; + } + + /** + *+ * ID for the KMS key that Amazon Comprehend uses to encrypt the data in the + * data lake. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^\p{ASCII}+$
+ *
+ * @param dataLakeKmsKeyId
+ * ID for the KMS key that Amazon Comprehend uses to encrypt the + * data in the data lake. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DataSecurityConfig withDataLakeKmsKeyId(String dataLakeKmsKeyId) { + this.dataLakeKmsKeyId = dataLakeKmsKeyId; + return this; + } + + /** + *+ * Configuration parameters for an optional private Virtual Private Cloud + * (VPC) containing the resources you are using for the job. For more + * information, see Amazon VPC. + *
+ * + * @return+ * Configuration parameters for an optional private Virtual Private + * Cloud (VPC) containing the resources you are using for the job. + * For more information, see Amazon VPC. + *
+ */ + public VpcConfig getVpcConfig() { + return vpcConfig; + } + + /** + *+ * Configuration parameters for an optional private Virtual Private Cloud + * (VPC) containing the resources you are using for the job. For more + * information, see Amazon VPC. + *
+ * + * @param vpcConfig+ * Configuration parameters for an optional private Virtual + * Private Cloud (VPC) containing the resources you are using for + * the job. For more information, see Amazon VPC. + *
+ */ + public void setVpcConfig(VpcConfig vpcConfig) { + this.vpcConfig = vpcConfig; + } + + /** + *+ * Configuration parameters for an optional private Virtual Private Cloud + * (VPC) containing the resources you are using for the job. For more + * information, see Amazon VPC. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param vpcConfig
+ * Configuration parameters for an optional private Virtual + * Private Cloud (VPC) containing the resources you are using for + * the job. For more information, see Amazon VPC. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DataSecurityConfig withVpcConfig(VpcConfig vpcConfig) { + this.vpcConfig = vpcConfig; + 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 (getModelKmsKeyId() != null) + sb.append("ModelKmsKeyId: " + getModelKmsKeyId() + ","); + if (getVolumeKmsKeyId() != null) + sb.append("VolumeKmsKeyId: " + getVolumeKmsKeyId() + ","); + if (getDataLakeKmsKeyId() != null) + sb.append("DataLakeKmsKeyId: " + getDataLakeKmsKeyId() + ","); + if (getVpcConfig() != null) + sb.append("VpcConfig: " + getVpcConfig()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getModelKmsKeyId() == null) ? 0 : getModelKmsKeyId().hashCode()); + hashCode = prime * hashCode + + ((getVolumeKmsKeyId() == null) ? 0 : getVolumeKmsKeyId().hashCode()); + hashCode = prime * hashCode + + ((getDataLakeKmsKeyId() == null) ? 0 : getDataLakeKmsKeyId().hashCode()); + hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DataSecurityConfig == false) + return false; + DataSecurityConfig other = (DataSecurityConfig) obj; + + if (other.getModelKmsKeyId() == null ^ this.getModelKmsKeyId() == null) + return false; + if (other.getModelKmsKeyId() != null + && other.getModelKmsKeyId().equals(this.getModelKmsKeyId()) == false) + return false; + if (other.getVolumeKmsKeyId() == null ^ this.getVolumeKmsKeyId() == null) + return false; + if (other.getVolumeKmsKeyId() != null + && other.getVolumeKmsKeyId().equals(this.getVolumeKmsKeyId()) == false) + return false; + if (other.getDataLakeKmsKeyId() == null ^ this.getDataLakeKmsKeyId() == null) + return false; + if (other.getDataLakeKmsKeyId() != null + && other.getDataLakeKmsKeyId().equals(this.getDataLakeKmsKeyId()) == false) + return false; + if (other.getVpcConfig() == null ^ this.getVpcConfig() == null) + return false; + if (other.getVpcConfig() != null + && other.getVpcConfig().equals(this.getVpcConfig()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetAugmentedManifestsListItem.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetAugmentedManifestsListItem.java new file mode 100644 index 00000000000..012ddb486ff --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetAugmentedManifestsListItem.java @@ -0,0 +1,691 @@ +/* + * 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; + +/** + *+ * An augmented manifest file that provides training data for your custom model. + * An augmented manifest file is a labeled dataset that is produced by Amazon + * SageMaker Ground Truth. + *
+ */ +public class DatasetAugmentedManifestsListItem implements Serializable { + /** + *+ * The JSON attribute that contains the annotations for your training + * documents. The number of attribute names that you specify depends on + * whether your augmented manifest file is the output of a single labeling + * job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify the + * LabelAttributeName key that was used when the job was created in Ground + * Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify the + * LabelAttributeName key for one or more jobs in the chain. Each + * LabelAttributeName key provides the annotations from an individual job. + *
+ */ + private java.util.List+ * The Amazon S3 location of the augmented manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String s3Uri;
+
+ /**
+ *
+ * The S3 prefix to the annotation files that are referred in the augmented + * manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String annotationDataS3Uri;
+
+ /**
+ *
+ * The S3 prefix to the source files (PDFs) that are referred to in the + * augmented manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String sourceDocumentsS3Uri;
+
+ /**
+ *
+ * The type of augmented manifest. If you don't specify, the default is + * PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that represents any
+ * unicode text that is encoded in UTF-8.
+ *
+ * Constraints:
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ */
+ private String documentType;
+
+ /**
+ *
+ * The JSON attribute that contains the annotations for your training + * documents. The number of attribute names that you specify depends on + * whether your augmented manifest file is the output of a single labeling + * job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify the + * LabelAttributeName key that was used when the job was created in Ground + * Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify the + * LabelAttributeName key for one or more jobs in the chain. Each + * LabelAttributeName key provides the annotations from an individual job. + *
+ * + * @return+ * The JSON attribute that contains the annotations for your + * training documents. The number of attribute names that you + * specify depends on whether your augmented manifest file is the + * output of a single labeling job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify the + * LabelAttributeName key that was used when the job was created in + * Ground Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify the + * LabelAttributeName key for one or more jobs in the chain. Each + * LabelAttributeName key provides the annotations from an + * individual job. + *
+ */ + public java.util.List+ * The JSON attribute that contains the annotations for your training + * documents. The number of attribute names that you specify depends on + * whether your augmented manifest file is the output of a single labeling + * job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify the + * LabelAttributeName key that was used when the job was created in Ground + * Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify the + * LabelAttributeName key for one or more jobs in the chain. Each + * LabelAttributeName key provides the annotations from an individual job. + *
+ * + * @param attributeNames+ * The JSON attribute that contains the annotations for your + * training documents. The number of attribute names that you + * specify depends on whether your augmented manifest file is the + * output of a single labeling job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify + * the LabelAttributeName key that was used when the job was + * created in Ground Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify + * the LabelAttributeName key for one or more jobs in the chain. + * Each LabelAttributeName key provides the annotations from an + * individual job. + *
+ */ + public void setAttributeNames(java.util.Collection+ * The JSON attribute that contains the annotations for your training + * documents. The number of attribute names that you specify depends on + * whether your augmented manifest file is the output of a single labeling + * job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify the + * LabelAttributeName key that was used when the job was created in Ground + * Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify the + * LabelAttributeName key for one or more jobs in the chain. Each + * LabelAttributeName key provides the annotations from an individual job. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attributeNames
+ * The JSON attribute that contains the annotations for your + * training documents. The number of attribute names that you + * specify depends on whether your augmented manifest file is the + * output of a single labeling job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify + * the LabelAttributeName key that was used when the job was + * created in Ground Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify + * the LabelAttributeName key for one or more jobs in the chain. + * Each LabelAttributeName key provides the annotations from an + * individual job. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetAugmentedManifestsListItem withAttributeNames(String... attributeNames) { + if (getAttributeNames() == null) { + this.attributeNames = new java.util.ArrayList+ * The JSON attribute that contains the annotations for your training + * documents. The number of attribute names that you specify depends on + * whether your augmented manifest file is the output of a single labeling + * job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify the + * LabelAttributeName key that was used when the job was created in Ground + * Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify the + * LabelAttributeName key for one or more jobs in the chain. Each + * LabelAttributeName key provides the annotations from an individual job. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attributeNames
+ * The JSON attribute that contains the annotations for your + * training documents. The number of attribute names that you + * specify depends on whether your augmented manifest file is the + * output of a single labeling job or a chained labeling job. + *
+ *+ * If your file is the output of a single labeling job, specify + * the LabelAttributeName key that was used when the job was + * created in Ground Truth. + *
+ *+ * If your file is the output of a chained labeling job, specify + * the LabelAttributeName key for one or more jobs in the chain. + * Each LabelAttributeName key provides the annotations from an + * individual job. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetAugmentedManifestsListItem withAttributeNames( + java.util.Collection+ * The Amazon S3 location of the augmented manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * The Amazon S3 location of the augmented manifest file. + *
+ */ + public String getS3Uri() { + return s3Uri; + } + + /** + *+ * The Amazon S3 location of the augmented manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * The Amazon S3 location of the augmented manifest file. + *
+ */ + public void setS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + } + + /** + *+ * The Amazon S3 location of the augmented manifest file. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * The Amazon S3 location of the augmented manifest file. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetAugmentedManifestsListItem withS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + return this; + } + + /** + *+ * The S3 prefix to the annotation files that are referred in the augmented + * manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * The S3 prefix to the annotation files that are referred in the + * augmented manifest file. + *
+ */ + public String getAnnotationDataS3Uri() { + return annotationDataS3Uri; + } + + /** + *+ * The S3 prefix to the annotation files that are referred in the augmented + * manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param annotationDataS3Uri
+ * The S3 prefix to the annotation files that are referred in the + * augmented manifest file. + *
+ */ + public void setAnnotationDataS3Uri(String annotationDataS3Uri) { + this.annotationDataS3Uri = annotationDataS3Uri; + } + + /** + *+ * The S3 prefix to the annotation files that are referred in the augmented + * manifest file. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param annotationDataS3Uri
+ * The S3 prefix to the annotation files that are referred in the + * augmented manifest file. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetAugmentedManifestsListItem withAnnotationDataS3Uri(String annotationDataS3Uri) { + this.annotationDataS3Uri = annotationDataS3Uri; + return this; + } + + /** + *+ * The S3 prefix to the source files (PDFs) that are referred to in the + * augmented manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * The S3 prefix to the source files (PDFs) that are referred to in + * the augmented manifest file. + *
+ */ + public String getSourceDocumentsS3Uri() { + return sourceDocumentsS3Uri; + } + + /** + *+ * The S3 prefix to the source files (PDFs) that are referred to in the + * augmented manifest file. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param sourceDocumentsS3Uri
+ * The S3 prefix to the source files (PDFs) that are referred to + * in the augmented manifest file. + *
+ */ + public void setSourceDocumentsS3Uri(String sourceDocumentsS3Uri) { + this.sourceDocumentsS3Uri = sourceDocumentsS3Uri; + } + + /** + *+ * The S3 prefix to the source files (PDFs) that are referred to in the + * augmented manifest file. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param sourceDocumentsS3Uri
+ * The S3 prefix to the source files (PDFs) that are referred to + * in the augmented manifest file. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetAugmentedManifestsListItem withSourceDocumentsS3Uri(String sourceDocumentsS3Uri) { + this.sourceDocumentsS3Uri = sourceDocumentsS3Uri; + return this; + } + + /** + *+ * The type of augmented manifest. If you don't specify, the default is + * PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that represents any
+ * unicode text that is encoded in UTF-8.
+ *
+ * Constraints:
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @return
+ * The type of augmented manifest. If you don't specify, the default + * is PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that represents
+ * any unicode text that is encoded in UTF-8.
+ *
+ * The type of augmented manifest. If you don't specify, the default is + * PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that represents any
+ * unicode text that is encoded in UTF-8.
+ *
+ * Constraints:
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ * The type of augmented manifest. If you don't specify, the + * default is PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that
+ * represents any unicode text that is encoded in UTF-8.
+ *
+ * The type of augmented manifest. If you don't specify, the default is + * PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that represents any
+ * unicode text that is encoded in UTF-8.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ * The type of augmented manifest. If you don't specify, the + * default is PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that
+ * represents any unicode text that is encoded in UTF-8.
+ *
+ * The type of augmented manifest. If you don't specify, the default is + * PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that represents any
+ * unicode text that is encoded in UTF-8.
+ *
+ * Constraints:
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ * The type of augmented manifest. If you don't specify, the + * default is PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that
+ * represents any unicode text that is encoded in UTF-8.
+ *
+ * The type of augmented manifest. If you don't specify, the default is + * PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that represents any
+ * unicode text that is encoded in UTF-8.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ * The type of augmented manifest. If you don't specify, the + * default is PlainTextDocument. + *
+ *
+ * PLAIN_TEXT_DOCUMENT
A document type that
+ * represents any unicode text that is encoded in UTF-8.
+ *
+ * Describes the dataset input data configuration for a document classifier + * model. + *
+ *+ * For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide. + *
+ */ +public class DatasetDocumentClassifierInputDataConfig implements Serializable { + /** + *+ * The Amazon S3 URI for the input data. The S3 bucket must be in the same + * Region as the API endpoint that you are calling. The URI can point to a + * single input file or it can provide the prefix for a collection of input + * files. + *
+ *
+ * For example, if you use the URI S3://bucketName/prefix
, if
+ * the prefix is a single file, Amazon Comprehend uses that file as input.
+ * If more than one file begins with the prefix, Amazon Comprehend uses all
+ * of them as input.
+ *
+ * This parameter is required if you set DataFormat
to
+ * COMPREHEND_CSV
.
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String s3Uri;
+
+ /**
+ *
+ * Indicates the delimiter used to separate each label for training a + * multi-label classifier. The default delimiter between labels is a pipe + * (|). You can use a different character as a delimiter (if it's an allowed + * character) by specifying it under Delimiter for labels. If the training + * documents use a delimiter other than the default or the delimiter you + * specify, the labels on that line will be combined to make a single unique + * label, such as LABELLABELLABEL. + *
+ *
+ * Constraints:
+ * Length: 1 - 1
+ * Pattern: ^[ ~!@#$%^*\-_+=|\\:;\t>?/]$
+ */
+ private String labelDelimiter;
+
+ /**
+ *
+ * The Amazon S3 URI for the input data. The S3 bucket must be in the same + * Region as the API endpoint that you are calling. The URI can point to a + * single input file or it can provide the prefix for a collection of input + * files. + *
+ *
+ * For example, if you use the URI S3://bucketName/prefix
, if
+ * the prefix is a single file, Amazon Comprehend uses that file as input.
+ * If more than one file begins with the prefix, Amazon Comprehend uses all
+ * of them as input.
+ *
+ * This parameter is required if you set DataFormat
to
+ * COMPREHEND_CSV
.
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * The Amazon S3 URI for the input data. The S3 bucket must be in + * the same Region as the API endpoint that you are calling. The URI + * can point to a single input file or it can provide the prefix for + * a collection of input files. + *
+ *
+ * For example, if you use the URI
+ * S3://bucketName/prefix
, if the prefix is a single
+ * file, Amazon Comprehend uses that file as input. If more than one
+ * file begins with the prefix, Amazon Comprehend uses all of them
+ * as input.
+ *
+ * This parameter is required if you set DataFormat
to
+ * COMPREHEND_CSV
.
+ *
+ * The Amazon S3 URI for the input data. The S3 bucket must be in the same + * Region as the API endpoint that you are calling. The URI can point to a + * single input file or it can provide the prefix for a collection of input + * files. + *
+ *
+ * For example, if you use the URI S3://bucketName/prefix
, if
+ * the prefix is a single file, Amazon Comprehend uses that file as input.
+ * If more than one file begins with the prefix, Amazon Comprehend uses all
+ * of them as input.
+ *
+ * This parameter is required if you set DataFormat
to
+ * COMPREHEND_CSV
.
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * The Amazon S3 URI for the input data. The S3 bucket must be in + * the same Region as the API endpoint that you are calling. The + * URI can point to a single input file or it can provide the + * prefix for a collection of input files. + *
+ *
+ * For example, if you use the URI
+ * S3://bucketName/prefix
, if the prefix is a single
+ * file, Amazon Comprehend uses that file as input. If more than
+ * one file begins with the prefix, Amazon Comprehend uses all of
+ * them as input.
+ *
+ * This parameter is required if you set DataFormat
+ * to COMPREHEND_CSV
.
+ *
+ * The Amazon S3 URI for the input data. The S3 bucket must be in the same + * Region as the API endpoint that you are calling. The URI can point to a + * single input file or it can provide the prefix for a collection of input + * files. + *
+ *
+ * For example, if you use the URI S3://bucketName/prefix
, if
+ * the prefix is a single file, Amazon Comprehend uses that file as input.
+ * If more than one file begins with the prefix, Amazon Comprehend uses all
+ * of them as input.
+ *
+ * This parameter is required if you set DataFormat
to
+ * COMPREHEND_CSV
.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * The Amazon S3 URI for the input data. The S3 bucket must be in + * the same Region as the API endpoint that you are calling. The + * URI can point to a single input file or it can provide the + * prefix for a collection of input files. + *
+ *
+ * For example, if you use the URI
+ * S3://bucketName/prefix
, if the prefix is a single
+ * file, Amazon Comprehend uses that file as input. If more than
+ * one file begins with the prefix, Amazon Comprehend uses all of
+ * them as input.
+ *
+ * This parameter is required if you set DataFormat
+ * to COMPREHEND_CSV
.
+ *
+ * Indicates the delimiter used to separate each label for training a + * multi-label classifier. The default delimiter between labels is a pipe + * (|). You can use a different character as a delimiter (if it's an allowed + * character) by specifying it under Delimiter for labels. If the training + * documents use a delimiter other than the default or the delimiter you + * specify, the labels on that line will be combined to make a single unique + * label, such as LABELLABELLABEL. + *
+ *
+ * Constraints:
+ * Length: 1 - 1
+ * Pattern: ^[ ~!@#$%^*\-_+=|\\:;\t>?/]$
+ *
+ * @return
+ * Indicates the delimiter used to separate each label for training + * a multi-label classifier. The default delimiter between labels is + * a pipe (|). You can use a different character as a delimiter (if + * it's an allowed character) by specifying it under Delimiter for + * labels. If the training documents use a delimiter other than the + * default or the delimiter you specify, the labels on that line + * will be combined to make a single unique label, such as + * LABELLABELLABEL. + *
+ */ + public String getLabelDelimiter() { + return labelDelimiter; + } + + /** + *+ * Indicates the delimiter used to separate each label for training a + * multi-label classifier. The default delimiter between labels is a pipe + * (|). You can use a different character as a delimiter (if it's an allowed + * character) by specifying it under Delimiter for labels. If the training + * documents use a delimiter other than the default or the delimiter you + * specify, the labels on that line will be combined to make a single unique + * label, such as LABELLABELLABEL. + *
+ *
+ * Constraints:
+ * Length: 1 - 1
+ * Pattern: ^[ ~!@#$%^*\-_+=|\\:;\t>?/]$
+ *
+ * @param labelDelimiter
+ * Indicates the delimiter used to separate each label for + * training a multi-label classifier. The default delimiter + * between labels is a pipe (|). You can use a different + * character as a delimiter (if it's an allowed character) by + * specifying it under Delimiter for labels. If the training + * documents use a delimiter other than the default or the + * delimiter you specify, the labels on that line will be + * combined to make a single unique label, such as + * LABELLABELLABEL. + *
+ */ + public void setLabelDelimiter(String labelDelimiter) { + this.labelDelimiter = labelDelimiter; + } + + /** + *+ * Indicates the delimiter used to separate each label for training a + * multi-label classifier. The default delimiter between labels is a pipe + * (|). You can use a different character as a delimiter (if it's an allowed + * character) by specifying it under Delimiter for labels. If the training + * documents use a delimiter other than the default or the delimiter you + * specify, the labels on that line will be combined to make a single unique + * label, such as LABELLABELLABEL. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 1 - 1
+ * Pattern: ^[ ~!@#$%^*\-_+=|\\:;\t>?/]$
+ *
+ * @param labelDelimiter
+ * Indicates the delimiter used to separate each label for + * training a multi-label classifier. The default delimiter + * between labels is a pipe (|). You can use a different + * character as a delimiter (if it's an allowed character) by + * specifying it under Delimiter for labels. If the training + * documents use a delimiter other than the default or the + * delimiter you specify, the labels on that line will be + * combined to make a single unique label, such as + * LABELLABELLABEL. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetDocumentClassifierInputDataConfig withLabelDelimiter(String labelDelimiter) { + this.labelDelimiter = labelDelimiter; + 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 (getS3Uri() != null) + sb.append("S3Uri: " + getS3Uri() + ","); + if (getLabelDelimiter() != null) + sb.append("LabelDelimiter: " + getLabelDelimiter()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getS3Uri() == null) ? 0 : getS3Uri().hashCode()); + hashCode = prime * hashCode + + ((getLabelDelimiter() == null) ? 0 : getLabelDelimiter().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetDocumentClassifierInputDataConfig == false) + return false; + DatasetDocumentClassifierInputDataConfig other = (DatasetDocumentClassifierInputDataConfig) obj; + + if (other.getS3Uri() == null ^ this.getS3Uri() == null) + return false; + if (other.getS3Uri() != null && other.getS3Uri().equals(this.getS3Uri()) == false) + return false; + if (other.getLabelDelimiter() == null ^ this.getLabelDelimiter() == null) + return false; + if (other.getLabelDelimiter() != null + && other.getLabelDelimiter().equals(this.getLabelDelimiter()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerAnnotations.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerAnnotations.java new file mode 100644 index 00000000000..127551b1f79 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerAnnotations.java @@ -0,0 +1,151 @@ +/* + * 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; + +/** + *+ * Describes the annotations associated with a entity recognizer. + *
+ */ +public class DatasetEntityRecognizerAnnotations implements Serializable { + /** + *+ * Specifies the Amazon S3 location where the training documents for an + * entity recognizer are located. The URI must be in the same Region as the + * API endpoint that you are calling. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String s3Uri;
+
+ /**
+ *
+ * Specifies the Amazon S3 location where the training documents for an + * entity recognizer are located. The URI must be in the same Region as the + * API endpoint that you are calling. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Specifies the Amazon S3 location where the training documents for + * an entity recognizer are located. The URI must be in the same + * Region as the API endpoint that you are calling. + *
+ */ + public String getS3Uri() { + return s3Uri; + } + + /** + *+ * Specifies the Amazon S3 location where the training documents for an + * entity recognizer are located. The URI must be in the same Region as the + * API endpoint that you are calling. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Specifies the Amazon S3 location where the training documents + * for an entity recognizer are located. The URI must be in the + * same Region as the API endpoint that you are calling. + *
+ */ + public void setS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + } + + /** + *+ * Specifies the Amazon S3 location where the training documents for an + * entity recognizer are located. The URI must be in the same Region as the + * API endpoint that you are calling. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Specifies the Amazon S3 location where the training documents + * for an entity recognizer are located. The URI must be in the + * same Region as the API endpoint that you are calling. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetEntityRecognizerAnnotations withS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + 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 (getS3Uri() != null) + sb.append("S3Uri: " + getS3Uri()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getS3Uri() == null) ? 0 : getS3Uri().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetEntityRecognizerAnnotations == false) + return false; + DatasetEntityRecognizerAnnotations other = (DatasetEntityRecognizerAnnotations) obj; + + if (other.getS3Uri() == null ^ this.getS3Uri() == null) + return false; + if (other.getS3Uri() != null && other.getS3Uri().equals(this.getS3Uri()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerDocuments.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerDocuments.java new file mode 100644 index 00000000000..4e28c8830e9 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerDocuments.java @@ -0,0 +1,332 @@ +/* + * 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; + +/** + *+ * Describes the documents submitted with a dataset for an entity recognizer + * model. + *
+ */ +public class DatasetEntityRecognizerDocuments implements Serializable { + /** + *+ * Specifies the Amazon S3 location where the documents for the dataset are + * located. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String s3Uri;
+
+ /**
+ *
+ * Specifies how the text in an input file should be processed. This is + * optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each + * file is considered a separate document. Use this option when you are + * processing large documents, such as newspaper articles or scientific + * papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate + * document. Use this option when you are processing many short documents, + * such as text messages. + *
+ *
+ * Constraints:
+ * Allowed Values: ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
+ */
+ private String inputFormat;
+
+ /**
+ *
+ * Specifies the Amazon S3 location where the documents for the dataset are + * located. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Specifies the Amazon S3 location where the documents for the + * dataset are located. + *
+ */ + public String getS3Uri() { + return s3Uri; + } + + /** + *+ * Specifies the Amazon S3 location where the documents for the dataset are + * located. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Specifies the Amazon S3 location where the documents for the + * dataset are located. + *
+ */ + public void setS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + } + + /** + *+ * Specifies the Amazon S3 location where the documents for the dataset are + * located. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Specifies the Amazon S3 location where the documents for the + * dataset are located. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetEntityRecognizerDocuments withS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + return this; + } + + /** + *+ * Specifies how the text in an input file should be processed. This is + * optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each + * file is considered a separate document. Use this option when you are + * processing large documents, such as newspaper articles or scientific + * papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate + * document. Use this option when you are processing many short documents, + * such as text messages. + *
+ *
+ * Constraints:
+ * Allowed Values: ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
+ *
+ * @return
+ * Specifies how the text in an input file should be processed. This + * is optional, and the default is ONE_DOC_PER_LINE. + * ONE_DOC_PER_FILE - Each file is considered a separate document. + * Use this option when you are processing large documents, such as + * newspaper articles or scientific papers. ONE_DOC_PER_LINE - Each + * line in a file is considered a separate document. Use this option + * when you are processing many short documents, such as text + * messages. + *
+ * @see InputFormat + */ + public String getInputFormat() { + return inputFormat; + } + + /** + *+ * Specifies how the text in an input file should be processed. This is + * optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each + * file is considered a separate document. Use this option when you are + * processing large documents, such as newspaper articles or scientific + * papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate + * document. Use this option when you are processing many short documents, + * such as text messages. + *
+ *
+ * Constraints:
+ * Allowed Values: ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
+ *
+ * @param inputFormat
+ * Specifies how the text in an input file should be processed. + * This is optional, and the default is ONE_DOC_PER_LINE. + * ONE_DOC_PER_FILE - Each file is considered a separate + * document. Use this option when you are processing large + * documents, such as newspaper articles or scientific papers. + * ONE_DOC_PER_LINE - Each line in a file is considered a + * separate document. Use this option when you are processing + * many short documents, such as text messages. + *
+ * @see InputFormat + */ + public void setInputFormat(String inputFormat) { + this.inputFormat = inputFormat; + } + + /** + *+ * Specifies how the text in an input file should be processed. This is + * optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each + * file is considered a separate document. Use this option when you are + * processing large documents, such as newspaper articles or scientific + * papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate + * document. Use this option when you are processing many short documents, + * such as text messages. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
+ *
+ * @param inputFormat
+ * Specifies how the text in an input file should be processed. + * This is optional, and the default is ONE_DOC_PER_LINE. + * ONE_DOC_PER_FILE - Each file is considered a separate + * document. Use this option when you are processing large + * documents, such as newspaper articles or scientific papers. + * ONE_DOC_PER_LINE - Each line in a file is considered a + * separate document. Use this option when you are processing + * many short documents, such as text messages. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see InputFormat + */ + public DatasetEntityRecognizerDocuments withInputFormat(String inputFormat) { + this.inputFormat = inputFormat; + return this; + } + + /** + *+ * Specifies how the text in an input file should be processed. This is + * optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each + * file is considered a separate document. Use this option when you are + * processing large documents, such as newspaper articles or scientific + * papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate + * document. Use this option when you are processing many short documents, + * such as text messages. + *
+ *
+ * Constraints:
+ * Allowed Values: ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
+ *
+ * @param inputFormat
+ * Specifies how the text in an input file should be processed. + * This is optional, and the default is ONE_DOC_PER_LINE. + * ONE_DOC_PER_FILE - Each file is considered a separate + * document. Use this option when you are processing large + * documents, such as newspaper articles or scientific papers. + * ONE_DOC_PER_LINE - Each line in a file is considered a + * separate document. Use this option when you are processing + * many short documents, such as text messages. + *
+ * @see InputFormat + */ + public void setInputFormat(InputFormat inputFormat) { + this.inputFormat = inputFormat.toString(); + } + + /** + *+ * Specifies how the text in an input file should be processed. This is + * optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each + * file is considered a separate document. Use this option when you are + * processing large documents, such as newspaper articles or scientific + * papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate + * document. Use this option when you are processing many short documents, + * such as text messages. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
+ *
+ * @param inputFormat
+ * Specifies how the text in an input file should be processed. + * This is optional, and the default is ONE_DOC_PER_LINE. + * ONE_DOC_PER_FILE - Each file is considered a separate + * document. Use this option when you are processing large + * documents, such as newspaper articles or scientific papers. + * ONE_DOC_PER_LINE - Each line in a file is considered a + * separate document. Use this option when you are processing + * many short documents, such as text messages. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see InputFormat + */ + public DatasetEntityRecognizerDocuments withInputFormat(InputFormat inputFormat) { + this.inputFormat = inputFormat.toString(); + 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 (getS3Uri() != null) + sb.append("S3Uri: " + getS3Uri() + ","); + if (getInputFormat() != null) + sb.append("InputFormat: " + getInputFormat()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getS3Uri() == null) ? 0 : getS3Uri().hashCode()); + hashCode = prime * hashCode + + ((getInputFormat() == null) ? 0 : getInputFormat().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetEntityRecognizerDocuments == false) + return false; + DatasetEntityRecognizerDocuments other = (DatasetEntityRecognizerDocuments) obj; + + if (other.getS3Uri() == null ^ this.getS3Uri() == null) + return false; + if (other.getS3Uri() != null && other.getS3Uri().equals(this.getS3Uri()) == false) + return false; + if (other.getInputFormat() == null ^ this.getInputFormat() == null) + return false; + if (other.getInputFormat() != null + && other.getInputFormat().equals(this.getInputFormat()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerEntityList.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerEntityList.java new file mode 100644 index 00000000000..d45d77b5adb --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerEntityList.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; + +/** + *+ * Describes the dataset entity list for an entity recognizer model. + *
+ *+ * For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide. + *
+ */ +public class DatasetEntityRecognizerEntityList implements Serializable { + /** + *+ * Specifies the Amazon S3 location where the entity list is located. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String s3Uri;
+
+ /**
+ *
+ * Specifies the Amazon S3 location where the entity list is located. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Specifies the Amazon S3 location where the entity list is + * located. + *
+ */ + public String getS3Uri() { + return s3Uri; + } + + /** + *+ * Specifies the Amazon S3 location where the entity list is located. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Specifies the Amazon S3 location where the entity list is + * located. + *
+ */ + public void setS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + } + + /** + *+ * Specifies the Amazon S3 location where the entity list is located. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Specifies the Amazon S3 location where the entity list is + * located. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetEntityRecognizerEntityList withS3Uri(String s3Uri) { + this.s3Uri = s3Uri; + 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 (getS3Uri() != null) + sb.append("S3Uri: " + getS3Uri()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getS3Uri() == null) ? 0 : getS3Uri().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetEntityRecognizerEntityList == false) + return false; + DatasetEntityRecognizerEntityList other = (DatasetEntityRecognizerEntityList) obj; + + if (other.getS3Uri() == null ^ this.getS3Uri() == null) + return false; + if (other.getS3Uri() != null && other.getS3Uri().equals(this.getS3Uri()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerInputDataConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerInputDataConfig.java new file mode 100644 index 00000000000..d1b233d3108 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetEntityRecognizerInputDataConfig.java @@ -0,0 +1,265 @@ +/* + * 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; + +/** + *
+ * Specifies the format and location of the input data. You must provide either
+ * the Annotations
parameter or the EntityList
+ * parameter.
+ *
+ * The S3 location of the annotation documents for your custom entity + * recognizer. + *
+ */ + private DatasetEntityRecognizerAnnotations annotations; + + /** + *+ * The format and location of the training documents for your custom entity + * recognizer. + *
+ */ + private DatasetEntityRecognizerDocuments documents; + + /** + *+ * The S3 location of the entity list for your custom entity recognizer. + *
+ */ + private DatasetEntityRecognizerEntityList entityList; + + /** + *+ * The S3 location of the annotation documents for your custom entity + * recognizer. + *
+ * + * @return+ * The S3 location of the annotation documents for your custom + * entity recognizer. + *
+ */ + public DatasetEntityRecognizerAnnotations getAnnotations() { + return annotations; + } + + /** + *+ * The S3 location of the annotation documents for your custom entity + * recognizer. + *
+ * + * @param annotations+ * The S3 location of the annotation documents for your custom + * entity recognizer. + *
+ */ + public void setAnnotations(DatasetEntityRecognizerAnnotations annotations) { + this.annotations = annotations; + } + + /** + *+ * The S3 location of the annotation documents for your custom entity + * recognizer. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param annotations
+ * The S3 location of the annotation documents for your custom + * entity recognizer. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetEntityRecognizerInputDataConfig withAnnotations( + DatasetEntityRecognizerAnnotations annotations) { + this.annotations = annotations; + return this; + } + + /** + *+ * The format and location of the training documents for your custom entity + * recognizer. + *
+ * + * @return+ * The format and location of the training documents for your custom + * entity recognizer. + *
+ */ + public DatasetEntityRecognizerDocuments getDocuments() { + return documents; + } + + /** + *+ * The format and location of the training documents for your custom entity + * recognizer. + *
+ * + * @param documents+ * The format and location of the training documents for your + * custom entity recognizer. + *
+ */ + public void setDocuments(DatasetEntityRecognizerDocuments documents) { + this.documents = documents; + } + + /** + *+ * The format and location of the training documents for your custom entity + * recognizer. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param documents
+ * The format and location of the training documents for your + * custom entity recognizer. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetEntityRecognizerInputDataConfig withDocuments( + DatasetEntityRecognizerDocuments documents) { + this.documents = documents; + return this; + } + + /** + *+ * The S3 location of the entity list for your custom entity recognizer. + *
+ * + * @return+ * The S3 location of the entity list for your custom entity + * recognizer. + *
+ */ + public DatasetEntityRecognizerEntityList getEntityList() { + return entityList; + } + + /** + *+ * The S3 location of the entity list for your custom entity recognizer. + *
+ * + * @param entityList+ * The S3 location of the entity list for your custom entity + * recognizer. + *
+ */ + public void setEntityList(DatasetEntityRecognizerEntityList entityList) { + this.entityList = entityList; + } + + /** + *+ * The S3 location of the entity list for your custom entity recognizer. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param entityList
+ * The S3 location of the entity list for your custom entity + * recognizer. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetEntityRecognizerInputDataConfig withEntityList( + DatasetEntityRecognizerEntityList entityList) { + this.entityList = entityList; + 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 (getAnnotations() != null) + sb.append("Annotations: " + getAnnotations() + ","); + if (getDocuments() != null) + sb.append("Documents: " + getDocuments() + ","); + if (getEntityList() != null) + sb.append("EntityList: " + getEntityList()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAnnotations() == null) ? 0 : getAnnotations().hashCode()); + hashCode = prime * hashCode + ((getDocuments() == null) ? 0 : getDocuments().hashCode()); + hashCode = prime * hashCode + ((getEntityList() == null) ? 0 : getEntityList().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetEntityRecognizerInputDataConfig == false) + return false; + DatasetEntityRecognizerInputDataConfig other = (DatasetEntityRecognizerInputDataConfig) obj; + + if (other.getAnnotations() == null ^ this.getAnnotations() == null) + return false; + if (other.getAnnotations() != null + && other.getAnnotations().equals(this.getAnnotations()) == false) + return false; + if (other.getDocuments() == null ^ this.getDocuments() == null) + return false; + if (other.getDocuments() != null + && other.getDocuments().equals(this.getDocuments()) == false) + return false; + if (other.getEntityList() == null ^ this.getEntityList() == null) + return false; + if (other.getEntityList() != null + && other.getEntityList().equals(this.getEntityList()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetFilter.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetFilter.java new file mode 100644 index 00000000000..6ec65e61558 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetFilter.java @@ -0,0 +1,424 @@ +/* + * 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; + +/** + *+ * Filter the datasets based on creation time or dataset status. + *
+ */ +public class DatasetFilter implements Serializable { + /** + *+ * Filter the datasets based on the dataset status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ */
+ private String status;
+
+ /**
+ *
+ * Filter the datasets based on the dataset type. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ */
+ private String datasetType;
+
+ /**
+ *
+ * Filter the datasets to include datasets created after the specified time. + *
+ */ + private java.util.Date creationTimeAfter; + + /** + *+ * Filter the datasets to include datasets created before the specified + * time. + *
+ */ + private java.util.Date creationTimeBefore; + + /** + *+ * Filter the datasets based on the dataset status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @return
+ * Filter the datasets based on the dataset status. + *
+ * @see DatasetStatus + */ + public String getStatus() { + return status; + } + + /** + *+ * Filter the datasets based on the dataset status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * Filter the datasets based on the dataset status. + *
+ * @see DatasetStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *+ * Filter the datasets based on the dataset status. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * Filter the datasets based on the dataset status. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetStatus + */ + public DatasetFilter withStatus(String status) { + this.status = status; + return this; + } + + /** + *+ * Filter the datasets based on the dataset status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * Filter the datasets based on the dataset status. + *
+ * @see DatasetStatus + */ + public void setStatus(DatasetStatus status) { + this.status = status.toString(); + } + + /** + *+ * Filter the datasets based on the dataset status. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * Filter the datasets based on the dataset status. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetStatus + */ + public DatasetFilter withStatus(DatasetStatus status) { + this.status = status.toString(); + return this; + } + + /** + *+ * Filter the datasets based on the dataset type. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @return
+ * Filter the datasets based on the dataset type. + *
+ * @see DatasetType + */ + public String getDatasetType() { + return datasetType; + } + + /** + *+ * Filter the datasets based on the dataset type. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Filter the datasets based on the dataset type. + *
+ * @see DatasetType + */ + public void setDatasetType(String datasetType) { + this.datasetType = datasetType; + } + + /** + *+ * Filter the datasets based on the dataset type. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Filter the datasets based on the dataset type. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetType + */ + public DatasetFilter withDatasetType(String datasetType) { + this.datasetType = datasetType; + return this; + } + + /** + *+ * Filter the datasets based on the dataset type. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Filter the datasets based on the dataset type. + *
+ * @see DatasetType + */ + public void setDatasetType(DatasetType datasetType) { + this.datasetType = datasetType.toString(); + } + + /** + *+ * Filter the datasets based on the dataset type. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * Filter the datasets based on the dataset type. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetType + */ + public DatasetFilter withDatasetType(DatasetType datasetType) { + this.datasetType = datasetType.toString(); + return this; + } + + /** + *+ * Filter the datasets to include datasets created after the specified time. + *
+ * + * @return+ * Filter the datasets to include datasets created after the + * specified time. + *
+ */ + public java.util.Date getCreationTimeAfter() { + return creationTimeAfter; + } + + /** + *+ * Filter the datasets to include datasets created after the specified time. + *
+ * + * @param creationTimeAfter+ * Filter the datasets to include datasets created after the + * specified time. + *
+ */ + public void setCreationTimeAfter(java.util.Date creationTimeAfter) { + this.creationTimeAfter = creationTimeAfter; + } + + /** + *+ * Filter the datasets to include datasets created after the specified time. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTimeAfter
+ * Filter the datasets to include datasets created after the + * specified time. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetFilter withCreationTimeAfter(java.util.Date creationTimeAfter) { + this.creationTimeAfter = creationTimeAfter; + return this; + } + + /** + *+ * Filter the datasets to include datasets created before the specified + * time. + *
+ * + * @return+ * Filter the datasets to include datasets created before the + * specified time. + *
+ */ + public java.util.Date getCreationTimeBefore() { + return creationTimeBefore; + } + + /** + *+ * Filter the datasets to include datasets created before the specified + * time. + *
+ * + * @param creationTimeBefore+ * Filter the datasets to include datasets created before the + * specified time. + *
+ */ + public void setCreationTimeBefore(java.util.Date creationTimeBefore) { + this.creationTimeBefore = creationTimeBefore; + } + + /** + *+ * Filter the datasets to include datasets created before the specified + * time. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTimeBefore
+ * Filter the datasets to include datasets created before the + * specified time. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetFilter withCreationTimeBefore(java.util.Date creationTimeBefore) { + this.creationTimeBefore = creationTimeBefore; + 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 (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getDatasetType() != null) + sb.append("DatasetType: " + getDatasetType() + ","); + if (getCreationTimeAfter() != null) + sb.append("CreationTimeAfter: " + getCreationTimeAfter() + ","); + if (getCreationTimeBefore() != null) + sb.append("CreationTimeBefore: " + getCreationTimeBefore()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + + ((getDatasetType() == null) ? 0 : getDatasetType().hashCode()); + hashCode = prime * hashCode + + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode()); + hashCode = prime * hashCode + + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetFilter == false) + return false; + DatasetFilter other = (DatasetFilter) obj; + + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null) + return false; + if (other.getCreationTimeAfter() != null + && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == false) + return false; + if (other.getCreationTimeBefore() == null ^ this.getCreationTimeBefore() == null) + return false; + if (other.getCreationTimeBefore() != null + && other.getCreationTimeBefore().equals(this.getCreationTimeBefore()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetInputDataConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetInputDataConfig.java new file mode 100644 index 00000000000..860fcc03b6d --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetInputDataConfig.java @@ -0,0 +1,520 @@ +/* + * 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; + +/** + *+ * Specifies the format and location of the input data for the dataset. + *
+ */ +public class DatasetInputDataConfig implements Serializable { + /** + *+ * A list of augmented manifest files that provide training data for your + * custom model. An augmented manifest file is a labeled dataset that is + * produced by Amazon SageMaker Ground Truth. + *
+ */ + private java.util.List
+ * COMPREHEND_CSV
: The data format is a two-column CSV file,
+ * where the first column contains labels and the second column contains
+ * documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * Constraints:
+ * Allowed Values: COMPREHEND_CSV, AUGMENTED_MANIFEST
+ */
+ private String dataFormat;
+
+ /**
+ *
+ * The input properties for training a document classifier model. + *
+ *+ * For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide. + *
+ */ + private DatasetDocumentClassifierInputDataConfig documentClassifierInputDataConfig; + + /** + *+ * The input properties for training an entity recognizer model. + *
+ */ + private DatasetEntityRecognizerInputDataConfig entityRecognizerInputDataConfig; + + /** + *+ * A list of augmented manifest files that provide training data for your + * custom model. An augmented manifest file is a labeled dataset that is + * produced by Amazon SageMaker Ground Truth. + *
+ * + * @return+ * A list of augmented manifest files that provide training data for + * your custom model. An augmented manifest file is a labeled + * dataset that is produced by Amazon SageMaker Ground Truth. + *
+ */ + public java.util.List+ * A list of augmented manifest files that provide training data for your + * custom model. An augmented manifest file is a labeled dataset that is + * produced by Amazon SageMaker Ground Truth. + *
+ * + * @param augmentedManifests+ * A list of augmented manifest files that provide training data + * for your custom model. An augmented manifest file is a labeled + * dataset that is produced by Amazon SageMaker Ground Truth. + *
+ */ + public void setAugmentedManifests( + java.util.Collection+ * A list of augmented manifest files that provide training data for your + * custom model. An augmented manifest file is a labeled dataset that is + * produced by Amazon SageMaker Ground Truth. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param augmentedManifests
+ * A list of augmented manifest files that provide training data + * for your custom model. An augmented manifest file is a labeled + * dataset that is produced by Amazon SageMaker Ground Truth. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetInputDataConfig withAugmentedManifests( + DatasetAugmentedManifestsListItem... augmentedManifests) { + if (getAugmentedManifests() == null) { + this.augmentedManifests = new java.util.ArrayList+ * A list of augmented manifest files that provide training data for your + * custom model. An augmented manifest file is a labeled dataset that is + * produced by Amazon SageMaker Ground Truth. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param augmentedManifests
+ * A list of augmented manifest files that provide training data + * for your custom model. An augmented manifest file is a labeled + * dataset that is produced by Amazon SageMaker Ground Truth. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetInputDataConfig withAugmentedManifests( + java.util.Collection
+ * COMPREHEND_CSV
: The data format is a two-column CSV file,
+ * where the first column contains labels and the second column contains
+ * documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * Constraints:
+ * Allowed Values: COMPREHEND_CSV, AUGMENTED_MANIFEST
+ *
+ * @return
+ * COMPREHEND_CSV
: The data format is a two-column CSV
+ * file, where the first column contains labels and the second
+ * column contains documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * COMPREHEND_CSV
: The data format is a two-column CSV file,
+ * where the first column contains labels and the second column contains
+ * documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * Constraints:
+ * Allowed Values: COMPREHEND_CSV, AUGMENTED_MANIFEST
+ *
+ * @param dataFormat
+ * COMPREHEND_CSV
: The data format is a two-column
+ * CSV file, where the first column contains labels and the
+ * second column contains documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * COMPREHEND_CSV
: The data format is a two-column CSV file,
+ * where the first column contains labels and the second column contains
+ * documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: COMPREHEND_CSV, AUGMENTED_MANIFEST
+ *
+ * @param dataFormat
+ * COMPREHEND_CSV
: The data format is a two-column
+ * CSV file, where the first column contains labels and the
+ * second column contains documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * COMPREHEND_CSV
: The data format is a two-column CSV file,
+ * where the first column contains labels and the second column contains
+ * documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * Constraints:
+ * Allowed Values: COMPREHEND_CSV, AUGMENTED_MANIFEST
+ *
+ * @param dataFormat
+ * COMPREHEND_CSV
: The data format is a two-column
+ * CSV file, where the first column contains labels and the
+ * second column contains documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * COMPREHEND_CSV
: The data format is a two-column CSV file,
+ * where the first column contains labels and the second column contains
+ * documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: COMPREHEND_CSV, AUGMENTED_MANIFEST
+ *
+ * @param dataFormat
+ * COMPREHEND_CSV
: The data format is a two-column
+ * CSV file, where the first column contains labels and the
+ * second column contains documents.
+ *
+ * AUGMENTED_MANIFEST
: The data format
+ *
+ * The input properties for training a document classifier model. + *
+ *+ * For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide. + *
+ * + * @return+ * The input properties for training a document classifier model. + *
+ *+ * For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide. + *
+ */ + public DatasetDocumentClassifierInputDataConfig getDocumentClassifierInputDataConfig() { + return documentClassifierInputDataConfig; + } + + /** + *+ * The input properties for training a document classifier model. + *
+ *+ * For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide. + *
+ * + * @param documentClassifierInputDataConfig+ * The input properties for training a document classifier model. + *
+ *+ * For more information on how the input file is formatted, see + * Preparing training data in the Comprehend Developer + * Guide. + *
+ */ + public void setDocumentClassifierInputDataConfig( + DatasetDocumentClassifierInputDataConfig documentClassifierInputDataConfig) { + this.documentClassifierInputDataConfig = documentClassifierInputDataConfig; + } + + /** + *+ * The input properties for training a document classifier model. + *
+ *+ * For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param documentClassifierInputDataConfig
+ * The input properties for training a document classifier model. + *
+ *+ * For more information on how the input file is formatted, see + * Preparing training data in the Comprehend Developer + * Guide. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetInputDataConfig withDocumentClassifierInputDataConfig( + DatasetDocumentClassifierInputDataConfig documentClassifierInputDataConfig) { + this.documentClassifierInputDataConfig = documentClassifierInputDataConfig; + return this; + } + + /** + *+ * The input properties for training an entity recognizer model. + *
+ * + * @return+ * The input properties for training an entity recognizer model. + *
+ */ + public DatasetEntityRecognizerInputDataConfig getEntityRecognizerInputDataConfig() { + return entityRecognizerInputDataConfig; + } + + /** + *+ * The input properties for training an entity recognizer model. + *
+ * + * @param entityRecognizerInputDataConfig+ * The input properties for training an entity recognizer model. + *
+ */ + public void setEntityRecognizerInputDataConfig( + DatasetEntityRecognizerInputDataConfig entityRecognizerInputDataConfig) { + this.entityRecognizerInputDataConfig = entityRecognizerInputDataConfig; + } + + /** + *+ * The input properties for training an entity recognizer model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param entityRecognizerInputDataConfig
+ * The input properties for training an entity recognizer model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetInputDataConfig withEntityRecognizerInputDataConfig( + DatasetEntityRecognizerInputDataConfig entityRecognizerInputDataConfig) { + this.entityRecognizerInputDataConfig = entityRecognizerInputDataConfig; + 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 (getAugmentedManifests() != null) + sb.append("AugmentedManifests: " + getAugmentedManifests() + ","); + if (getDataFormat() != null) + sb.append("DataFormat: " + getDataFormat() + ","); + if (getDocumentClassifierInputDataConfig() != null) + sb.append("DocumentClassifierInputDataConfig: " + + getDocumentClassifierInputDataConfig() + ","); + if (getEntityRecognizerInputDataConfig() != null) + sb.append("EntityRecognizerInputDataConfig: " + getEntityRecognizerInputDataConfig()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAugmentedManifests() == null) ? 0 : getAugmentedManifests().hashCode()); + hashCode = prime * hashCode + ((getDataFormat() == null) ? 0 : getDataFormat().hashCode()); + hashCode = prime + * hashCode + + ((getDocumentClassifierInputDataConfig() == null) ? 0 + : getDocumentClassifierInputDataConfig().hashCode()); + hashCode = prime + * hashCode + + ((getEntityRecognizerInputDataConfig() == null) ? 0 + : getEntityRecognizerInputDataConfig().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetInputDataConfig == false) + return false; + DatasetInputDataConfig other = (DatasetInputDataConfig) obj; + + if (other.getAugmentedManifests() == null ^ this.getAugmentedManifests() == null) + return false; + if (other.getAugmentedManifests() != null + && other.getAugmentedManifests().equals(this.getAugmentedManifests()) == false) + return false; + if (other.getDataFormat() == null ^ this.getDataFormat() == null) + return false; + if (other.getDataFormat() != null + && other.getDataFormat().equals(this.getDataFormat()) == false) + return false; + if (other.getDocumentClassifierInputDataConfig() == null + ^ this.getDocumentClassifierInputDataConfig() == null) + return false; + if (other.getDocumentClassifierInputDataConfig() != null + && other.getDocumentClassifierInputDataConfig().equals( + this.getDocumentClassifierInputDataConfig()) == false) + return false; + if (other.getEntityRecognizerInputDataConfig() == null + ^ this.getEntityRecognizerInputDataConfig() == null) + return false; + if (other.getEntityRecognizerInputDataConfig() != null + && other.getEntityRecognizerInputDataConfig().equals( + this.getEntityRecognizerInputDataConfig()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetProperties.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetProperties.java new file mode 100644 index 00000000000..1695cd6e509 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetProperties.java @@ -0,0 +1,876 @@ +/* + * 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; + +/** + *+ * Properties associated with the dataset. + *
+ */ +public class DatasetProperties 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 name of the dataset. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ */
+ private String datasetName;
+
+ /**
+ *
+ * The dataset type (training data or test data). + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ */
+ private String datasetType;
+
+ /**
+ *
+ * The S3 URI where the dataset is stored. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String datasetS3Uri;
+
+ /**
+ *
+ * Description of the dataset. + *
+ *
+ * Constraints:
+ * Length: - 2048
+ * Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
+ */
+ private String description;
+
+ /**
+ *
+ * The dataset status. While the system creates the dataset, the status is
+ * CREATING
. When the dataset is ready to use, the status
+ * changes to COMPLETED
.
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ */
+ private String status;
+
+ /**
+ *
+ * A description of the status of the dataset. + *
+ */ + private String message; + + /** + *+ * The number of documents in the dataset. + *
+ */ + private Long numberOfDocuments; + + /** + *+ * Creation time of the dataset. + *
+ */ + private java.util.Date creationTime; + + /** + *+ * Time when the data from the dataset becomes available in the data lake. + *
+ */ + private java.util.Date endTime; + + /** + *+ * 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 DatasetProperties withDatasetArn(String datasetArn) { + this.datasetArn = datasetArn; + return this; + } + + /** + *+ * The name of the dataset. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ *
+ * @return
+ * The name of the dataset. + *
+ */ + public String getDatasetName() { + return datasetName; + } + + /** + *+ * The name of the dataset. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
+ *
+ * @param datasetName
+ * The name of the dataset. + *
+ */ + public void setDatasetName(String datasetName) { + this.datasetName = datasetName; + } + + /** + *+ * The 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
+ * The name of the dataset. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetProperties withDatasetName(String datasetName) { + this.datasetName = datasetName; + return this; + } + + /** + *+ * The dataset type (training data or test data). + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @return
+ * The dataset type (training data or test data). + *
+ * @see DatasetType + */ + public String getDatasetType() { + return datasetType; + } + + /** + *+ * The dataset type (training data or test data). + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * The dataset type (training data or test data). + *
+ * @see DatasetType + */ + public void setDatasetType(String datasetType) { + this.datasetType = datasetType; + } + + /** + *+ * The dataset type (training data or test data). + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * The dataset type (training data or test data). + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetType + */ + public DatasetProperties withDatasetType(String datasetType) { + this.datasetType = datasetType; + return this; + } + + /** + *+ * The dataset type (training data or test data). + *
+ *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * The dataset type (training data or test data). + *
+ * @see DatasetType + */ + public void setDatasetType(DatasetType datasetType) { + this.datasetType = datasetType.toString(); + } + + /** + *+ * The dataset type (training data or test data). + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TRAIN, TEST
+ *
+ * @param datasetType
+ * The dataset type (training data or test data). + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see DatasetType + */ + public DatasetProperties withDatasetType(DatasetType datasetType) { + this.datasetType = datasetType.toString(); + return this; + } + + /** + *+ * The S3 URI where the dataset is stored. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * The S3 URI where the dataset is stored. + *
+ */ + public String getDatasetS3Uri() { + return datasetS3Uri; + } + + /** + *+ * The S3 URI where the dataset is stored. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param datasetS3Uri
+ * The S3 URI where the dataset is stored. + *
+ */ + public void setDatasetS3Uri(String datasetS3Uri) { + this.datasetS3Uri = datasetS3Uri; + } + + /** + *+ * The S3 URI where the dataset is stored. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param datasetS3Uri
+ * The S3 URI where the dataset is stored. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetProperties withDatasetS3Uri(String datasetS3Uri) { + this.datasetS3Uri = datasetS3Uri; + 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 DatasetProperties withDescription(String description) { + this.description = description; + return this; + } + + /** + *
+ * The dataset status. While the system creates the dataset, the status is
+ * CREATING
. When the dataset is ready to use, the status
+ * changes to COMPLETED
.
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @return
+ * The dataset status. While the system creates the dataset, the
+ * status is CREATING
. When the dataset is ready to
+ * use, the status changes to COMPLETED
.
+ *
+ * The dataset status. While the system creates the dataset, the status is
+ * CREATING
. When the dataset is ready to use, the status
+ * changes to COMPLETED
.
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * The dataset status. While the system creates the dataset, the
+ * status is CREATING
. When the dataset is ready to
+ * use, the status changes to COMPLETED
.
+ *
+ * The dataset status. While the system creates the dataset, the status is
+ * CREATING
. When the dataset is ready to use, the status
+ * changes to COMPLETED
.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * The dataset status. While the system creates the dataset, the
+ * status is CREATING
. When the dataset is ready to
+ * use, the status changes to COMPLETED
.
+ *
+ * The dataset status. While the system creates the dataset, the status is
+ * CREATING
. When the dataset is ready to use, the status
+ * changes to COMPLETED
.
+ *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * The dataset status. While the system creates the dataset, the
+ * status is CREATING
. When the dataset is ready to
+ * use, the status changes to COMPLETED
.
+ *
+ * The dataset status. While the system creates the dataset, the status is
+ * CREATING
. When the dataset is ready to use, the status
+ * changes to COMPLETED
.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, COMPLETED, FAILED
+ *
+ * @param status
+ * The dataset status. While the system creates the dataset, the
+ * status is CREATING
. When the dataset is ready to
+ * use, the status changes to COMPLETED
.
+ *
+ * A description of the status of the dataset. + *
+ * + * @return+ * A description of the status of the dataset. + *
+ */ + public String getMessage() { + return message; + } + + /** + *+ * A description of the status of the dataset. + *
+ * + * @param message+ * A description of the status of the dataset. + *
+ */ + public void setMessage(String message) { + this.message = message; + } + + /** + *+ * A description of the status of the dataset. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param message
+ * A description of the status of the dataset. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetProperties withMessage(String message) { + this.message = message; + return this; + } + + /** + *+ * The number of documents in the dataset. + *
+ * + * @return+ * The number of documents in the dataset. + *
+ */ + public Long getNumberOfDocuments() { + return numberOfDocuments; + } + + /** + *+ * The number of documents in the dataset. + *
+ * + * @param numberOfDocuments+ * The number of documents in the dataset. + *
+ */ + public void setNumberOfDocuments(Long numberOfDocuments) { + this.numberOfDocuments = numberOfDocuments; + } + + /** + *+ * The number of documents in the dataset. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param numberOfDocuments
+ * The number of documents in the dataset. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetProperties withNumberOfDocuments(Long numberOfDocuments) { + this.numberOfDocuments = numberOfDocuments; + return this; + } + + /** + *+ * Creation time of the dataset. + *
+ * + * @return+ * Creation time of the dataset. + *
+ */ + public java.util.Date getCreationTime() { + return creationTime; + } + + /** + *+ * Creation time of the dataset. + *
+ * + * @param creationTime+ * Creation time of the dataset. + *
+ */ + public void setCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + } + + /** + *+ * Creation time of the dataset. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTime
+ * Creation time of the dataset. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetProperties withCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + *+ * Time when the data from the dataset becomes available in the data lake. + *
+ * + * @return+ * Time when the data from the dataset becomes available in the data + * lake. + *
+ */ + public java.util.Date getEndTime() { + return endTime; + } + + /** + *+ * Time when the data from the dataset becomes available in the data lake. + *
+ * + * @param endTime+ * Time when the data from the dataset becomes available in the + * data lake. + *
+ */ + public void setEndTime(java.util.Date endTime) { + this.endTime = endTime; + } + + /** + *+ * Time when the data from the dataset becomes available in the data lake. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endTime
+ * Time when the data from the dataset becomes available in the + * data lake. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DatasetProperties withEndTime(java.util.Date endTime) { + this.endTime = endTime; + 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() + ","); + if (getDatasetName() != null) + sb.append("DatasetName: " + getDatasetName() + ","); + if (getDatasetType() != null) + sb.append("DatasetType: " + getDatasetType() + ","); + if (getDatasetS3Uri() != null) + sb.append("DatasetS3Uri: " + getDatasetS3Uri() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getMessage() != null) + sb.append("Message: " + getMessage() + ","); + if (getNumberOfDocuments() != null) + sb.append("NumberOfDocuments: " + getNumberOfDocuments() + ","); + if (getCreationTime() != null) + sb.append("CreationTime: " + getCreationTime() + ","); + if (getEndTime() != null) + sb.append("EndTime: " + getEndTime()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDatasetArn() == null) ? 0 : getDatasetArn().hashCode()); + hashCode = prime * hashCode + + ((getDatasetName() == null) ? 0 : getDatasetName().hashCode()); + hashCode = prime * hashCode + + ((getDatasetType() == null) ? 0 : getDatasetType().hashCode()); + hashCode = prime * hashCode + + ((getDatasetS3Uri() == null) ? 0 : getDatasetS3Uri().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); + hashCode = prime * hashCode + + ((getNumberOfDocuments() == null) ? 0 : getNumberOfDocuments().hashCode()); + hashCode = prime * hashCode + + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); + hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DatasetProperties == false) + return false; + DatasetProperties other = (DatasetProperties) obj; + + if (other.getDatasetArn() == null ^ this.getDatasetArn() == null) + return false; + if (other.getDatasetArn() != null + && other.getDatasetArn().equals(this.getDatasetArn()) == 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.getDatasetS3Uri() == null ^ this.getDatasetS3Uri() == null) + return false; + if (other.getDatasetS3Uri() != null + && other.getDatasetS3Uri().equals(this.getDatasetS3Uri()) == 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.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getMessage() == null ^ this.getMessage() == null) + return false; + if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) + return false; + if (other.getNumberOfDocuments() == null ^ this.getNumberOfDocuments() == null) + return false; + if (other.getNumberOfDocuments() != null + && other.getNumberOfDocuments().equals(this.getNumberOfDocuments()) == false) + return false; + if (other.getCreationTime() == null ^ this.getCreationTime() == null) + return false; + if (other.getCreationTime() != null + && other.getCreationTime().equals(this.getCreationTime()) == false) + return false; + if (other.getEndTime() == null ^ this.getEndTime() == null) + return false; + if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetStatus.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetStatus.java new file mode 100644 index 00000000000..c0114fc76f9 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DatasetStatus.java @@ -0,0 +1,64 @@ +/* + * 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; + +/** + * Dataset Status + */ +public enum DatasetStatus { + + CREATING("CREATING"), + COMPLETED("COMPLETED"), + FAILED("FAILED"); + + private String value; + + private DatasetStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map+ * 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. + *
+ */ +public class DeleteFlywheelRequest extends AmazonWebServiceRequest implements Serializable { + /** + *+ * The Amazon Resource Number (ARN) of the flywheel to delete. + *
+ *
+ * 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;
+
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the flywheel to delete. + *
+ *
+ * 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 to delete. + *
+ */ + public String getFlywheelArn() { + return flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel to delete. + *
+ *
+ * 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 to delete. + *
+ */ + public void setFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel to delete. + *
+ *+ * 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 to delete. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteFlywheelRequest withFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + 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()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getFlywheelArn() == null) ? 0 : getFlywheelArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteFlywheelRequest == false) + return false; + DeleteFlywheelRequest other = (DeleteFlywheelRequest) obj; + + if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) + return false; + if (other.getFlywheelArn() != null + && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteFlywheelResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteFlywheelResult.java new file mode 100644 index 00000000000..bf6eea3a75d --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteFlywheelResult.java @@ -0,0 +1,57 @@ +/* + * 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 DeleteFlywheelResult implements Serializable { + /** + * 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("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteFlywheelResult == false) + return false; + DeleteFlywheelResult other = (DeleteFlywheelResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteResourcePolicyRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteResourcePolicyRequest.java index 4ffbdb278d9..27e5fa97fe5 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteResourcePolicyRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteResourcePolicyRequest.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/DeleteResourcePolicyResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteResourcePolicyResult.java index 2438a8953ba..752d2e81d03 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteResourcePolicyResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DeleteResourcePolicyResult.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/DescribeDatasetRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDatasetRequest.java new file mode 100644 index 00000000000..c2e0e3f11d8 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDatasetRequest.java @@ -0,0 +1,155 @@ +/* + * 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; + +/** + *+ * Returns information about the dataset that you specify. For more information + * about datasets, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *
+ */ +public class DescribeDatasetRequest extends AmazonWebServiceRequest 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 DescribeDatasetRequest 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 DescribeDatasetRequest == false) + return false; + DescribeDatasetRequest other = (DescribeDatasetRequest) 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/DescribeDatasetResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDatasetResult.java new file mode 100644 index 00000000000..ea04dc467c3 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDatasetResult.java @@ -0,0 +1,118 @@ +/* + * 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 DescribeDatasetResult implements Serializable { + /** + *+ * The dataset properties. + *
+ */ + private DatasetProperties datasetProperties; + + /** + *+ * The dataset properties. + *
+ * + * @return+ * The dataset properties. + *
+ */ + public DatasetProperties getDatasetProperties() { + return datasetProperties; + } + + /** + *+ * The dataset properties. + *
+ * + * @param datasetProperties+ * The dataset properties. + *
+ */ + public void setDatasetProperties(DatasetProperties datasetProperties) { + this.datasetProperties = datasetProperties; + } + + /** + *+ * The dataset properties. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param datasetProperties
+ * The dataset properties. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeDatasetResult withDatasetProperties(DatasetProperties datasetProperties) { + this.datasetProperties = datasetProperties; + 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 (getDatasetProperties() != null) + sb.append("DatasetProperties: " + getDatasetProperties()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getDatasetProperties() == null) ? 0 : getDatasetProperties().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeDatasetResult == false) + return false; + DescribeDatasetResult other = (DescribeDatasetResult) obj; + + if (other.getDatasetProperties() == null ^ this.getDatasetProperties() == null) + return false; + if (other.getDatasetProperties() != null + && other.getDatasetProperties().equals(this.getDatasetProperties()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDocumentClassificationJobRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDocumentClassificationJobRequest.java index 47a693873f1..5fe45a5f16f 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDocumentClassificationJobRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeDocumentClassificationJobRequest.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. @@ -30,7 +30,8 @@ public class DescribeDocumentClassificationJobRequest extends AmazonWebServiceRe /** *
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDocumentClassificationJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -42,7 +43,8 @@ public class DescribeDocumentClassificationJobRequest extends AmazonWebServiceRe
/**
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDocumentClassificationJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -51,7 +53,8 @@ public class DescribeDocumentClassificationJobRequest extends AmazonWebServiceRe
*
* @return
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDocumentClassificationJob
operation returns
+ * this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDocumentClassificationJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -70,7 +74,8 @@ public String getJobId() {
*
* @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartDocumentClassificationJob
operation
+ * returns this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDocumentClassificationJob
operation returns this
+ * identifier in its response.
*
* Returns a reference to this object so that method calls can be chained @@ -92,7 +98,8 @@ public void setJobId(String jobId) { * * @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartDocumentClassificationJob
operation
+ * returns this identifier in its response.
*
* The Amazon Resource Name (ARN) that identifies the document classifier.
- * The operation returns this identifier in its response.
+ * The CreateDocumentClassifier
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -44,7 +45,8 @@ public class DescribeDocumentClassifierRequest extends AmazonWebServiceRequest i
/**
*
* The Amazon Resource Name (ARN) that identifies the document classifier.
- * The operation returns this identifier in its response.
+ * The CreateDocumentClassifier
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -56,8 +58,8 @@ public class DescribeDocumentClassifierRequest extends AmazonWebServiceRequest i
*
* @return
* The Amazon Resource Name (ARN) that identifies the document
- * classifier. The operation returns this identifier in its
- * response.
+ * classifier. The CreateDocumentClassifier
operation
+ * returns this identifier in its response.
*
* The Amazon Resource Name (ARN) that identifies the document classifier.
- * The operation returns this identifier in its response.
+ * The CreateDocumentClassifier
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -79,8 +82,8 @@ public String getDocumentClassifierArn() {
*
* @param documentClassifierArn
* The Amazon Resource Name (ARN) that identifies the document
- * classifier. The operation returns this identifier in its
- * response.
+ * classifier. The CreateDocumentClassifier
+ * operation returns this identifier in its response.
*
* The Amazon Resource Name (ARN) that identifies the document classifier.
- * The operation returns this identifier in its response.
+ * The CreateDocumentClassifier
operation returns this
+ * identifier in its response.
*
* Returns a reference to this object so that method calls can be chained @@ -105,8 +109,8 @@ public void setDocumentClassifierArn(String documentClassifierArn) { * * @param documentClassifierArn
* The Amazon Resource Name (ARN) that identifies the document
- * classifier. The operation returns this identifier in its
- * response.
+ * classifier. The CreateDocumentClassifier
+ * operation returns this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDominantLanguageDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -42,7 +43,8 @@ public class DescribeDominantLanguageDetectionJobRequest extends AmazonWebServic
/**
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDominantLanguageDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -51,7 +53,8 @@ public class DescribeDominantLanguageDetectionJobRequest extends AmazonWebServic
*
* @return
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDominantLanguageDetectionJob
operation returns
+ * this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDominantLanguageDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -70,7 +74,8 @@ public String getJobId() {
*
* @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartDominantLanguageDetectionJob
operation
+ * returns this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartDominantLanguageDetectionJob
operation returns this
+ * identifier in its response.
*
* Returns a reference to this object so that method calls can be chained @@ -92,7 +98,8 @@ public void setJobId(String jobId) { * * @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartDominantLanguageDetectionJob
operation
+ * returns this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartEntitiesDetectionJob
operation returns this identifier
+ * in its response.
*
* Constraints:
@@ -42,7 +43,8 @@ public class DescribeEntitiesDetectionJobRequest extends AmazonWebServiceRequest
/**
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartEntitiesDetectionJob
operation returns this identifier
+ * in its response.
*
* Constraints:
@@ -51,7 +53,8 @@ public class DescribeEntitiesDetectionJobRequest extends AmazonWebServiceRequest
*
* @return
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartEntitiesDetectionJob
operation returns this
+ * identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartEntitiesDetectionJob
operation returns this identifier
+ * in its response.
*
* Constraints:
@@ -70,7 +74,8 @@ public String getJobId() {
*
* @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartEntitiesDetectionJob
operation returns
+ * this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartEntitiesDetectionJob
operation returns this identifier
+ * in its response.
*
* Returns a reference to this object so that method calls can be chained @@ -92,7 +98,8 @@ public void setJobId(String jobId) { * * @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartEntitiesDetectionJob
operation returns
+ * this identifier in its response.
*
+ * Retrieve the configuration properties of a flywheel iteration. For more + * information about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *
+ */ +public class DescribeFlywheelIterationRequest extends AmazonWebServiceRequest implements + Serializable { + /** + * + *
+ * 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;
+
+ /**
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ */
+ private String flywheelIterationId;
+
+ /**
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * 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
+ * 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
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @return
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param flywheelIterationId
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param flywheelIterationId
+ * The configuration properties of a flywheel iteration. + *
+ */ + private FlywheelIterationProperties flywheelIterationProperties; + + /** + *+ * The configuration properties of a flywheel iteration. + *
+ * + * @return+ * The configuration properties of a flywheel iteration. + *
+ */ + public FlywheelIterationProperties getFlywheelIterationProperties() { + return flywheelIterationProperties; + } + + /** + *+ * The configuration properties of a flywheel iteration. + *
+ * + * @param flywheelIterationProperties+ * The configuration properties of a flywheel iteration. + *
+ */ + public void setFlywheelIterationProperties( + FlywheelIterationProperties flywheelIterationProperties) { + this.flywheelIterationProperties = flywheelIterationProperties; + } + + /** + *+ * The configuration properties of a flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flywheelIterationProperties
+ * The configuration properties of a flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeFlywheelIterationResult withFlywheelIterationProperties( + FlywheelIterationProperties flywheelIterationProperties) { + this.flywheelIterationProperties = flywheelIterationProperties; + 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 (getFlywheelIterationProperties() != null) + sb.append("FlywheelIterationProperties: " + getFlywheelIterationProperties()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getFlywheelIterationProperties() == null) ? 0 + : getFlywheelIterationProperties().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeFlywheelIterationResult == false) + return false; + DescribeFlywheelIterationResult other = (DescribeFlywheelIterationResult) obj; + + if (other.getFlywheelIterationProperties() == null + ^ this.getFlywheelIterationProperties() == null) + return false; + if (other.getFlywheelIterationProperties() != null + && other.getFlywheelIterationProperties().equals( + this.getFlywheelIterationProperties()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelRequest.java new file mode 100644 index 00000000000..16f218ad88f --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelRequest.java @@ -0,0 +1,152 @@ +/* + * 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; + +/** + *+ * Provides configuration information about the flywheel. For more information + * about flywheels, see + * Flywheel overview in the Amazon Comprehend Developer Guide. + *
+ */ +public class DescribeFlywheelRequest extends AmazonWebServiceRequest implements Serializable { + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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;
+
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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. + *
+ */ + public String getFlywheelArn() { + return flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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. + *
+ */ + public void setFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *+ * 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. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeFlywheelRequest withFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + 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()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getFlywheelArn() == null) ? 0 : getFlywheelArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeFlywheelRequest == false) + return false; + DescribeFlywheelRequest other = (DescribeFlywheelRequest) obj; + + if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) + return false; + if (other.getFlywheelArn() != null + && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelResult.java new file mode 100644 index 00000000000..506d11e1089 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeFlywheelResult.java @@ -0,0 +1,118 @@ +/* + * 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 DescribeFlywheelResult implements Serializable { + /** + *+ * The flywheel properties. + *
+ */ + private FlywheelProperties flywheelProperties; + + /** + *+ * The flywheel properties. + *
+ * + * @return+ * The flywheel properties. + *
+ */ + public FlywheelProperties getFlywheelProperties() { + return flywheelProperties; + } + + /** + *+ * The flywheel properties. + *
+ * + * @param flywheelProperties+ * The flywheel properties. + *
+ */ + public void setFlywheelProperties(FlywheelProperties flywheelProperties) { + this.flywheelProperties = flywheelProperties; + } + + /** + *+ * The flywheel properties. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flywheelProperties
+ * The flywheel properties. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeFlywheelResult withFlywheelProperties(FlywheelProperties flywheelProperties) { + this.flywheelProperties = flywheelProperties; + 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 (getFlywheelProperties() != null) + sb.append("FlywheelProperties: " + getFlywheelProperties()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getFlywheelProperties() == null) ? 0 : getFlywheelProperties().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeFlywheelResult == false) + return false; + DescribeFlywheelResult other = (DescribeFlywheelResult) obj; + + if (other.getFlywheelProperties() == null ^ this.getFlywheelProperties() == null) + return false; + if (other.getFlywheelProperties() != null + && other.getFlywheelProperties().equals(this.getFlywheelProperties()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeKeyPhrasesDetectionJobRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeKeyPhrasesDetectionJobRequest.java index d26646d2a8a..513eddf9e26 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeKeyPhrasesDetectionJobRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeKeyPhrasesDetectionJobRequest.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. @@ -30,7 +30,8 @@ public class DescribeKeyPhrasesDetectionJobRequest extends AmazonWebServiceReque /** *
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartKeyPhrasesDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -42,7 +43,8 @@ public class DescribeKeyPhrasesDetectionJobRequest extends AmazonWebServiceReque
/**
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartKeyPhrasesDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -51,7 +53,8 @@ public class DescribeKeyPhrasesDetectionJobRequest extends AmazonWebServiceReque
*
* @return
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartKeyPhrasesDetectionJob
operation returns this
+ * identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartKeyPhrasesDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -70,7 +74,8 @@ public String getJobId() {
*
* @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartKeyPhrasesDetectionJob
operation returns
+ * this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartKeyPhrasesDetectionJob
operation returns this
+ * identifier in its response.
*
* Returns a reference to this object so that method calls can be chained @@ -92,7 +98,8 @@ public void setJobId(String jobId) { * * @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartKeyPhrasesDetectionJob
operation returns
+ * this identifier in its response.
*
- * The Amazon Resource Name (ARN) of the policy to describe. + * The Amazon Resource Name (ARN) of the custom model version that has the + * resource policy. *
*
* Constraints:
@@ -43,7 +44,8 @@ public class DescribeResourcePolicyRequest extends AmazonWebServiceRequest imple
/**
*
- * The Amazon Resource Name (ARN) of the policy to describe. + * The Amazon Resource Name (ARN) of the custom model version that has the + * resource policy. *
*
* Constraints:
@@ -55,7 +57,8 @@ public class DescribeResourcePolicyRequest extends AmazonWebServiceRequest imple
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @return
- * The Amazon Resource Name (ARN) of the policy to describe. + * The Amazon Resource Name (ARN) of the custom model version that + * has the resource policy. *
*/ public String getResourceArn() { @@ -64,7 +67,8 @@ public String getResourceArn() { /** *- * The Amazon Resource Name (ARN) of the policy to describe. + * The Amazon Resource Name (ARN) of the custom model version that has the + * resource policy. *
*
* Constraints:
@@ -76,7 +80,8 @@ public String getResourceArn() {
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @param resourceArn
- * The Amazon Resource Name (ARN) of the policy to describe. + * The Amazon Resource Name (ARN) of the custom model version + * that has the resource policy. *
*/ public void setResourceArn(String resourceArn) { @@ -85,7 +90,8 @@ public void setResourceArn(String resourceArn) { /** *- * The Amazon Resource Name (ARN) of the policy to describe. + * The Amazon Resource Name (ARN) of the custom model version that has the + * resource policy. *
*
* Returns a reference to this object so that method calls can be chained
@@ -100,7 +106,8 @@ public void setResourceArn(String resourceArn) {
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @param resourceArn
- * The Amazon Resource Name (ARN) of the policy to describe. + * The Amazon Resource Name (ARN) of the custom model version + * that has the resource policy. *
* @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/DescribeResourcePolicyResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeResourcePolicyResult.java index fc0161943b6..8463e5ff829 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeResourcePolicyResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeResourcePolicyResult.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/DescribeSentimentDetectionJobRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeSentimentDetectionJobRequest.java index c621971325d..ad5f32c162a 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeSentimentDetectionJobRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeSentimentDetectionJobRequest.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/DescribeSentimentDetectionJobResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeSentimentDetectionJobResult.java index d4463828513..4a73fec7517 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeSentimentDetectionJobResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeSentimentDetectionJobResult.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/DescribeTargetedSentimentDetectionJobRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeTargetedSentimentDetectionJobRequest.java index 71c96dbf0ab..7b30ca634ce 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeTargetedSentimentDetectionJobRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DescribeTargetedSentimentDetectionJobRequest.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. @@ -30,7 +30,8 @@ public class DescribeTargetedSentimentDetectionJobRequest extends AmazonWebServi /** *
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartTargetedSentimentDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -42,7 +43,8 @@ public class DescribeTargetedSentimentDetectionJobRequest extends AmazonWebServi
/**
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartTargetedSentimentDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -51,7 +53,8 @@ public class DescribeTargetedSentimentDetectionJobRequest extends AmazonWebServi
*
* @return
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartTargetedSentimentDetectionJob
operation returns
+ * this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartTargetedSentimentDetectionJob
operation returns this
+ * identifier in its response.
*
* Constraints:
@@ -70,7 +74,8 @@ public String getJobId() {
*
* @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartTargetedSentimentDetectionJob
operation
+ * returns this identifier in its response.
*
* The identifier that Amazon Comprehend generated for the job. The
- * operation returns this identifier in its response.
+ * StartTargetedSentimentDetectionJob
operation returns this
+ * identifier in its response.
*
* Returns a reference to this object so that method calls can be chained @@ -92,7 +98,8 @@ public void setJobId(String jobId) { * * @param jobId
* The identifier that Amazon Comprehend generated for the job.
- * The operation returns this identifier in its response.
+ * The StartTargetedSentimentDetectionJob
operation
+ * returns this identifier in its response.
*
- * The languages that Amazon Comprehend detected in the input text. For each - * language, the response returns the RFC 5646 language code and the level - * of confidence that Amazon Comprehend has in the accuracy of its + * Array of languages that Amazon Comprehend detected in the input text. The + * array is sorted in descending order of the score (the dominant language + * is always the first element in the array). + *
+ *+ * For each language, the response returns the RFC 5646 language code and + * the level of confidence that Amazon Comprehend has in the accuracy of its * inference. For more information about RFC 5646, see Tags for Identifying * Languages on the IETF Tools web site. @@ -32,16 +36,24 @@ public class DetectDominantLanguageResult implements Serializable { /** *
- * The languages that Amazon Comprehend detected in the input text. For each - * language, the response returns the RFC 5646 language code and the level - * of confidence that Amazon Comprehend has in the accuracy of its + * Array of languages that Amazon Comprehend detected in the input text. The + * array is sorted in descending order of the score (the dominant language + * is always the first element in the array). + *
+ *+ * For each language, the response returns the RFC 5646 language code and + * the level of confidence that Amazon Comprehend has in the accuracy of its * inference. For more information about RFC 5646, see Tags for Identifying * Languages on the IETF Tools web site. *
* * @return- * The languages that Amazon Comprehend detected in the input text. + * Array of languages that Amazon Comprehend detected in the input + * text. The array is sorted in descending order of the score (the + * dominant language is always the first element in the array). + *
+ *
* For each language, the response returns the RFC 5646 language
* code and the level of confidence that Amazon Comprehend has in
* the accuracy of its inference. For more information about RFC
@@ -55,22 +67,31 @@ public java.util.List
- * The languages that Amazon Comprehend detected in the input text. For each
- * language, the response returns the RFC 5646 language code and the level
- * of confidence that Amazon Comprehend has in the accuracy of its
+ * Array of languages that Amazon Comprehend detected in the input text. The
+ * array is sorted in descending order of the score (the dominant language
+ * is always the first element in the array).
+ *
+ * For each language, the response returns the RFC 5646 language code and
+ * the level of confidence that Amazon Comprehend has in the accuracy of its
* inference. For more information about RFC 5646, see Tags for Identifying
* Languages on the IETF Tools web site.
*
- * The languages that Amazon Comprehend detected in the input
- * text. For each language, the response returns the RFC 5646
- * language code and the level of confidence that Amazon
- * Comprehend has in the accuracy of its inference. For more
- * information about RFC 5646, see Tags for
- * Identifying Languages on the IETF Tools web site.
+ * Array of languages that Amazon Comprehend detected in the
+ * input text. The array is sorted in descending order of the
+ * score (the dominant language is always the first element in
+ * the array).
+ *
+ * For each language, the response returns the RFC 5646 language
+ * code and the level of confidence that Amazon Comprehend has in
+ * the accuracy of its inference. For more information about RFC
+ * 5646, see Tags
+ * for Identifying Languages on the IETF Tools web
+ * site.
*
- * The languages that Amazon Comprehend detected in the input text. For each
- * language, the response returns the RFC 5646 language code and the level
- * of confidence that Amazon Comprehend has in the accuracy of its
+ * Array of languages that Amazon Comprehend detected in the input text. The
+ * array is sorted in descending order of the score (the dominant language
+ * is always the first element in the array).
+ *
+ * For each language, the response returns the RFC 5646 language code and
+ * the level of confidence that Amazon Comprehend has in the accuracy of its
* inference. For more information about RFC 5646, see Tags for Identifying
* Languages on the IETF Tools web site.
@@ -96,13 +121,18 @@ public void setLanguages(java.util.Collection
- * The languages that Amazon Comprehend detected in the input
- * text. For each language, the response returns the RFC 5646
- * language code and the level of confidence that Amazon
- * Comprehend has in the accuracy of its inference. For more
- * information about RFC 5646, see Tags for
- * Identifying Languages on the IETF Tools web site.
+ * Array of languages that Amazon Comprehend detected in the
+ * input text. The array is sorted in descending order of the
+ * score (the dominant language is always the first element in
+ * the array).
+ *
+ * For each language, the response returns the RFC 5646 language
+ * code and the level of confidence that Amazon Comprehend has in
+ * the accuracy of its inference. For more information about RFC
+ * 5646, see Tags
+ * for Identifying Languages on the IETF Tools web
+ * site.
*
- * The languages that Amazon Comprehend detected in the input text. For each
- * language, the response returns the RFC 5646 language code and the level
- * of confidence that Amazon Comprehend has in the accuracy of its
+ * Array of languages that Amazon Comprehend detected in the input text. The
+ * array is sorted in descending order of the score (the dominant language
+ * is always the first element in the array).
+ *
+ * For each language, the response returns the RFC 5646 language code and
+ * the level of confidence that Amazon Comprehend has in the accuracy of its
* inference. For more information about RFC 5646, see Tags for Identifying
* Languages on the IETF Tools web site.
@@ -131,13 +165,18 @@ public DetectDominantLanguageResult withLanguages(DominantLanguage... languages)
* together.
*
* @param languages
- * The languages that Amazon Comprehend detected in the input
- * text. For each language, the response returns the RFC 5646
- * language code and the level of confidence that Amazon
- * Comprehend has in the accuracy of its inference. For more
- * information about RFC 5646, see Tags for
- * Identifying Languages on the IETF Tools web site.
+ * Array of languages that Amazon Comprehend detected in the
+ * input text. The array is sorted in descending order of the
+ * score (the dominant language is always the first element in
+ * the array).
+ *
+ * For each language, the response returns the RFC 5646 language
+ * code and the level of confidence that Amazon Comprehend has in
+ * the accuracy of its inference. For more information about RFC
+ * 5646, see Tags
+ * for Identifying Languages on the IETF Tools web
+ * site.
*
- * 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
+ * If the system detects a document-level error in your input document, the API
+ * returns an
- * A UTF-8 text string. The maximum string size is 100 KB.
+ * A UTF-8 text string. The maximum string size is 100 KB. If you enter text
+ * using this parameter, do not use the
* Constraints:
* The language of the input documents. You can specify any of the primary
- * languages supported by Amazon Comprehend. All documents must be in the
- * same language.
+ * languages supported by Amazon Comprehend. If your request includes the
+ * endpoint for a custom entity recognition model, Amazon Comprehend uses
+ * the language of your custom model, and it ignores any language code that
+ * you specify here.
*
- * If your request includes the endpoint for a custom entity recognition
- * model, Amazon Comprehend uses the language of your custom model, and it
- * ignores any language code that you specify here.
+ * All input documents must be in the same language.
*
* Constraints:
- * A UTF-8 text string. The maximum string size is 100 KB.
+ * This field applies only when you use a custom entity recognition model
+ * that was trained with PDF annotations. For other cases, enter your text
+ * input in the
+ * Use the
+ * You can also use the
+ * Provide the input document as a sequence of base64-encoded bytes. If your
+ * code uses an Amazon Web Services SDK to detect entities, 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
+ * Constraints:
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * A UTF-8 text string. The maximum string size is 100 KB. If you enter text
+ * using this parameter, do not use the
* Constraints:
- * A UTF-8 text string. The maximum string size is 100 KB.
+ * A UTF-8 text string. The maximum string size is 100 KB. If you
+ * enter text using this parameter, do not use the
+ *
- * A UTF-8 text string. The maximum string size is 100 KB.
+ * A UTF-8 text string. The maximum string size is 100 KB. If you enter text
+ * using this parameter, do not use the
* Constraints:
- * A UTF-8 text string. The maximum string size is 100 KB.
+ * A UTF-8 text string. The maximum string size is 100 KB. If you
+ * enter text using this parameter, do not use the
+ *
- * A UTF-8 text string. The maximum string size is 100 KB.
+ * A UTF-8 text string. The maximum string size is 100 KB. If you enter text
+ * using this parameter, do not use the
* Returns a reference to this object so that method calls can be chained
@@ -125,7 +199,9 @@ public void setText(String text) {
* Length: 1 -
- * A UTF-8 text string. The maximum string size is 100 KB.
+ * A UTF-8 text string. The maximum string size is 100 KB. If you
+ * enter text using this parameter, do not use the
+ *
* The language of the input documents. You can specify any of the primary
- * languages supported by Amazon Comprehend. All documents must be in the
- * same language.
+ * languages supported by Amazon Comprehend. If your request includes the
+ * endpoint for a custom entity recognition model, Amazon Comprehend uses
+ * the language of your custom model, and it ignores any language code that
+ * you specify here.
*
- * If your request includes the endpoint for a custom entity recognition
- * model, Amazon Comprehend uses the language of your custom model, and it
- * ignores any language code that you specify here.
+ * All input documents must be in the same language.
*
* Constraints:
* The language of the input documents. You can specify any of the
- * primary languages supported by Amazon Comprehend. All documents
- * must be in the same language.
+ * primary languages supported by Amazon Comprehend. If your request
+ * includes the endpoint for a custom entity recognition model,
+ * Amazon Comprehend uses the language of your custom model, and it
+ * ignores any language code that you specify here.
*
- * If your request includes the endpoint for a custom entity
- * recognition model, Amazon Comprehend uses the language of your
- * custom model, and it ignores any language code that you specify
- * here.
+ * All input documents must be in the same language.
*
* The language of the input documents. You can specify any of the primary
- * languages supported by Amazon Comprehend. All documents must be in the
- * same language.
+ * languages supported by Amazon Comprehend. If your request includes the
+ * endpoint for a custom entity recognition model, Amazon Comprehend uses
+ * the language of your custom model, and it ignores any language code that
+ * you specify here.
*
- * If your request includes the endpoint for a custom entity recognition
- * model, Amazon Comprehend uses the language of your custom model, and it
- * ignores any language code that you specify here.
+ * All input documents must be in the same language.
*
* Constraints:
* The language of the input documents. You can specify any of
- * the primary languages supported by Amazon Comprehend. All
- * documents must be in the same language.
+ * the primary languages supported by Amazon Comprehend. If your
+ * request includes the endpoint for a custom entity recognition
+ * model, Amazon Comprehend uses the language of your custom
+ * model, and it ignores any language code that you specify here.
*
- * If your request includes the endpoint for a custom entity
- * recognition model, Amazon Comprehend uses the language of your
- * custom model, and it ignores any language code that you
- * specify here.
+ * All input documents must be in the same language.
*
* The language of the input documents. You can specify any of the primary
- * languages supported by Amazon Comprehend. All documents must be in the
- * same language.
+ * languages supported by Amazon Comprehend. If your request includes the
+ * endpoint for a custom entity recognition model, Amazon Comprehend uses
+ * the language of your custom model, and it ignores any language code that
+ * you specify here.
*
- * If your request includes the endpoint for a custom entity recognition
- * model, Amazon Comprehend uses the language of your custom model, and it
- * ignores any language code that you specify here.
+ * All input documents must be in the same language.
*
* Returns a reference to this object so that method calls can be chained
@@ -219,14 +293,13 @@ public void setLanguageCode(String languageCode) {
*
* @param languageCode
* The language of the input documents. You can specify any of
- * the primary languages supported by Amazon Comprehend. All
- * documents must be in the same language.
+ * the primary languages supported by Amazon Comprehend. If your
+ * request includes the endpoint for a custom entity recognition
+ * model, Amazon Comprehend uses the language of your custom
+ * model, and it ignores any language code that you specify here.
*
- * If your request includes the endpoint for a custom entity
- * recognition model, Amazon Comprehend uses the language of your
- * custom model, and it ignores any language code that you
- * specify here.
+ * All input documents must be in the same language.
*
* The language of the input documents. You can specify any of the primary
- * languages supported by Amazon Comprehend. All documents must be in the
- * same language.
+ * languages supported by Amazon Comprehend. If your request includes the
+ * endpoint for a custom entity recognition model, Amazon Comprehend uses
+ * the language of your custom model, and it ignores any language code that
+ * you specify here.
*
- * If your request includes the endpoint for a custom entity recognition
- * model, Amazon Comprehend uses the language of your custom model, and it
- * ignores any language code that you specify here.
+ * All input documents must be in the same language.
*
* Constraints:
* The language of the input documents. You can specify any of
- * the primary languages supported by Amazon Comprehend. All
- * documents must be in the same language.
+ * the primary languages supported by Amazon Comprehend. If your
+ * request includes the endpoint for a custom entity recognition
+ * model, Amazon Comprehend uses the language of your custom
+ * model, and it ignores any language code that you specify here.
*
- * If your request includes the endpoint for a custom entity
- * recognition model, Amazon Comprehend uses the language of your
- * custom model, and it ignores any language code that you
- * specify here.
+ * All input documents must be in the same language.
*
* The language of the input documents. You can specify any of the primary
- * languages supported by Amazon Comprehend. All documents must be in the
- * same language.
+ * languages supported by Amazon Comprehend. If your request includes the
+ * endpoint for a custom entity recognition model, Amazon Comprehend uses
+ * the language of your custom model, and it ignores any language code that
+ * you specify here.
*
- * If your request includes the endpoint for a custom entity recognition
- * model, Amazon Comprehend uses the language of your custom model, and it
- * ignores any language code that you specify here.
+ * All input documents must be in the same language.
*
* Returns a reference to this object so that method calls can be chained
@@ -289,14 +361,13 @@ public void setLanguageCode(LanguageCode languageCode) {
*
* @param languageCode
* The language of the input documents. You can specify any of
- * the primary languages supported by Amazon Comprehend. All
- * documents must be in the same language.
+ * the primary languages supported by Amazon Comprehend. If your
+ * request includes the endpoint for a custom entity recognition
+ * model, Amazon Comprehend uses the language of your custom
+ * model, and it ignores any language code that you specify here.
*
- * If your request includes the endpoint for a custom entity
- * recognition model, Amazon Comprehend uses the language of your
- * custom model, and it ignores any language code that you
- * specify here.
+ * All input documents must be in the same language.
*
+ * This field applies only when you use a custom entity recognition model
+ * that was trained with PDF annotations. For other cases, enter your text
+ * input in the
+ * Use the
+ * You can also use the
+ * Provide the input document as a sequence of base64-encoded bytes. If your
+ * code uses an Amazon Web Services SDK to detect entities, 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
+ * Constraints:
+ * This field applies only when you use a custom entity recognition
+ * model that was trained with PDF annotations. For other cases,
+ * enter your text input in the
+ * Use the
+ * You can also use the
+ * Provide the input document as a sequence of base64-encoded bytes.
+ * If your code uses an Amazon Web Services SDK to detect entities,
+ * 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
+ * This field applies only when you use a custom entity recognition model
+ * that was trained with PDF annotations. For other cases, enter your text
+ * input in the
+ * Use the
+ * You can also use the
+ * Provide the input document as a sequence of base64-encoded bytes. If your
+ * code uses an Amazon Web Services SDK to detect entities, 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
+ * Constraints:
+ * This field applies only when you use a custom entity
+ * recognition model that was trained with PDF annotations. For
+ * other cases, enter your text input in the
+ * Use the
+ * You can also use the
+ * Provide the input document as a sequence of base64-encoded
+ * bytes. If your code uses an Amazon Web Services SDK to detect
+ * entities, 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
+ * This field applies only when you use a custom entity recognition model
+ * that was trained with PDF annotations. For other cases, enter your text
+ * input in the
+ * Use the
+ * You can also use the
+ * Provide the input document as a sequence of base64-encoded bytes. If your
+ * code uses an Amazon Web Services SDK to detect entities, 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
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * This field applies only when you use a custom entity
+ * recognition model that was trained with PDF annotations. For
+ * other cases, enter your text input in the
+ * Use the
+ * You can also use the
+ * Provide the input document as a sequence of base64-encoded
+ * bytes. If your code uses an Amazon Web Services SDK to detect
+ * entities, 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
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * Provides configuration parameters to override the default actions
+ * for extracting text from PDF documents and image files.
+ *
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * Provides configuration parameters to override the default
+ * actions for extracting text from PDF documents and image
+ * files.
+ *
+ * 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.
+ *
+ * Information about the document, discovered during text extraction. This
+ * field is present in the response only if your request used the
+ *
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request used the
+ * Information about each block of text in the input document. Blocks are
+ * nested. A page block contains a block for each line of text, which
+ * contains a block for each word.
+ *
+ * The
+ * The
+ * Page-level errors that the system detected while processing the input
+ * document. The field is empty if the system encountered no errors.
+ *
* A collection of entities identified in the input text. For each entity,
@@ -198,6 +241,394 @@ public DetectEntitiesResult withEntities(java.util.Collection
+ * Information about the document, discovered during text extraction. This
+ * field is present in the response only if your request used the
+ *
+ * Information about the document, discovered during text
+ * extraction. This field is present in the response only if your
+ * request used the
+ * Information about the document, discovered during text extraction. This
+ * field is present in the response only if your request used the
+ *
+ * Information about the document, discovered during text
+ * extraction. This field is present in the response only if your
+ * request used the
+ * Information about the document, discovered during text extraction. This
+ * field is present in the response only if your request used the
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param documentMetadata
+ * Information about the document, discovered during text
+ * extraction. This field is present in the response only if your
+ * request used the
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request used the
+ * The document type for each page in the input document. This field
+ * is present in the response only if your request used the
+ *
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request used the
+ * The document type for each page in the input document. This
+ * field is present in the response only if your request used the
+ *
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request used the
+ * 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 used the
+ *
+ * The document type for each page in the input document. This field is
+ * present in the response only if your request used the
+ * 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 used the
+ *
+ * Information about each block of text in the input document. Blocks are
+ * nested. A page block contains a block for each line of text, which
+ * contains a block for each word.
+ *
+ * The
+ * The
+ * Information about each block of text in the input document.
+ * Blocks are nested. A page block contains a block for each line of
+ * text, which contains a block for each word.
+ *
+ * The
+ * The
+ * Information about each block of text in the input document. Blocks are
+ * nested. A page block contains a block for each line of text, which
+ * contains a block for each word.
+ *
+ * The
+ * The
+ * Information about each block of text in the input document.
+ * Blocks are nested. A page block contains a block for each line
+ * of text, which contains a block for each word.
+ *
+ * The
+ * The
+ * Information about each block of text in the input document. Blocks are
+ * nested. A page block contains a block for each line of text, which
+ * contains a block for each word.
+ *
+ * The
+ * The
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param blocks
+ * Information about each block of text in the input document.
+ * Blocks are nested. A page block contains a block for each line
+ * of text, which contains a block for each word.
+ *
+ * The
+ * The
+ * Information about each block of text in the input document. Blocks are
+ * nested. A page block contains a block for each line of text, which
+ * contains a block for each word.
+ *
+ * The
+ * The
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param blocks
+ * Information about each block of text in the input document.
+ * Blocks are nested. A page block contains a block for each line
+ * of text, which contains a block for each word.
+ *
+ * The
+ * The
+ * Page-level errors that the system detected while processing the input
+ * document. The field is empty if the system encountered no errors.
+ *
+ * Page-level errors that the system detected while processing the
+ * input document. The field is empty if the system encountered no
+ * errors.
+ *
+ * Page-level errors that the system detected while processing the input
+ * document. The field is empty if the system encountered no errors.
+ *
+ * Page-level errors that the system detected while processing
+ * the input document. The field is empty if the system
+ * encountered no 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.
+ *
+ * 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.
+ *
* A UTF-8 text string. The maximum string size 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.
- *
* Constraints:
* A UTF-8 text string. The maximum string size 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.
- *
* Constraints:
* A UTF-8 text string. The maximum string size 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.
- *
* A UTF-8 text string. The maximum string size 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.
- *
* Constraints:
* A UTF-8 text string. The maximum string size 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.
- *
* A UTF-8 text string. The maximum string size 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.
@@ -137,13 +95,6 @@ public void setText(String text) {
* @param text
* A UTF-8 text string. The maximum string size 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.
- *
+ * Page number in the input document. This field is present in the response
+ * only if your request includes the
* The name of the class.
@@ -146,6 +154,60 @@ public DocumentClass withScore(Float score) {
return this;
}
+ /**
+ *
+ * Page number in the input document. This field is present in the response
+ * only if your request includes the
+ * Page number in the input document. This field is present in the
+ * response only if your request includes the
+ * Page number in the input document. This field is present in the response
+ * only if your request includes the
+ * Page number in the input document. This field is present in
+ * the response only if your request includes the
+ *
+ * Page number in the input document. This field is present in the response
+ * only if your request includes the
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param page
+ * Page number in the input document. This field is present in
+ * the response only if your request includes the
+ *
+ * Configuration required for a custom classification model.
+ *
+ * Classification mode indicates whether the documents are
+ *
+ * Constraints:
+ * One or more labels to associate with the custom classifier.
+ *
+ * Classification mode indicates whether the documents are
+ *
+ * Constraints:
+ * Classification mode indicates whether the documents are
+ *
+ * Classification mode indicates whether the documents are
+ *
+ * Constraints:
+ * Classification mode indicates whether the documents are
+ *
+ * Classification mode indicates whether the documents are
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Classification mode indicates whether the documents are
+ *
+ * Classification mode indicates whether the documents are
+ *
+ * Constraints:
+ * Classification mode indicates whether the documents are
+ *
+ * Classification mode indicates whether the documents are
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Classification mode indicates whether the documents are
+ *
+ * One or more labels to associate with the custom classifier.
+ *
+ * One or more labels to associate with the custom classifier.
+ *
+ * One or more labels to associate with the custom classifier.
+ *
+ * One or more labels to associate with the custom classifier.
+ *
+ * One or more labels to associate with the custom classifier.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param labels
+ * One or more labels to associate with the custom classifier.
+ *
+ * One or more labels to associate with the custom classifier.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param labels
+ * One or more labels to associate with the custom classifier.
+ *
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access 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:
- * 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:
*
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
* The identifier assigned to the document classification job.
@@ -245,8 +260,9 @@ public DocumentClassificationJobProperties withJobId(String jobId) {
/**
*
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification
* job. It is a unique, fully qualified identifier for the job. It
- * includes the AWS account, Region, and the job ID. The format of
- * the ARN is as follows:
+ * includes the Amazon Web Services account, Amazon Web Services
+ * Region, and the job ID. The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification
* job. It is a unique, fully qualified identifier for the job.
- * It includes the AWS account, Region, and the job ID. The
- * format of the ARN is as follows:
+ * It includes the Amazon Web Services account, Amazon Web
+ * Services Region, and the job ID. The format of the ARN is as
+ * follows:
*
*
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification
* job. It is a unique, fully qualified identifier for the job.
- * It includes the AWS account, Region, and the job ID. The
- * format of the ARN is as follows:
+ * It includes the Amazon Web Services account, Amazon Web
+ * Services Region, and the job ID. The format of the ARN is as
+ * follows:
*
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access 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:
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * 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.
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access 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:
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * 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.
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access 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.
*
* Returns a reference to this object so that method calls can be chained
@@ -924,9 +945,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to your input data.
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to your input data.
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * The location of the training documents. This parameter is required in a
+ * request to create a native classifier model.
+ *
+ * The S3 URI location of the training documents specified in the S3Uri CSV
+ * file.
+ *
+ * Constraints:
+ * The S3 URI location of the test documents included in the TestS3Uri CSV
+ * file. This field is not required if you do not specify a test CSV file.
+ *
+ * Constraints:
+ * The S3 URI location of the training documents specified in the S3Uri CSV
+ * file.
+ *
+ * Constraints:
+ * The S3 URI location of the training documents specified in the
+ * S3Uri CSV file.
+ *
+ * The S3 URI location of the training documents specified in the S3Uri CSV
+ * file.
+ *
+ * Constraints:
+ * The S3 URI location of the training documents specified in the
+ * S3Uri CSV file.
+ *
+ * The S3 URI location of the training documents specified in the S3Uri CSV
+ * file.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The S3 URI location of the training documents specified in the
+ * S3Uri CSV file.
+ *
+ * The S3 URI location of the test documents included in the TestS3Uri CSV
+ * file. This field is not required if you do not specify a test CSV file.
+ *
+ * Constraints:
+ * The S3 URI location of the test documents included in the
+ * TestS3Uri CSV file. This field is not required if you do not
+ * specify a test CSV file.
+ *
+ * The S3 URI location of the test documents included in the TestS3Uri CSV
+ * file. This field is not required if you do not specify a test CSV file.
+ *
+ * Constraints:
+ * The S3 URI location of the test documents included in the
+ * TestS3Uri CSV file. This field is not required if you do not
+ * specify a test CSV file.
+ *
+ * The S3 URI location of the test documents included in the TestS3Uri CSV
+ * file. This field is not required if you do not specify a test CSV file.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The S3 URI location of the test documents included in the
+ * TestS3Uri CSV file. This field is not required if you do not
+ * specify a test CSV file.
+ *
* Provides information for filtering a list of document classifiers. You can
* only specify one filtering parameter in a request. For more information, see
- * the operation.
+ * the
* Constraints:
* Constraints:
* Filters the list of classifiers based on status.
@@ -92,7 +92,7 @@ public String getStatus() {
*
* Constraints:
* Filters the list of classifiers based on status.
@@ -113,7 +113,7 @@ public void setStatus(String status) {
*
* Constraints:
* Filters the list of classifiers based on status.
@@ -134,7 +134,7 @@ public DocumentClassifierFilter withStatus(String status) {
*
* Constraints:
* Filters the list of classifiers based on status.
@@ -155,7 +155,7 @@ public void setStatus(ModelStatus status) {
*
* Constraints:
* Filters the list of classifiers based on status.
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentClassifierInputDataConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentClassifierInputDataConfig.java
index 3a723a3e7d1..924df0ba05d 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentClassifierInputDataConfig.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentClassifierInputDataConfig.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.
@@ -67,7 +67,7 @@ public class DocumentClassifierInputDataConfig implements Serializable {
/**
*
* The Amazon S3 URI for the input data. The S3 bucket must be in the same
- * region as the API endpoint that you are calling. The URI can point to a
+ * Region as the API endpoint that you are calling. The URI can point to a
* single input file or it can provide the prefix for a collection of input
* files.
*
* This specifies the Amazon S3 location where the test annotations for an
- * entity recognizer are located. The URI must be in the same AWS Region as
- * the API endpoint that you are calling.
+ * entity recognizer are located. The URI must be in the same Amazon Web
+ * Services Region as the API endpoint that you are calling.
*
* Constraints:
+ * The type of input documents for training the model. Provide plain-text
+ * documents to create a plain-text model, and provide semi-structured
+ * documents to create a native model.
+ *
+ * Constraints:
+ * The S3 location of the training documents. This parameter is required in
+ * a request to create a native classifier model.
+ *
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * By default, Amazon Comprehend performs the following actions to extract
+ * text from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts the text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend uses the
+ * Amazon Textract
+ *
+ * For image files and PDF documents, you can override these default actions
+ * using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.
+ *
* The format of your training data:
@@ -491,7 +551,7 @@ public DocumentClassifierInputDataConfig withDataFormat(DocumentClassifierDataFo
/**
*
* The Amazon S3 URI for the input data. The S3 bucket must be in the same
- * region as the API endpoint that you are calling. The URI can point to a
+ * Region as the API endpoint that you are calling. The URI can point to a
* single input file or it can provide the prefix for a collection of input
* files.
*
* The Amazon S3 URI for the input data. The S3 bucket must be in
- * the same region as the API endpoint that you are calling. The URI
+ * the same Region as the API endpoint that you are calling. The URI
* can point to a single input file or it can provide the prefix for
* a collection of input files.
*
* The Amazon S3 URI for the input data. The S3 bucket must be in the same
- * region as the API endpoint that you are calling. The URI can point to a
+ * Region as the API endpoint that you are calling. The URI can point to a
* single input file or it can provide the prefix for a collection of input
* files.
*
* The Amazon S3 URI for the input data. The S3 bucket must be in
- * the same region as the API endpoint that you are calling. The
+ * the same Region as the API endpoint that you are calling. The
* URI can point to a single input file or it can provide the
* prefix for a collection of input files.
*
* The Amazon S3 URI for the input data. The S3 bucket must be in the same
- * region as the API endpoint that you are calling. The URI can point to a
+ * Region as the API endpoint that you are calling. The URI can point to a
* single input file or it can provide the prefix for a collection of input
* files.
*
* The Amazon S3 URI for the input data. The S3 bucket must be in
- * the same region as the API endpoint that you are calling. The
+ * the same Region as the API endpoint that you are calling. The
* URI can point to a single input file or it can provide the
* prefix for a collection of input files.
*
* This specifies the Amazon S3 location where the test annotations for an
- * entity recognizer are located. The URI must be in the same AWS Region as
- * the API endpoint that you are calling.
+ * entity recognizer are located. The URI must be in the same Amazon Web
+ * Services Region as the API endpoint that you are calling.
*
* Constraints:
* This specifies the Amazon S3 location where the test annotations
* for an entity recognizer are located. The URI must be in the same
- * AWS Region as the API endpoint that you are calling.
+ * Amazon Web Services Region as the API endpoint that you are
+ * calling.
*
* This specifies the Amazon S3 location where the test annotations for an
- * entity recognizer are located. The URI must be in the same AWS Region as
- * the API endpoint that you are calling.
+ * entity recognizer are located. The URI must be in the same Amazon Web
+ * Services Region as the API endpoint that you are calling.
*
* Constraints:
* This specifies the Amazon S3 location where the test
* annotations for an entity recognizer are located. The URI must
- * be in the same AWS Region as the API endpoint that you are
- * calling.
+ * be in the same Amazon Web Services Region as the API endpoint
+ * that you are calling.
*
* This specifies the Amazon S3 location where the test annotations for an
- * entity recognizer are located. The URI must be in the same AWS Region as
- * the API endpoint that you are calling.
+ * entity recognizer are located. The URI must be in the same Amazon Web
+ * Services Region as the API endpoint that you are calling.
*
* Returns a reference to this object so that method calls can be chained
@@ -686,8 +747,8 @@ public void setTestS3Uri(String testS3Uri) {
* @param testS3Uri
* This specifies the Amazon S3 location where the test
* annotations for an entity recognizer are located. The URI must
- * be in the same AWS Region as the API endpoint that you are
- * calling.
+ * be in the same Amazon Web Services Region as the API endpoint
+ * that you are calling.
*
+ * The type of input documents for training the model. Provide plain-text
+ * documents to create a plain-text model, and provide semi-structured
+ * documents to create a native model.
+ *
+ * Constraints:
+ * The type of input documents for training the model. Provide
+ * plain-text documents to create a plain-text model, and provide
+ * semi-structured documents to create a native model.
+ *
+ * The type of input documents for training the model. Provide plain-text
+ * documents to create a plain-text model, and provide semi-structured
+ * documents to create a native model.
+ *
+ * Constraints:
+ * The type of input documents for training the model. Provide
+ * plain-text documents to create a plain-text model, and provide
+ * semi-structured documents to create a native model.
+ *
+ * The type of input documents for training the model. Provide plain-text
+ * documents to create a plain-text model, and provide semi-structured
+ * documents to create a native model.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The type of input documents for training the model. Provide
+ * plain-text documents to create a plain-text model, and provide
+ * semi-structured documents to create a native model.
+ *
+ * The type of input documents for training the model. Provide plain-text
+ * documents to create a plain-text model, and provide semi-structured
+ * documents to create a native model.
+ *
+ * Constraints:
+ * The type of input documents for training the model. Provide
+ * plain-text documents to create a plain-text model, and provide
+ * semi-structured documents to create a native model.
+ *
+ * The type of input documents for training the model. Provide plain-text
+ * documents to create a plain-text model, and provide semi-structured
+ * documents to create a native model.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The type of input documents for training the model. Provide
+ * plain-text documents to create a plain-text model, and provide
+ * semi-structured documents to create a native model.
+ *
+ * The S3 location of the training documents. This parameter is required in
+ * a request to create a native classifier model.
+ *
+ * The S3 location of the training documents. This parameter is
+ * required in a request to create a native classifier model.
+ *
+ * The S3 location of the training documents. This parameter is required in
+ * a request to create a native classifier model.
+ *
+ * The S3 location of the training documents. This parameter is
+ * required in a request to create a native classifier model.
+ *
+ * The S3 location of the training documents. This parameter is required in
+ * a request to create a native classifier model.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param documents
+ * The S3 location of the training documents. This parameter is
+ * required in a request to create a native classifier model.
+ *
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * By default, Amazon Comprehend performs the following actions to extract
+ * text from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts the text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend uses the
+ * Amazon Textract
+ *
+ * For image files and PDF documents, you can override these default actions
+ * using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.
+ *
+ * Provides configuration parameters to override the default actions
+ * for extracting text from PDF documents and image files.
+ *
+ * By default, Amazon Comprehend performs the following actions to
+ * extract text from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts the
+ * text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend uses
+ * the Amazon Textract
+ *
+ * For image files and PDF documents, you can override these default
+ * actions using the fields listed below. For more information, see
+ * Setting text extraction options in the Comprehend Developer
+ * Guide.
+ *
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * By default, Amazon Comprehend performs the following actions to extract
+ * text from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts the text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend uses the
+ * Amazon Textract
+ *
+ * For image files and PDF documents, you can override these default actions
+ * using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.
+ *
+ * Provides configuration parameters to override the default
+ * actions for extracting text from PDF documents and image
+ * files.
+ *
+ * By default, Amazon Comprehend performs the following actions
+ * to extract text from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the
+ * text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts
+ * the text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend
+ * uses the Amazon Textract
+ *
+ * For image files and PDF documents, you can override these
+ * default actions using the fields listed below. For more
+ * information, see Setting text extraction options in the Comprehend
+ * Developer Guide.
+ *
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * By default, Amazon Comprehend performs the following actions to extract
+ * text from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts the text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend uses the
+ * Amazon Textract
+ *
+ * For image files and PDF documents, you can override these default actions
+ * using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.
+ *
+ * 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.
+ *
+ * By default, Amazon Comprehend performs the following actions
+ * to extract text from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the
+ * text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts
+ * the text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend
+ * uses the Amazon Textract
+ *
+ * For image files and PDF documents, you can override these
+ * default actions using the fields listed below. For more
+ * information, see Setting text extraction options in the Comprehend
+ * Developer Guide.
+ *
- * Provides output results configuration parameters for custom classifier jobs.
+ * Provide the location for output data from a custom classifier job. This field
+ * is mandatory if you are training a native classifier model.
*
* When you use the
* When the custom classifier job is finished, the service creates the
@@ -47,9 +48,9 @@ public class DocumentClassifierOutputDataConfig implements Serializable {
/**
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt the output results from an analysis job. The KmsKeyId can
- * be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS) key that
+ * Amazon Comprehend uses to encrypt the output results from an analysis
+ * job. The KmsKeyId can be one of the following formats:
*
+ * The Amazon S3 prefix for the data lake location of the flywheel
+ * statistics.
+ *
+ * Constraints:
* When you use the
* When the custom classifier job is finished, the service creates the
@@ -105,10 +118,10 @@ public class DocumentClassifierOutputDataConfig implements Serializable {
* @return
* When you use the
* When the custom classifier job is finished, the service creates
@@ -126,9 +139,9 @@ public String getS3Uri() {
*
* When you use the
* When the custom classifier job is finished, the service creates the
@@ -145,10 +158,10 @@ public String getS3Uri() {
* @param s3Uri
* When you use the
* When the custom classifier job is finished, the service
@@ -166,9 +179,9 @@ public void setS3Uri(String s3Uri) {
*
* When you use the
* When the custom classifier job is finished, the service creates the
@@ -188,10 +201,10 @@ public void setS3Uri(String s3Uri) {
* @param s3Uri
* When you use the
* When the custom classifier job is finished, the service
@@ -210,9 +223,9 @@ public DocumentClassifierOutputDataConfig withS3Uri(String s3Uri) {
/**
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt the output results from an analysis job. The KmsKeyId can
- * be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS) key that
+ * Amazon Comprehend uses to encrypt the output results from an analysis
+ * job. The KmsKeyId can be one of the following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon
- * Comprehend uses to encrypt the output results from an analysis
- * job. The KmsKeyId can be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS) key
+ * that Amazon Comprehend uses to encrypt the output results from an
+ * analysis job. The KmsKeyId can be one of the following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt the output results from an analysis job. The KmsKeyId can
- * be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS) key that
+ * Amazon Comprehend uses to encrypt the output results from an analysis
+ * job. The KmsKeyId can be one of the following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon
- * Comprehend uses to encrypt the output results from an analysis
- * job. The KmsKeyId can be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS)
+ * key that Amazon Comprehend uses to encrypt the output results
+ * from an analysis job. The KmsKeyId can be one of the following
+ * formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt the output results from an analysis job. The KmsKeyId can
- * be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS) key that
+ * Amazon Comprehend uses to encrypt the output results from an analysis
+ * job. The KmsKeyId can be one of the following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon
- * Comprehend uses to encrypt the output results from an analysis
- * job. The KmsKeyId can be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS)
+ * key that Amazon Comprehend uses to encrypt the output results
+ * from an analysis job. The KmsKeyId can be one of the following
+ * formats:
*
+ * The Amazon S3 prefix for the data lake location of the flywheel
+ * statistics.
+ *
+ * Constraints:
+ * The Amazon S3 prefix for the data lake location of the flywheel
+ * statistics.
+ *
+ * The Amazon S3 prefix for the data lake location of the flywheel
+ * statistics.
+ *
+ * Constraints:
+ * The Amazon S3 prefix for the data lake location of the
+ * flywheel statistics.
+ *
+ * The Amazon S3 prefix for the data lake location of the flywheel
+ * statistics.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon S3 prefix for the data lake location of the
+ * flywheel statistics.
+ *
* The status of the document classifier. If the status is
*
+ * If the status is
* Constraints:
- * 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:
- * 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:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt trained custom models. The ModelKmsKeyId can be either of
- * the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom
+ * models. The ModelKmsKeyId can be either of the following formats:
*
* The Amazon Resource Name (ARN) of the source model. This model was
- * imported from a different AWS account to create the document classifier
- * model in your AWS account.
+ * imported from a different Amazon Web Services account to create the
+ * document classifier model in your Amazon Web Services account.
*
* Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
* The Amazon Resource Name (ARN) that identifies the document classifier.
@@ -423,19 +441,30 @@ public DocumentClassifierProperties withLanguageCode(LanguageCode languageCode)
*
* The status of the document classifier. If the status is
*
+ * If the status is
* Constraints:
* The status of the document classifier. If the status is
*
+ * If the status is
* The status of the document classifier. If the status is
*
+ * If the status is
* Constraints:
* The status of the document classifier. If the status is
*
+ * If the status is
* The status of the document classifier. If the status is
*
+ * If the status is
* Returns a reference to this object so that method calls can be chained
@@ -482,12 +529,18 @@ public void setStatus(String status) {
*
* Constraints:
* The status of the document classifier. If the status is
*
+ * If the status is
* The status of the document classifier. If the status is
*
+ * If the status is
* Constraints:
* The status of the document classifier. If the status is
*
+ * If the status is
* The status of the document classifier. If the status is
*
+ * If the status is
* Returns a reference to this object so that method calls can be chained
@@ -538,12 +609,18 @@ public void setStatus(ModelStatus status) {
*
* Constraints:
* The status of the document classifier. If the status is
*
+ * If the status is
- * 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:
- * 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.
*
- * 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:
- * 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.
*
- * 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.
*
* Returns a reference to this object so that method calls can be chained
@@ -1030,9 +1105,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * 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.
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt trained custom models. The ModelKmsKeyId can be either of
- * the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom
+ * models. The ModelKmsKeyId can be either of the following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon
- * Comprehend uses to encrypt trained custom models. The
- * ModelKmsKeyId can be either of the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained
+ * custom models. The ModelKmsKeyId can be either of the following
+ * formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt trained custom models. The ModelKmsKeyId can be either of
- * the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom
+ * models. The ModelKmsKeyId can be either of the following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon
- * Comprehend uses to encrypt trained custom models. The
- * ModelKmsKeyId can be either of the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt
+ * trained custom models. The ModelKmsKeyId can be either of the
+ * following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt trained custom models. The ModelKmsKeyId can be either of
- * the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom
+ * models. The ModelKmsKeyId can be either of the following formats:
*
- * ID for the AWS Key Management Service (KMS) key that Amazon
- * Comprehend uses to encrypt trained custom models. The
- * ModelKmsKeyId can be either of the following formats:
+ * ID for the KMS key that Amazon Comprehend uses to encrypt
+ * trained custom models. The ModelKmsKeyId can be either of the
+ * following formats:
*
* The Amazon Resource Name (ARN) of the source model. This model was
- * imported from a different AWS account to create the document classifier
- * model in your AWS account.
+ * imported from a different Amazon Web Services account to create the
+ * document classifier model in your Amazon Web Services account.
*
* Constraints:
* The Amazon Resource Name (ARN) of the source model. This model
- * was imported from a different AWS account to create the document
- * classifier model in your AWS account.
+ * was imported from a different Amazon Web Services account to
+ * create the document classifier model in your Amazon Web Services
+ * account.
*
* The Amazon Resource Name (ARN) of the source model. This model was
- * imported from a different AWS account to create the document classifier
- * model in your AWS account.
+ * imported from a different Amazon Web Services account to create the
+ * document classifier model in your Amazon Web Services account.
*
* Constraints:
* The Amazon Resource Name (ARN) of the source model. This model
- * was imported from a different AWS account to create the
- * document classifier model in your AWS account.
+ * was imported from a different Amazon Web Services account to
+ * create the document classifier model in your Amazon Web
+ * Services account.
*
* The Amazon Resource Name (ARN) of the source model. This model was
- * imported from a different AWS account to create the document classifier
- * model in your AWS account.
+ * imported from a different Amazon Web Services account to create the
+ * document classifier model in your Amazon Web Services account.
*
* Returns a reference to this object so that method calls can be chained
@@ -1671,8 +1746,9 @@ public void setSourceModelArn(String sourceModelArn) {
*
* @param sourceModelArn
* The Amazon Resource Name (ARN) of the source model. This model
- * was imported from a different AWS account to create the
- * document classifier model in your AWS account.
+ * was imported from a different Amazon Web Services account to
+ * create the document classifier model in your Amazon Web
+ * Services account.
*
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
* Constraints:
* Constraints:
* Provides the status of the latest document classifier version.
@@ -310,7 +310,7 @@ public String getLatestVersionStatus() {
*
* Constraints:
* Provides the status of the latest document classifier version.
@@ -331,7 +331,7 @@ public void setLatestVersionStatus(String latestVersionStatus) {
*
* Constraints:
* Provides the status of the latest document classifier version.
@@ -352,7 +352,7 @@ public DocumentClassifierSummary withLatestVersionStatus(String latestVersionSta
*
* Constraints:
* Provides the status of the latest document classifier version.
@@ -373,7 +373,7 @@ public void setLatestVersionStatus(ModelStatus latestVersionStatus) {
*
* Constraints:
* Provides the status of the latest document classifier version.
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentLabel.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentLabel.java
index 9ed9c43e14f..474eef6c9bd 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentLabel.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentLabel.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.
@@ -42,6 +42,14 @@ public class DocumentLabel implements Serializable {
*/
private Float score;
+ /**
+ *
+ * Page number where the label occurs. This field is present in the response
+ * only if your request includes the
* The name of the label.
@@ -147,6 +155,60 @@ public DocumentLabel withScore(Float score) {
return this;
}
+ /**
+ *
+ * Page number where the label occurs. This field is present in the response
+ * only if your request includes the
+ * Page number where the label occurs. This field is present in the
+ * response only if your request includes the
+ * Page number where the label occurs. This field is present in the response
+ * only if your request includes the
+ * Page number where the label occurs. This field is present in
+ * the response only if your request includes the
+ *
+ * Page number where the label occurs. This field is present in the response
+ * only if your request includes the
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param page
+ * Page number where the label occurs. This field is present in
+ * the response only if your request includes the
+ *
+ * Information about the document, discovered during text extraction.
+ *
+ * Number of pages in the document.
+ *
+ * List of pages in the document, with the number of characters extracted
+ * from each page.
+ *
+ * Number of pages in the document.
+ *
+ * Number of pages in the document.
+ *
+ * Number of pages in the document.
+ *
+ * Number of pages in the document.
+ *
+ * Number of pages in the document.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param pages
+ * Number of pages in the document.
+ *
+ * List of pages in the document, with the number of characters extracted
+ * from each page.
+ *
+ * List of pages in the document, with the number of characters
+ * extracted from each page.
+ *
+ * List of pages in the document, with the number of characters extracted
+ * from each page.
+ *
+ * List of pages in the document, with the number of characters
+ * extracted from each page.
+ *
+ * List of pages in the document, with the number of characters extracted
+ * from each page.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param extractedCharacters
+ * List of pages in the document, with the number of characters
+ * extracted from each page.
+ *
+ * List of pages in the document, with the number of characters extracted
+ * from each page.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param extractedCharacters
+ * List of pages in the document, with the number of characters
+ * extracted from each page.
+ *
- * A list of the types of analyses to perform. This field specifies what feature
- * types need to be extracted from the document where entity recognition is
- * expected.
+ * Specifies the type of Amazon Textract features to apply. If you chose
+ *
- *
- *
- * The input properties for a topic detection job.
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
+ *
+ * By default, Amazon Comprehend performs the following actions to extract text
+ * from files, based on the input file type:
+ *
+ * Word files - Amazon Comprehend parser extracts the text.
+ *
+ * Digital PDF files - Amazon Comprehend parser extracts the text.
+ *
+ * Image files and scanned PDF files - Amazon Comprehend uses the Amazon
+ * Textract
+ *
+ * For image files and PDF documents, you can override these default actions
+ * using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.
*
- * This enum field will start with two values which will apply to PDFs:
+ * This field defines the Amazon Textract API operation that Amazon
+ * Comprehend uses to extract text from PDF files and image files. Enter one
+ * of the following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter one of the
+ * following values:
*
- *
- *
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If you chose
+ *
+ *
+ *
- * This enum field will start with two values which will apply to PDFs:
+ * This field defines the Amazon Textract API operation that Amazon
+ * Comprehend uses to extract text from PDF files and image files. Enter one
+ * of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to
- * PDFs:
+ * This field defines the Amazon Textract API operation that Amazon
+ * Comprehend uses to extract text from PDF files and image files.
+ * Enter one of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to PDFs:
+ * This field defines the Amazon Textract API operation that Amazon
+ * Comprehend uses to extract text from PDF files and image files. Enter one
+ * of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to
- * PDFs:
+ * This field defines the Amazon Textract API operation that
+ * Amazon Comprehend uses to extract text from PDF files and
+ * image files. Enter one of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to PDFs:
+ * This field defines the Amazon Textract API operation that Amazon
+ * Comprehend uses to extract text from PDF files and image files. Enter one
+ * of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to
- * PDFs:
+ * This field defines the Amazon Textract API operation that
+ * Amazon Comprehend uses to extract text from PDF files and
+ * image files. Enter one of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to PDFs:
+ * This field defines the Amazon Textract API operation that Amazon
+ * Comprehend uses to extract text from PDF files and image files. Enter one
+ * of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to
- * PDFs:
+ * This field defines the Amazon Textract API operation that
+ * Amazon Comprehend uses to extract text from PDF files and
+ * image files. Enter one of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to PDFs:
+ * This field defines the Amazon Textract API operation that Amazon
+ * Comprehend uses to extract text from PDF files and image files. Enter one
+ * of the following values:
*
- *
- *
- * This enum field will start with two values which will apply to
- * PDFs:
+ * This field defines the Amazon Textract API operation that
+ * Amazon Comprehend uses to extract text from PDF files and
+ * image files. Enter one of the following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter one of the
+ * following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter one
+ * of the following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter one of the
+ * following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter
+ * one of the following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter one of the
+ * following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter
+ * one of the following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter one of the
+ * following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter
+ * one of the following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter one of the
+ * following values:
*
- *
- *
- * This enum field provides two values:
+ * Determines the text extraction actions for PDF files. Enter
+ * one of the following values:
*
- *
- *
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If you chose
+ *
+ *
+ *
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If you
+ * chose
+ *
+ *
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If you chose
+ *
+ *
+ *
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If
+ * you chose
+ *
+ *
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If you chose
+ *
+ *
+ *
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param featureTypes
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If
+ * you chose
+ *
+ *
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If you chose
+ *
+ *
+ *
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param featureTypes
- * Specifies how the text in an input file should be processed:
+ * Specifies the type of Amazon Textract features to apply. If
+ * you chose
+ *
+ *
+ * Document type for each page in the document.
+ *
+ * Page number.
+ *
+ * Document type.
+ *
+ * Constraints:
+ * Page number.
+ *
+ * Page number.
+ *
+ * Page number.
+ *
+ * Page number.
+ *
+ * Page number.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param page
+ * Page number.
+ *
+ * Document type.
+ *
+ * Constraints:
+ * Document type.
+ *
+ * Document type.
+ *
+ * Constraints:
+ * Document type.
+ *
+ * Document type.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Document type.
+ *
+ * Document type.
+ *
+ * Constraints:
+ * Document type.
+ *
+ * Document type.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Document type.
+ *
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
- * The Amazon Resource Name (ARN) that gives 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:
- * 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:
*
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language detection
* job. It is a unique, fully qualified identifier for the job. It
- * includes the AWS account, Region, and the job ID. The format of
- * the ARN is as follows:
+ * includes the Amazon Web Services account, Amazon Web Services
+ * Region, and the job ID. The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language
* detection job. It is a unique, fully qualified identifier for
- * the job. It includes the AWS account, Region, and the job ID.
- * The format of the ARN is as follows:
+ * the job. It includes the Amazon Web Services account, Amazon
+ * Web Services Region, and the job ID. The format of the ARN is
+ * as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language
* detection job. It is a unique, fully qualified identifier for
- * the job. It includes the AWS account, Region, and the job ID.
- * The format of the ARN is as follows:
+ * the job. It includes the Amazon Web Services account, Amazon
+ * Web Services Region, and the job ID. The format of the ARN is
+ * as follows:
*
*
- * The Amazon Resource Name (ARN) that gives 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:
- * The Amazon Resource Name (ARN) that gives 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.
*
- * The Amazon Resource Name (ARN) that gives 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:
- * The Amazon Resource Name (ARN) that gives 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.
*
- * The Amazon Resource Name (ARN) that gives 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.
*
* Returns a reference to this object so that method calls can be chained
@@ -844,8 +854,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) that gives 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.
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to trained custom
- * models encrypted with a customer managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a customer
+ * managed key (ModelKmsKeyId).
*
* Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
* The Amazon Resource Number (ARN) of the endpoint.
@@ -770,9 +783,9 @@ public EndpointProperties withLastModifiedTime(java.util.Date lastModifiedTime)
/**
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to trained custom
- * models encrypted with a customer managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a customer
+ * managed key (ModelKmsKeyId).
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * Management (IAM) role that grants Amazon Comprehend read access
- * to trained custom models encrypted with a customer managed key
- * (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a
+ * customer managed key (ModelKmsKeyId).
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to trained custom
- * models encrypted with a customer managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a customer
+ * managed key (ModelKmsKeyId).
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to trained custom models encrypted with a customer
- * managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to trained custom models
+ * encrypted with a customer managed key (ModelKmsKeyId).
*
- * The Amazon Resource Name (ARN) of the AWS identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to trained custom
- * models encrypted with a customer managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to trained custom models encrypted with a customer
+ * managed key (ModelKmsKeyId).
*
* Returns a reference to this object so that method calls can be chained
@@ -827,10 +838,9 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) of the AWS identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to trained custom models encrypted with a customer
- * managed key (ModelKmsKeyId).
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to trained custom models
+ * encrypted with a customer managed key (ModelKmsKeyId).
*
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel
+ *
* The Amazon Resource Name (ARN) of the entities detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
- * The Amazon Resource Name (ARN) that gives 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:
- * 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:
*
+ * The Amazon Resource Name (ARN) of the flywheel associated with this job.
+ *
+ * Constraints:
* The identifier assigned to the entities detection job.
@@ -254,8 +269,9 @@ public EntitiesDetectionJobProperties withJobId(String jobId) {
/**
*
* The Amazon Resource Name (ARN) of the entities detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the entities detection job. It
* is a unique, fully qualified identifier for the job. It includes
- * the AWS account, Region, and the job ID. The format of the ARN is
- * as follows:
+ * the Amazon Web Services account, Amazon Web Services Region, and
+ * the job ID. The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the entities detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the entities detection job.
* It is a unique, fully qualified identifier for the job. It
- * includes the AWS account, Region, and the job ID. The format
- * of the ARN is as follows:
+ * includes the Amazon Web Services account, Amazon Web Services
+ * Region, and the job ID. The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the entities detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the entities detection job.
* It is a unique, fully qualified identifier for the job. It
- * includes the AWS account, Region, and the job ID. The format
- * of the ARN is as follows:
+ * includes the Amazon Web Services account, Amazon Web Services
+ * Region, and the job ID. The format of the ARN is as follows:
*
*
- * The Amazon Resource Name (ARN) that gives 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:
- * The Amazon Resource Name (ARN) that gives 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.
*
- * The Amazon Resource Name (ARN) that gives 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:
- * The Amazon Resource Name (ARN) that gives 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.
*
- * The Amazon Resource Name (ARN) that gives 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.
*
* Returns a reference to this object so that method calls can be chained
@@ -1023,8 +1044,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) that gives 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.
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
+ * The Amazon Resource Name (ARN) of the flywheel associated with this job.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the flywheel associated with
+ * this job.
+ *
+ * The Amazon Resource Name (ARN) of the flywheel associated with this job.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the flywheel associated with
+ * this job.
+ *
+ * The Amazon Resource Name (ARN) of the flywheel associated with this job.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Name (ARN) of the flywheel associated with
+ * this job.
+ *
- * The entity's type.
+ * The entity type. For entity detection using the built-in model, this
+ * field contains one of the standard entity types listed below.
+ *
+ * For custom entity detection, this field contains one of the entity types
+ * that you specified when you trained your custom model.
*
* Constraints:
+ * This field is empty for non-text input.
+ *
+ * This field is empty for non-text input.
+ *
+ * A reference to each block for this entity. This field is empty for
+ * plain-text input.
+ *
* The level of confidence that Amazon Comprehend has in the accuracy of the
@@ -123,7 +142,12 @@ public Entity withScore(Float score) {
/**
*
- * The entity's type.
+ * The entity type. For entity detection using the built-in model, this
+ * field contains one of the standard entity types listed below.
+ *
+ * For custom entity detection, this field contains one of the entity types
+ * that you specified when you trained your custom model.
*
* Constraints:
- * The entity's type.
+ * The entity type. For entity detection using the built-in model,
+ * this field contains one of the standard entity types listed
+ * below.
+ *
+ * For custom entity detection, this field contains one of the
+ * entity types that you specified when you trained your custom
+ * model.
*
- * The entity's type.
+ * The entity type. For entity detection using the built-in model, this
+ * field contains one of the standard entity types listed below.
+ *
+ * For custom entity detection, this field contains one of the entity types
+ * that you specified when you trained your custom model.
*
* Constraints:
- * The entity's type.
+ * The entity type. For entity detection using the built-in
+ * model, this field contains one of the standard entity types
+ * listed below.
+ *
+ * For custom entity detection, this field contains one of the
+ * entity types that you specified when you trained your custom
+ * model.
*
- * The entity's type.
+ * The entity type. For entity detection using the built-in model, this
+ * field contains one of the standard entity types listed below.
+ *
+ * For custom entity detection, this field contains one of the entity types
+ * that you specified when you trained your custom model.
*
* Returns a reference to this object so that method calls can be chained
@@ -170,7 +218,14 @@ public void setType(String type) {
* EVENT, DATE, QUANTITY, TITLE, OTHER
*
* @param type
- * The entity's type.
+ * The entity type. For entity detection using the built-in
+ * model, this field contains one of the standard entity types
+ * listed below.
+ *
+ * For custom entity detection, this field contains one of the
+ * entity types that you specified when you trained your custom
+ * model.
*
- * The entity's type.
+ * The entity type. For entity detection using the built-in model, this
+ * field contains one of the standard entity types listed below.
+ *
+ * For custom entity detection, this field contains one of the entity types
+ * that you specified when you trained your custom model.
*
* Constraints:
- * The entity's type.
+ * The entity type. For entity detection using the built-in
+ * model, this field contains one of the standard entity types
+ * listed below.
+ *
+ * For custom entity detection, this field contains one of the
+ * entity types that you specified when you trained your custom
+ * model.
*
- * The entity's type.
+ * The entity type. For entity detection using the built-in model, this
+ * field contains one of the standard entity types listed below.
+ *
+ * For custom entity detection, this field contains one of the entity types
+ * that you specified when you trained your custom model.
*
* Returns a reference to this object so that method calls can be chained
@@ -212,7 +284,14 @@ public void setType(EntityType type) {
* EVENT, DATE, QUANTITY, TITLE, OTHER
*
* @param type
- * The entity's type.
+ * The entity type. For entity detection using the built-in
+ * model, this field contains one of the standard entity types
+ * listed below.
+ *
+ * For custom entity detection, this field contains one of the
+ * entity types that you specified when you trained your custom
+ * model.
*
+ * This field is empty for non-text input.
+ *
* The zero-based offset from the beginning of the source text to
* the first character in the entity.
*
+ * This field is empty for non-text input.
+ *
+ * This field is empty for non-text input.
+ *
* The zero-based offset from the beginning of the source text to
* the first character in the entity.
*
+ * This field is empty for non-text input.
+ *
+ * This field is empty for non-text input.
+ *
* Returns a reference to this object so that method calls can be chained
* together.
*
@@ -320,6 +414,9 @@ public void setBeginOffset(Integer beginOffset) {
* The zero-based offset from the beginning of the source text to
* the first character in the entity.
*
+ * This field is empty for non-text input.
+ * Errors
for each error.
+ * InvalidRequestException
error response. For details
+ * about this exception, see
+ * Errors in semi-structured documents in the Comprehend Developer Guide.
+ * Bytes
parameter.
*
@@ -41,13 +61,13 @@ public class DetectEntitiesRequest extends AmazonWebServiceRequest implements Se
/**
*
@@ -83,14 +103,64 @@ public class DetectEntitiesRequest extends AmazonWebServiceRequest implements Se
/**
* Text
field.
+ * Bytes
parameter to input a text, PDF, Word or image
+ * file. Using a plain-text file in the Bytes
parameter is
+ * equivelent to using the Text
parameter (the
+ * Entities
field in the response is identical).
+ * Bytes
parameter to input an Amazon
+ * Textract DetectDocumentText
or AnalyzeDocument
+ * output file.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ */
+ private java.nio.ByteBuffer bytes;
+
+ /**
+ * Bytes
parameter.
*
* Length: 1 -
*
* @return Bytes
parameter.
* Bytes
parameter.
*
* Length: 1 -
*
* @param text Bytes
parameter.
* Bytes
parameter.
*
*
* @param text Bytes
parameter.
*
@@ -152,14 +228,13 @@ public DetectEntitiesRequest withText(String text) {
*
* @return
@@ -184,14 +259,13 @@ public String getLanguageCode() {
*
* @param languageCode
@@ -254,14 +327,13 @@ public DetectEntitiesRequest withLanguageCode(String languageCode) {
*
* @param languageCode Text
field.
+ * Bytes
parameter to input a text, PDF, Word or image
+ * file. Using a plain-text file in the Bytes
parameter is
+ * equivelent to using the Text
parameter (the
+ * Entities
field in the response is identical).
+ * Bytes
parameter to input an Amazon
+ * Textract DetectDocumentText
or AnalyzeDocument
+ * output file.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ *
+ * @return Text
field.
+ * Bytes
parameter to input a text, PDF, Word
+ * or image file. Using a plain-text file in the Bytes
+ * parameter is equivelent to using the Text
parameter
+ * (the Entities
field in the response is identical).
+ * Bytes
parameter to input an
+ * Amazon Textract DetectDocumentText
or
+ * AnalyzeDocument
output file.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ * Text
field.
+ * Bytes
parameter to input a text, PDF, Word or image
+ * file. Using a plain-text file in the Bytes
parameter is
+ * equivelent to using the Text
parameter (the
+ * Entities
field in the response is identical).
+ * Bytes
parameter to input an Amazon
+ * Textract DetectDocumentText
or AnalyzeDocument
+ * output file.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ *
+ * @param bytes Text
+ * field.
+ * Bytes
parameter to input a text, PDF,
+ * Word or image file. Using a plain-text file in the
+ * Bytes
parameter is equivelent to using the
+ * Text
parameter (the Entities
field
+ * in the response is identical).
+ * Bytes
parameter to input an
+ * Amazon Textract DetectDocumentText
or
+ * AnalyzeDocument
output file.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ * Text
field.
+ * Bytes
parameter to input a text, PDF, Word or image
+ * file. Using a plain-text file in the Bytes
parameter is
+ * equivelent to using the Text
parameter (the
+ * Entities
field in the response is identical).
+ * Bytes
parameter to input an Amazon
+ * Textract DetectDocumentText
or AnalyzeDocument
+ * output file.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ *
+ * Length: 1 -
+ *
+ * @param bytes Text
+ * field.
+ * Bytes
parameter to input a text, PDF,
+ * Word or image file. Using a plain-text file in the
+ * Bytes
parameter is equivelent to using the
+ * Text
parameter (the Entities
field
+ * in the response is identical).
+ * Bytes
parameter to input an
+ * Amazon Textract DetectDocumentText
or
+ * AnalyzeDocument
output file.
+ * Bytes
parameter, do not use the
+ * Text
parameter.
+ * Byte
parameter.
+ * Byte
+ * parameter.
+ * Block
content for a Word input document does not include
+ * a Geometry
field.
+ * Block
field is not present in the response for
+ * plain-text inputs.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
+ * parameter.
+ * Byte
parameter.
+ * Byte
+ * parameter.
+ * Byte
parameter.
+ * Byte
+ * parameter.
+ * Byte
parameter.
+ * Byte
+ * parameter.
+ * Byte
parameter.
+ * Block
content for a Word input document does not include
+ * a Geometry
field.
+ * Block
field is not present in the response for
+ * plain-text inputs.
+ * Block
content for a Word input document does not
+ * include a Geometry
field.
+ * Block
field is not present in the response for
+ * plain-text inputs.
+ * Block
content for a Word input document does not include
+ * a Geometry
field.
+ * Block
field is not present in the response for
+ * plain-text inputs.
+ * Block
content for a Word input document does
+ * not include a Geometry
field.
+ * Block
field is not present in the response
+ * for plain-text inputs.
+ * Block
content for a Word input document does not include
+ * a Geometry
field.
+ * Block
field is not present in the response for
+ * plain-text inputs.
+ * Block
content for a Word input document does
+ * not include a Geometry
field.
+ * Block
field is not present in the response
+ * for plain-text inputs.
+ * Block
content for a Word input document does not include
+ * a Geometry
field.
+ * Block
field is not present in the response for
+ * plain-text inputs.
+ * Block
content for a Word input document does
+ * not include a Geometry
field.
+ * Block
field is not present in the response
+ * for plain-text inputs.
+ *
* Length: 1 -
@@ -60,13 +53,6 @@ public class DetectSentimentRequest extends AmazonWebServiceRequest implements S
*
* Length: 1 -
@@ -74,13 +60,6 @@ public class DetectSentimentRequest extends AmazonWebServiceRequest implements S
* @return
* Length: 1 -
@@ -104,13 +76,6 @@ public String getText() {
* @param text Byte
parameter.
+ * Byte
parameter.
+ * Byte
+ * parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * MULTI_CLASS
or MULTI_LABEL
.
+ *
+ * Allowed Values: MULTI_CLASS, MULTI_LABEL
+ */
+ private String mode;
+
+ /**
+ * MULTI_CLASS
or MULTI_LABEL
.
+ *
+ * Allowed Values: MULTI_CLASS, MULTI_LABEL
+ *
+ * @return MULTI_CLASS
or MULTI_LABEL
.
+ * MULTI_CLASS
or MULTI_LABEL
.
+ *
+ * Allowed Values: MULTI_CLASS, MULTI_LABEL
+ *
+ * @param mode MULTI_CLASS
or MULTI_LABEL
.
+ * MULTI_CLASS
or MULTI_LABEL
.
+ *
+ * Allowed Values: MULTI_CLASS, MULTI_LABEL
+ *
+ * @param mode MULTI_CLASS
or MULTI_LABEL
.
+ * MULTI_CLASS
or MULTI_LABEL
.
+ *
+ * Allowed Values: MULTI_CLASS, MULTI_LABEL
+ *
+ * @param mode MULTI_CLASS
or MULTI_LABEL
.
+ * MULTI_CLASS
or MULTI_LABEL
.
+ *
+ * Allowed Values: MULTI_CLASS, MULTI_LABEL
+ *
+ * @param mode MULTI_CLASS
or MULTI_LABEL
.
+ * arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -55,7 +56,8 @@ public class DocumentClassificationJobProperties implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -137,8 +139,8 @@ public class DocumentClassificationJobProperties implements Serializable {
/**
*
@@ -149,10 +151,10 @@ public class DocumentClassificationJobProperties implements Serializable {
/**
*
*
+ * 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;
+
/**
* arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -263,13 +279,14 @@ public DocumentClassificationJobProperties withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -288,8 +305,9 @@ public String getJobArn() {
/**
* arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -306,13 +324,15 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -331,8 +351,9 @@ public void setJobArn(String jobArn) {
/**
* arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -352,13 +373,15 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -872,8 +895,8 @@ public DocumentClassificationJobProperties withOutputDataConfig(
/**
*
@@ -881,9 +904,8 @@ public DocumentClassificationJobProperties withOutputDataConfig(
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -901,9 +923,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String s3Uri;
+
+ /**
+ *
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String testS3Uri;
+
+ /**
+ *
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param s3Uri
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param testS3Uri
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param testS3Uri ListDocumentClassifiers
operation.
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*/
private String status;
@@ -74,7 +74,7 @@ public class DocumentClassifierFilter implements Serializable {
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @return
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
@@ -131,6 +131,66 @@ public class DocumentClassifierInputDataConfig implements Serializable {
*/
private java.util.List
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ */
+ private String documentType;
+
+ /**
+ *
+ *
+ * DetectDocumentText
API to extract the text.
+ * DocumentReaderConfig
does not apply to plain text files or
+ * Word files.
+ *
@@ -640,7 +700,8 @@ public DocumentClassifierInputDataConfig withS3Uri(String s3Uri) {
* @return
@@ -661,8 +722,8 @@ public String getTestS3Uri() {
* @param testS3Uri
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @return
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ * Allowed Values: PLAIN_TEXT_DOCUMENT, SEMI_STRUCTURED_DOCUMENT
+ *
+ * @param documentType
+ *
+ * DetectDocumentText
API to extract the text.
+ * DocumentReaderConfig
does not apply to plain text files or
+ * Word files.
+ *
+ *
+ * DetectDocumentText
API to
+ * extract the text.
+ * DocumentReaderConfig
does not apply to plain text
+ * files or Word files.
+ *
+ *
+ * DetectDocumentText
API to extract the text.
+ * DocumentReaderConfig
does not apply to plain text files or
+ * Word files.
+ *
+ *
+ * DetectDocumentText
API
+ * to extract the text.
+ * DocumentReaderConfig
does not apply to plain text
+ * files or Word files.
+ *
+ *
+ * DetectDocumentText
API to extract the text.
+ * DocumentReaderConfig
does not apply to plain text files or
+ * Word files.
+ *
+ *
+ * DetectDocumentText
API
+ * to extract the text.
+ * DocumentReaderConfig
does not apply to plain text
+ * files or Word files.
+ * OutputDataConfig
object while creating a
* custom classifier, you specify the Amazon S3 location where you want to
- * write the confusion matrix. The URI must be in the same region as the API
- * endpoint that you are calling. The location is used as the prefix for the
- * actual location of this output file.
+ * write the confusion matrix and other output files. The URI must be in the
+ * same Region as the API endpoint that you are calling. The location is
+ * used as the prefix for the actual location of this output file.
*
*
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String flywheelStatsS3Prefix;
+
/**
* OutputDataConfig
object while creating a
* custom classifier, you specify the Amazon S3 location where you want to
- * write the confusion matrix. The URI must be in the same region as the API
- * endpoint that you are calling. The location is used as the prefix for the
- * actual location of this output file.
+ * write the confusion matrix and other output files. The URI must be in the
+ * same Region as the API endpoint that you are calling. The location is
+ * used as the prefix for the actual location of this output file.
* OutputDataConfig
object while
* creating a custom classifier, you specify the Amazon S3 location
- * where you want to write the confusion matrix. The URI must be in
- * the same region as the API endpoint that you are calling. The
- * location is used as the prefix for the actual location of this
- * output file.
+ * where you want to write the confusion matrix and other output
+ * files. The URI must be in the same Region as the API endpoint
+ * that you are calling. The location is used as the prefix for the
+ * actual location of this output file.
* OutputDataConfig
object while creating a
* custom classifier, you specify the Amazon S3 location where you want to
- * write the confusion matrix. The URI must be in the same region as the API
- * endpoint that you are calling. The location is used as the prefix for the
- * actual location of this output file.
+ * write the confusion matrix and other output files. The URI must be in the
+ * same Region as the API endpoint that you are calling. The location is
+ * used as the prefix for the actual location of this output file.
* OutputDataConfig
object while
* creating a custom classifier, you specify the Amazon S3
- * location where you want to write the confusion matrix. The URI
- * must be in the same region as the API endpoint that you are
- * calling. The location is used as the prefix for the actual
- * location of this output file.
+ * location where you want to write the confusion matrix and
+ * other output files. The URI must be in the same Region as the
+ * API endpoint that you are calling. The location is used as the
+ * prefix for the actual location of this output file.
* OutputDataConfig
object while creating a
* custom classifier, you specify the Amazon S3 location where you want to
- * write the confusion matrix. The URI must be in the same region as the API
- * endpoint that you are calling. The location is used as the prefix for the
- * actual location of this output file.
+ * write the confusion matrix and other output files. The URI must be in the
+ * same Region as the API endpoint that you are calling. The location is
+ * used as the prefix for the actual location of this output file.
* OutputDataConfig
object while
* creating a custom classifier, you specify the Amazon S3
- * location where you want to write the confusion matrix. The URI
- * must be in the same region as the API endpoint that you are
- * calling. The location is used as the prefix for the actual
- * location of this output file.
+ * location where you want to write the confusion matrix and
+ * other output files. The URI must be in the same Region as the
+ * API endpoint that you are calling. The location is used as the
+ * prefix for the actual location of this output file.
*
*
*
* @return
*
*
*
* @param kmsKeyId
*
*
*
* @param kmsKeyId
*
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param flywheelStatsS3Prefix
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param flywheelStatsS3Prefix TRAINED
the classifier is ready to use. If the status is
- * FAILED
you can see additional information about why the
- * classifier wasn't trained in the Message
field.
+ * TRAINED_WITH_WARNINGS
the classifier training succeeded, but
+ * you should review the warnings returned in the
+ * CreateDocumentClassifier
response.
+ * FAILED
you can see additional information
+ * about why the classifier wasn't trained in the Message
+ * field.
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*/
private String status;
@@ -129,8 +135,8 @@ public class DocumentClassifierProperties implements Serializable {
/**
*
@@ -141,10 +147,10 @@ public class DocumentClassifierProperties implements Serializable {
/**
*
*
*
@@ -243,6 +248,19 @@ public class DocumentClassifierProperties implements Serializable {
*/
private String sourceModelArn;
+ /**
+ *
+ * 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;
+
/**
* TRAINED
the classifier is ready to use. If the status is
- * FAILED
you can see additional information about why the
- * classifier wasn't trained in the Message
field.
+ * TRAINED_WITH_WARNINGS
the classifier training succeeded, but
+ * you should review the warnings returned in the
+ * CreateDocumentClassifier
response.
+ * FAILED
you can see additional information
+ * about why the classifier wasn't trained in the Message
+ * field.
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @return TRAINED
the classifier is ready to use. If the
- * status is FAILED
you can see additional information
- * about why the classifier wasn't trained in the
+ * status is TRAINED_WITH_WARNINGS
the classifier
+ * training succeeded, but you should review the warnings returned
+ * in the CreateDocumentClassifier
response.
+ * FAILED
you can see additional
+ * information about why the classifier wasn't trained in the
* Message
field.
* TRAINED
the classifier is ready to use. If the status is
- * FAILED
you can see additional information about why the
- * classifier wasn't trained in the Message
field.
+ * TRAINED_WITH_WARNINGS
the classifier training succeeded, but
+ * you should review the warnings returned in the
+ * CreateDocumentClassifier
response.
+ * FAILED
you can see additional information
+ * about why the classifier wasn't trained in the Message
+ * field.
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status TRAINED
the classifier is ready to use. If the
- * status is FAILED
you can see additional
+ * status is TRAINED_WITH_WARNINGS
the classifier
+ * training succeeded, but you should review the warnings
+ * returned in the CreateDocumentClassifier
+ * response.
+ * FAILED
you can see additional
* information about why the classifier wasn't trained in the
* Message
field.
* TRAINED
the classifier is ready to use. If the status is
- * FAILED
you can see additional information about why the
- * classifier wasn't trained in the Message
field.
+ * TRAINED_WITH_WARNINGS
the classifier training succeeded, but
+ * you should review the warnings returned in the
+ * CreateDocumentClassifier
response.
+ * FAILED
you can see additional information
+ * about why the classifier wasn't trained in the Message
+ * field.
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status TRAINED
the classifier is ready to use. If the
- * status is FAILED
you can see additional
+ * status is TRAINED_WITH_WARNINGS
the classifier
+ * training succeeded, but you should review the warnings
+ * returned in the CreateDocumentClassifier
+ * response.
+ * FAILED
you can see additional
* information about why the classifier wasn't trained in the
* Message
field.
* TRAINED
the classifier is ready to use. If the status is
- * FAILED
you can see additional information about why the
- * classifier wasn't trained in the Message
field.
+ * TRAINED_WITH_WARNINGS
the classifier training succeeded, but
+ * you should review the warnings returned in the
+ * CreateDocumentClassifier
response.
+ * FAILED
you can see additional information
+ * about why the classifier wasn't trained in the Message
+ * field.
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status TRAINED
the classifier is ready to use. If the
- * status is FAILED
you can see additional
+ * status is TRAINED_WITH_WARNINGS
the classifier
+ * training succeeded, but you should review the warnings
+ * returned in the CreateDocumentClassifier
+ * response.
+ * FAILED
you can see additional
* information about why the classifier wasn't trained in the
* Message
field.
* TRAINED
the classifier is ready to use. If the status is
- * FAILED
you can see additional information about why the
- * classifier wasn't trained in the Message
field.
+ * TRAINED_WITH_WARNINGS
the classifier training succeeded, but
+ * you should review the warnings returned in the
+ * CreateDocumentClassifier
response.
+ * FAILED
you can see additional information
+ * about why the classifier wasn't trained in the Message
+ * field.
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status TRAINED
the classifier is ready to use. If the
- * status is FAILED
you can see additional
+ * status is TRAINED_WITH_WARNINGS
the classifier
+ * training succeeded, but you should review the warnings
+ * returned in the CreateDocumentClassifier
+ * response.
+ * FAILED
you can see additional
* information about why the classifier wasn't trained in the
* Message
field.
*
@@ -987,9 +1064,8 @@ public DocumentClassifierProperties withClassifierMetadata(ClassifierMetadata cl
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -1007,9 +1083,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*
*
*
* @return
*
*
*
* @param modelKmsKeyId
*
*
*
* @param modelKmsKeyId
*
@@ -1620,8 +1693,9 @@ public DocumentClassifierProperties withVersionName(String versionName) {
*
* @return
@@ -1644,8 +1718,9 @@ public String getSourceModelArn() {
*
* @param sourceModelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*/
private String latestVersionStatus;
@@ -292,7 +292,7 @@ public DocumentClassifierSummary withLatestVersionName(String latestVersionName)
*
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @return
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus Byte
parameter.
+ * Byte
parameter.
+ * Byte
+ * parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * Byte
parameter.
+ * TEXTRACT_ANALYZE_DOCUMENT
as the read action, you must specify
+ * one or both of the following values:
*
*
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentReadMode.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentReadMode.java
index e5922ac6c3b..3e4454d2e6f 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentReadMode.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentReadMode.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/DocumentReaderConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentReaderConfig.java
index 671a59b2ed1..24d7d7b3edf 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentReaderConfig.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentReaderConfig.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.
@@ -19,25 +19,60 @@
/**
* TABLES
- Add TABLES to the list to return information about the
- * tables that are detected in the input document.
+ * TABLES
- Returns additional information about any tables that
+ * are detected in the input document.
* FORMS
- Add FORMS to return detected form data.
+ * FORMS
- Returns additional information about any forms that are
+ * detected in the input document.
*
+ *
+ * DetectDocumentText
API to extract the text.
+ * DocumentReaderConfig
does not apply to plain text files or Word
+ * files.
+ *
*
@@ -50,20 +85,21 @@ public class DocumentReaderConfig implements Serializable {
/**
* TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon Comprehend
+ * service uses the DetectDocumentText
API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend service
+ * uses the AnalyzeDocument
API operation.
*
*
@@ -75,26 +111,44 @@ public class DocumentReaderConfig implements Serializable {
/**
* SERVICE_DEFAULT
- use service defaults for Document reading.
- * For Digital PDF it would mean using an internal parser instead of
- * Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend service defaults
+ * for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified action for
- * DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend uses the
+ * Textract API specified by DocumentReadAction for all PDF files, including
+ * digital PDF files.
* TEXTRACT_ANALYZE_DOCUMENT
as the read action, you must
+ * specify one or both of the following values:
+ *
+ *
*/
private java.util.ListTABLES
- Returns information about any tables that are
+ * detected in the input document.
+ * FORMS
- Returns information and the data from any forms that
+ * are detected in the input document.
*
*
@@ -104,20 +158,22 @@ public class DocumentReaderConfig implements Serializable {
* TEXTRACT_ANALYZE_DOCUMENT
*
* @return TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon Comprehend
+ * service uses the DetectDocumentText
API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend service
+ * uses the AnalyzeDocument
API operation.
*
*
@@ -129,19 +185,21 @@ public String getDocumentReadAction() {
/**
* TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon
+ * Comprehend service uses the DetectDocumentText
API
+ * operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend
+ * service uses the AnalyzeDocument
API operation.
*
*
@@ -151,20 +209,22 @@ public String getDocumentReadAction() {
* TEXTRACT_ANALYZE_DOCUMENT
*
* @param documentReadAction TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon Comprehend
+ * service uses the DetectDocumentText
API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend service
+ * uses the AnalyzeDocument
API operation.
*
*
@@ -176,19 +236,21 @@ public void setDocumentReadAction(String documentReadAction) {
/**
* TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon
+ * Comprehend service uses the DetectDocumentText
+ * API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend
+ * service uses the AnalyzeDocument
API operation.
*
*
@@ -201,20 +263,22 @@ public void setDocumentReadAction(String documentReadAction) {
* TEXTRACT_ANALYZE_DOCUMENT
*
* @param documentReadAction TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon Comprehend
+ * service uses the DetectDocumentText
API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend service
+ * uses the AnalyzeDocument
API operation.
*
*
@@ -229,19 +293,21 @@ public DocumentReaderConfig withDocumentReadAction(String documentReadAction) {
/**
* TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon
+ * Comprehend service uses the DetectDocumentText
+ * API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend
+ * service uses the AnalyzeDocument
API operation.
*
*
@@ -251,20 +317,22 @@ public DocumentReaderConfig withDocumentReadAction(String documentReadAction) {
* TEXTRACT_ANALYZE_DOCUMENT
*
* @param documentReadAction TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon Comprehend
+ * service uses the DetectDocumentText
API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend service
+ * uses the AnalyzeDocument
API operation.
*
*
@@ -276,19 +344,21 @@ public void setDocumentReadAction(DocumentReadAction documentReadAction) {
/**
* TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon
+ * Comprehend service uses the DetectDocumentText
+ * API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend
+ * service uses the AnalyzeDocument
API operation.
*
*
@@ -301,20 +371,22 @@ public void setDocumentReadAction(DocumentReadAction documentReadAction) {
* TEXTRACT_ANALYZE_DOCUMENT
*
* @param documentReadAction TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon Comprehend
+ * service uses the DetectDocumentText
API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend service
+ * uses the AnalyzeDocument
API operation.
*
*
@@ -329,20 +401,21 @@ public DocumentReaderConfig withDocumentReadAction(DocumentReadAction documentRe
/**
* TEXTRACT_DETECT_DOCUMENT_TEXT
- The service calls
- * DetectDocumentText for PDF documents per page.
+ * TEXTRACT_DETECT_DOCUMENT_TEXT
- The Amazon
+ * Comprehend service uses the DetectDocumentText
+ * API operation.
* TEXTRACT_ANALYZE_DOCUMENT
- The service calls
- * AnalyzeDocument for PDF documents per page.
+ * TEXTRACT_ANALYZE_DOCUMENT
- The Amazon Comprehend
+ * service uses the AnalyzeDocument
API operation.
*
*
@@ -351,20 +424,21 @@ public DocumentReaderConfig withDocumentReadAction(DocumentReadAction documentRe
* Allowed Values: SERVICE_DEFAULT, FORCE_DOCUMENT_READ_ACTION
*
* @return SERVICE_DEFAULT
- use service defaults for Document reading.
- * For Digital PDF it would mean using an internal parser instead of
- * Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend service defaults
+ * for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified action for
- * DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend uses the
+ * Textract API specified by DocumentReadAction for all PDF files, including
+ * digital PDF files.
*
*
@@ -376,20 +450,21 @@ public String getDocumentReadMode() {
/**
* SERVICE_DEFAULT
- use service defaults for Document
- * reading. For Digital PDF it would mean using an internal parser
- * instead of Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend service
+ * defaults for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified
- * action for DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend uses
+ * the Textract API specified by DocumentReadAction for all PDF
+ * files, including digital PDF files.
*
*
@@ -398,20 +473,21 @@ public String getDocumentReadMode() {
* Allowed Values: SERVICE_DEFAULT, FORCE_DOCUMENT_READ_ACTION
*
* @param documentReadMode SERVICE_DEFAULT
- use service defaults for Document reading.
- * For Digital PDF it would mean using an internal parser instead of
- * Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend service defaults
+ * for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified action for
- * DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend uses the
+ * Textract API specified by DocumentReadAction for all PDF files, including
+ * digital PDF files.
*
*
@@ -423,20 +499,21 @@ public void setDocumentReadMode(String documentReadMode) {
/**
* SERVICE_DEFAULT
- use service defaults for
- * Document reading. For Digital PDF it would mean using an
- * internal parser instead of Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend
+ * service defaults for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified
- * action for DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend
+ * uses the Textract API specified by DocumentReadAction for all
+ * PDF files, including digital PDF files.
*
*
@@ -448,20 +525,21 @@ public void setDocumentReadMode(String documentReadMode) {
* Allowed Values: SERVICE_DEFAULT, FORCE_DOCUMENT_READ_ACTION
*
* @param documentReadMode SERVICE_DEFAULT
- use service defaults for Document reading.
- * For Digital PDF it would mean using an internal parser instead of
- * Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend service defaults
+ * for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified action for
- * DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend uses the
+ * Textract API specified by DocumentReadAction for all PDF files, including
+ * digital PDF files.
*
*
@@ -476,20 +554,21 @@ public DocumentReaderConfig withDocumentReadMode(String documentReadMode) {
/**
* SERVICE_DEFAULT
- use service defaults for
- * Document reading. For Digital PDF it would mean using an
- * internal parser instead of Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend
+ * service defaults for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified
- * action for DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend
+ * uses the Textract API specified by DocumentReadAction for all
+ * PDF files, including digital PDF files.
*
*
@@ -498,20 +577,21 @@ public DocumentReaderConfig withDocumentReadMode(String documentReadMode) {
* Allowed Values: SERVICE_DEFAULT, FORCE_DOCUMENT_READ_ACTION
*
* @param documentReadMode SERVICE_DEFAULT
- use service defaults for Document reading.
- * For Digital PDF it would mean using an internal parser instead of
- * Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend service defaults
+ * for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified action for
- * DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend uses the
+ * Textract API specified by DocumentReadAction for all PDF files, including
+ * digital PDF files.
*
*
@@ -523,20 +603,21 @@ public void setDocumentReadMode(DocumentReadMode documentReadMode) {
/**
* SERVICE_DEFAULT
- use service defaults for
- * Document reading. For Digital PDF it would mean using an
- * internal parser instead of Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend
+ * service defaults for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified
- * action for DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend
+ * uses the Textract API specified by DocumentReadAction for all
+ * PDF files, including digital PDF files.
*
*
@@ -548,20 +629,21 @@ public void setDocumentReadMode(DocumentReadMode documentReadMode) {
* Allowed Values: SERVICE_DEFAULT, FORCE_DOCUMENT_READ_ACTION
*
* @param documentReadMode SERVICE_DEFAULT
- use service defaults for Document reading.
- * For Digital PDF it would mean using an internal parser instead of
- * Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend service defaults
+ * for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified action for
- * DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend uses the
+ * Textract API specified by DocumentReadAction for all PDF files, including
+ * digital PDF files.
*
*
@@ -576,12 +658,44 @@ public DocumentReaderConfig withDocumentReadMode(DocumentReadMode documentReadMo
/**
* SERVICE_DEFAULT
- use service defaults for
- * Document reading. For Digital PDF it would mean using an
- * internal parser instead of Textract APIs
+ * SERVICE_DEFAULT
- use the Amazon Comprehend
+ * service defaults for PDF files.
* FORCE_DOCUMENT_READ_ACTION
- Always use specified
- * action for DocumentReadAction, including Digital PDF.
+ * FORCE_DOCUMENT_READ_ACTION
- Amazon Comprehend
+ * uses the Textract API specified by DocumentReadAction for all
+ * PDF files, including digital PDF files.
* TEXTRACT_ANALYZE_DOCUMENT
as the read action, you must
+ * specify one or both of the following values:
+ *
+ *
*
* @return TABLES
- Returns information about any tables that are
+ * detected in the input document.
* FORMS
- Returns information and the data from any forms that
+ * are detected in the input document.
+ * TEXTRACT_ANALYZE_DOCUMENT
as the read action,
+ * you must specify one or both of the following values:
*
+ *
*/
public java.util.ListTABLES
- Returns information about any tables that
+ * are detected in the input document.
+ * FORMS
- Returns information and the data from any
+ * forms that are detected in the input document.
+ * TEXTRACT_ANALYZE_DOCUMENT
as the read action, you must
+ * specify one or both of the following values:
+ *
+ *
*
* @param featureTypes TABLES
- Returns information about any tables that are
+ * detected in the input document.
+ * FORMS
- Returns information and the data from any forms that
+ * are detected in the input document.
* TEXTRACT_ANALYZE_DOCUMENT
as the read
+ * action, you must specify one or both of the following values:
*
+ *
*/
public void setFeatureTypes(java.util.CollectionTABLES
- Returns information about any tables
+ * that are detected in the input document.
+ * FORMS
- Returns information and the data from any
+ * forms that are detected in the input document.
+ * TEXTRACT_ANALYZE_DOCUMENT
as the read action, you must
+ * specify one or both of the following values:
+ *
+ *
* TABLES
- Returns information about any tables that are
+ * detected in the input document.
* FORMS
- Returns information and the data from any forms that
+ * are detected in the input document.
+ * TEXTRACT_ANALYZE_DOCUMENT
as the read
+ * action, you must specify one or both of the following values:
+ *
+ *
* @return A reference to this updated object so that method calls can be
* chained together.
*/
@@ -631,15 +809,47 @@ public DocumentReaderConfig withFeatureTypes(String... featureTypes) {
/**
* TABLES
- Returns information about any tables
+ * that are detected in the input document.
* FORMS
- Returns information and the data from any
+ * forms that are detected in the input document.
+ * TEXTRACT_ANALYZE_DOCUMENT
as the read action, you must
+ * specify one or both of the following values:
*
+ *
* TABLES
- Returns information about any tables that are
+ * detected in the input document.
+ * FORMS
- Returns information and the data from any forms that
+ * are detected in the input document.
+ * TEXTRACT_ANALYZE_DOCUMENT
as the read
+ * action, you must specify one or both of the following values:
+ *
+ *
* @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/DocumentType.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentType.java
new file mode 100644
index 00000000000..630ba05c70f
--- /dev/null
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentType.java
@@ -0,0 +1,72 @@
+/*
+ * 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;
+
+/**
+ * Document Type
+ */
+public enum DocumentType {
+
+ NATIVE_PDF("NATIVE_PDF"),
+ SCANNED_PDF("SCANNED_PDF"),
+ MS_WORD("MS_WORD"),
+ IMAGE("IMAGE"),
+ PLAIN_TEXT("PLAIN_TEXT"),
+ TEXTRACT_DETECT_DOCUMENT_TEXT_JSON("TEXTRACT_DETECT_DOCUMENT_TEXT_JSON"),
+ TEXTRACT_ANALYZE_DOCUMENT_JSON("TEXTRACT_ANALYZE_DOCUMENT_JSON");
+
+ private String value;
+
+ private DocumentType(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return value;
+ }
+
+ private static final MapTABLES
- Returns information about any tables
+ * that are detected in the input document.
* FORMS
- Returns information and the data from any
+ * forms that are detected in the input document.
+ *
+ * Allowed Values: NATIVE_PDF, SCANNED_PDF, MS_WORD, IMAGE,
+ * PLAIN_TEXT, TEXTRACT_DETECT_DOCUMENT_TEXT_JSON,
+ * TEXTRACT_ANALYZE_DOCUMENT_JSON
+ */
+ private String type;
+
+ /**
+ *
+ * Allowed Values: NATIVE_PDF, SCANNED_PDF, MS_WORD, IMAGE,
+ * PLAIN_TEXT, TEXTRACT_DETECT_DOCUMENT_TEXT_JSON,
+ * TEXTRACT_ANALYZE_DOCUMENT_JSON
+ *
+ * @return
+ * Allowed Values: NATIVE_PDF, SCANNED_PDF, MS_WORD, IMAGE,
+ * PLAIN_TEXT, TEXTRACT_DETECT_DOCUMENT_TEXT_JSON,
+ * TEXTRACT_ANALYZE_DOCUMENT_JSON
+ *
+ * @param type
+ * Allowed Values: NATIVE_PDF, SCANNED_PDF, MS_WORD, IMAGE,
+ * PLAIN_TEXT, TEXTRACT_DETECT_DOCUMENT_TEXT_JSON,
+ * TEXTRACT_ANALYZE_DOCUMENT_JSON
+ *
+ * @param type
+ * Allowed Values: NATIVE_PDF, SCANNED_PDF, MS_WORD, IMAGE,
+ * PLAIN_TEXT, TEXTRACT_DETECT_DOCUMENT_TEXT_JSON,
+ * TEXTRACT_ANALYZE_DOCUMENT_JSON
+ *
+ * @param type
+ * Allowed Values: NATIVE_PDF, SCANNED_PDF, MS_WORD, IMAGE,
+ * PLAIN_TEXT, TEXTRACT_DETECT_DOCUMENT_TEXT_JSON,
+ * TEXTRACT_ANALYZE_DOCUMENT_JSON
+ *
+ * @param type arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -55,7 +56,8 @@ public class DominantLanguageDetectionJobProperties implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -123,8 +125,8 @@ public class DominantLanguageDetectionJobProperties implements Serializable {
/**
*
@@ -135,10 +137,10 @@ public class DominantLanguageDetectionJobProperties implements Serializable {
/**
*
*
arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -251,13 +254,14 @@ public DominantLanguageDetectionJobProperties withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -276,8 +280,9 @@ public String getJobArn() {
/**
* arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -294,13 +299,15 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -319,8 +326,9 @@ public void setJobArn(String jobArn) {
/**
* arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -340,13 +348,15 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -794,8 +804,8 @@ public DominantLanguageDetectionJobProperties withOutputDataConfig(
/**
*
@@ -803,8 +813,8 @@ public DominantLanguageDetectionJobProperties withOutputDataConfig(
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -822,8 +832,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*
@@ -155,6 +155,19 @@ public class EndpointProperties implements Serializable {
*/
private String desiredDataAccessRoleArn;
+ /**
+ *
+ * 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;
+
/**
*
@@ -780,10 +793,9 @@ public EndpointProperties withLastModifiedTime(java.util.Date lastModifiedTime)
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -802,10 +814,9 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>
@@ -55,7 +56,8 @@ public class EntitiesDetectionJobProperties implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -146,8 +148,8 @@ public class EntitiesDetectionJobProperties implements Serializable {
/**
*
@@ -158,10 +160,10 @@ public class EntitiesDetectionJobProperties implements Serializable {
/**
*
*
+ * 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;
+
/**
* arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>
@@ -272,13 +288,14 @@ public EntitiesDetectionJobProperties withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>
@@ -297,8 +314,9 @@ public String getJobArn() {
/**
* arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>
@@ -315,13 +333,14 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>
@@ -340,8 +359,9 @@ public void setJobArn(String jobArn) {
/**
* arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>
@@ -361,13 +381,14 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:entities-detection-job/<job-id>
@@ -973,8 +994,8 @@ public EntitiesDetectionJobProperties withLanguageCode(LanguageCode languageCode
/**
*
@@ -982,8 +1003,8 @@ public EntitiesDetectionJobProperties withLanguageCode(LanguageCode languageCode
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -1001,8 +1022,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
@@ -59,6 +64,9 @@ public class Entity implements Serializable {
* The zero-based offset from the beginning of the source text to the first
* character in the entity.
*
@@ -131,7 +155,14 @@ public Entity withScore(Float score) {
* EVENT, DATE, QUANTITY, TITLE, OTHER
*
* @return
@@ -149,7 +185,14 @@ public String getType() {
* EVENT, DATE, QUANTITY, TITLE, OTHER
*
* @param type
@@ -191,7 +251,14 @@ public Entity withType(String type) {
* EVENT, DATE, QUANTITY, TITLE, OTHER
*
* @param type
+ * This field is empty for non-text input. + *
* * @return* The zero-based offset from the beginning of the source text to * the last character in the entity. *
+ *+ * This field is empty for non-text input. + *
*/ public Integer getEndOffset() { return endOffset; @@ -348,11 +451,17 @@ public Integer getEndOffset() { * The zero-based offset from the beginning of the source text to the last * character in the entity. * + *+ * This field is empty for non-text input. + *
* * @param endOffset* The zero-based offset from the beginning of the source text to * the last character in the entity. *
+ *+ * This field is empty for non-text input. + *
*/ public void setEndOffset(Integer endOffset) { this.endOffset = endOffset; @@ -364,6 +473,9 @@ public void setEndOffset(Integer endOffset) { * character in the entity. * *+ * This field is empty for non-text input. + *
+ ** Returns a reference to this object so that method calls can be chained * together. * @@ -371,6 +483,9 @@ public void setEndOffset(Integer endOffset) { * The zero-based offset from the beginning of the source text to * the last character in the entity. *
+ *+ * This field is empty for non-text input. + *
* @return A reference to this updated object so that method calls can be * chained together. */ @@ -379,6 +494,88 @@ public Entity withEndOffset(Integer endOffset) { return this; } + /** + *+ * A reference to each block for this entity. This field is empty for + * plain-text input. + *
+ * + * @return+ * A reference to each block for this entity. This field is empty + * for plain-text input. + *
+ */ + public java.util.List+ * A reference to each block for this entity. This field is empty for + * plain-text input. + *
+ * + * @param blockReferences+ * A reference to each block for this entity. This field is empty + * for plain-text input. + *
+ */ + public void setBlockReferences(java.util.Collection+ * A reference to each block for this entity. This field is empty for + * plain-text input. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param blockReferences
+ * A reference to each block for this entity. This field is empty + * for plain-text input. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Entity withBlockReferences(BlockReference... blockReferences) { + if (getBlockReferences() == null) { + this.blockReferences = new java.util.ArrayList+ * A reference to each block for this entity. This field is empty for + * plain-text input. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param blockReferences
+ * A reference to each block for this entity. This field is empty + * for plain-text input. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Entity withBlockReferences(java.util.Collection+ * Configuration required for an entity recognition model. + *
+ */ +public class EntityRecognitionConfig implements Serializable { + /** + *+ * Up to 25 entity types that the model is trained to recognize. + *
+ */ + private java.util.List+ * Up to 25 entity types that the model is trained to recognize. + *
+ * + * @return+ * Up to 25 entity types that the model is trained to recognize. + *
+ */ + public java.util.List+ * Up to 25 entity types that the model is trained to recognize. + *
+ * + * @param entityTypes+ * Up to 25 entity types that the model is trained to recognize. + *
+ */ + public void setEntityTypes(java.util.Collection+ * Up to 25 entity types that the model is trained to recognize. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param entityTypes
+ * Up to 25 entity types that the model is trained to recognize. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public EntityRecognitionConfig withEntityTypes(EntityTypesListItem... entityTypes) { + if (getEntityTypes() == null) { + this.entityTypes = new java.util.ArrayList+ * Up to 25 entity types that the model is trained to recognize. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param entityTypes
+ * Up to 25 entity types that the model is trained to recognize. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public EntityRecognitionConfig withEntityTypes( + java.util.Collection* Specifies the Amazon S3 location where the annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -39,7 +39,7 @@ public class EntityRecognizerAnnotations implements Serializable { /** *
* Specifies the Amazon S3 location where the test annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -52,7 +52,7 @@ public class EntityRecognizerAnnotations implements Serializable { /** *
* Specifies the Amazon S3 location where the annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -62,7 +62,7 @@ public class EntityRecognizerAnnotations implements Serializable { * * @return
* Specifies the Amazon S3 location where the annotations for an - * entity recognizer are located. The URI must be in the same region + * entity recognizer are located. The URI must be in the same Region * as the API endpoint that you are calling. *
*/ @@ -73,7 +73,7 @@ public String getS3Uri() { /** ** Specifies the Amazon S3 location where the annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -84,7 +84,7 @@ public String getS3Uri() { * @param s3Uri
* Specifies the Amazon S3 location where the annotations for an * entity recognizer are located. The URI must be in the same - * region as the API endpoint that you are calling. + * Region as the API endpoint that you are calling. *
*/ public void setS3Uri(String s3Uri) { @@ -94,7 +94,7 @@ public void setS3Uri(String s3Uri) { /** ** Specifies the Amazon S3 location where the annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -108,7 +108,7 @@ public void setS3Uri(String s3Uri) { * @param s3Uri
* Specifies the Amazon S3 location where the annotations for an * entity recognizer are located. The URI must be in the same - * region as the API endpoint that you are calling. + * Region as the API endpoint that you are calling. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -121,7 +121,7 @@ public EntityRecognizerAnnotations withS3Uri(String s3Uri) { /** ** Specifies the Amazon S3 location where the test annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -132,7 +132,7 @@ public EntityRecognizerAnnotations withS3Uri(String s3Uri) { * @return
* Specifies the Amazon S3 location where the test annotations for * an entity recognizer are located. The URI must be in the same - * region as the API endpoint that you are calling. + * Region as the API endpoint that you are calling. *
*/ public String getTestS3Uri() { @@ -142,7 +142,7 @@ public String getTestS3Uri() { /** ** Specifies the Amazon S3 location where the test annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -153,7 +153,7 @@ public String getTestS3Uri() { * @param testS3Uri
* Specifies the Amazon S3 location where the test annotations * for an entity recognizer are located. The URI must be in the - * same region as the API endpoint that you are calling. + * same Region as the API endpoint that you are calling. *
*/ public void setTestS3Uri(String testS3Uri) { @@ -163,7 +163,7 @@ public void setTestS3Uri(String testS3Uri) { /** ** Specifies the Amazon S3 location where the test annotations for an entity - * recognizer are located. The URI must be in the same region as the API + * recognizer are located. The URI must be in the same Region as the API * endpoint that you are calling. *
*@@ -177,7 +177,7 @@ public void setTestS3Uri(String testS3Uri) { * @param testS3Uri
* Specifies the Amazon S3 location where the test annotations * for an entity recognizer are located. The URI must be in the - * same region as the API endpoint that you are calling. + * same Region as the API endpoint that you are calling. *
* @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/EntityRecognizerDataFormat.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerDataFormat.java index 8d529fd13bc..85a6112684d 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerDataFormat.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerDataFormat.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/EntityRecognizerDocuments.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerDocuments.java index 8c1cf781fc3..00681a907dc 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerDocuments.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerDocuments.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. @@ -26,7 +26,7 @@ public class EntityRecognizerDocuments implements Serializable { /** ** Specifies the Amazon S3 location where the training documents for an - * entity recognizer are located. The URI must be in the same region as the + * entity recognizer are located. The URI must be in the same Region as the * API endpoint that you are calling. *
*@@ -39,8 +39,8 @@ public class EntityRecognizerDocuments implements Serializable { /** *
* Specifies the Amazon S3 location where the test documents for an entity - * recognizer are located. The URI must be in the same AWS Region as the API - * endpoint that you are calling. + * recognizer are located. The URI must be in the same Amazon Web Services + * Region as the API endpoint that you are calling. *
*
* Constraints:
@@ -68,7 +68,7 @@ public class EntityRecognizerDocuments implements Serializable {
/**
*
* Specifies the Amazon S3 location where the training documents for an - * entity recognizer are located. The URI must be in the same region as the + * entity recognizer are located. The URI must be in the same Region as the * API endpoint that you are calling. *
*@@ -79,7 +79,7 @@ public class EntityRecognizerDocuments implements Serializable { * @return
* Specifies the Amazon S3 location where the training documents for * an entity recognizer are located. The URI must be in the same - * region as the API endpoint that you are calling. + * Region as the API endpoint that you are calling. *
*/ public String getS3Uri() { @@ -89,7 +89,7 @@ public String getS3Uri() { /** ** Specifies the Amazon S3 location where the training documents for an - * entity recognizer are located. The URI must be in the same region as the + * entity recognizer are located. The URI must be in the same Region as the * API endpoint that you are calling. *
*@@ -100,7 +100,7 @@ public String getS3Uri() { * @param s3Uri
* Specifies the Amazon S3 location where the training documents * for an entity recognizer are located. The URI must be in the - * same region as the API endpoint that you are calling. + * same Region as the API endpoint that you are calling. *
*/ public void setS3Uri(String s3Uri) { @@ -110,7 +110,7 @@ public void setS3Uri(String s3Uri) { /** ** Specifies the Amazon S3 location where the training documents for an - * entity recognizer are located. The URI must be in the same region as the + * entity recognizer are located. The URI must be in the same Region as the * API endpoint that you are calling. *
*@@ -124,7 +124,7 @@ public void setS3Uri(String s3Uri) { * @param s3Uri
* Specifies the Amazon S3 location where the training documents * for an entity recognizer are located. The URI must be in the - * same region as the API endpoint that you are calling. + * same Region as the API endpoint that you are calling. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -137,8 +137,8 @@ public EntityRecognizerDocuments withS3Uri(String s3Uri) { /** ** Specifies the Amazon S3 location where the test documents for an entity - * recognizer are located. The URI must be in the same AWS Region as the API - * endpoint that you are calling. + * recognizer are located. The URI must be in the same Amazon Web Services + * Region as the API endpoint that you are calling. *
*
* Constraints:
@@ -147,8 +147,8 @@ public EntityRecognizerDocuments withS3Uri(String s3Uri) {
*
* @return
* Specifies the Amazon S3 location where the test documents for an - * entity recognizer are located. The URI must be in the same AWS - * Region as the API endpoint that you are calling. + * entity recognizer are located. The URI must be in the same Amazon + * Web Services Region as the API endpoint that you are calling. *
*/ public String getTestS3Uri() { @@ -158,8 +158,8 @@ public String getTestS3Uri() { /** ** Specifies the Amazon S3 location where the test documents for an entity - * recognizer are located. The URI must be in the same AWS Region as the API - * endpoint that you are calling. + * recognizer are located. The URI must be in the same Amazon Web Services + * Region as the API endpoint that you are calling. *
*
* Constraints:
@@ -169,7 +169,8 @@ public String getTestS3Uri() {
* @param testS3Uri
* Specifies the Amazon S3 location where the test documents for * an entity recognizer are located. The URI must be in the same - * AWS Region as the API endpoint that you are calling. + * Amazon Web Services Region as the API endpoint that you are + * calling. *
*/ public void setTestS3Uri(String testS3Uri) { @@ -179,8 +180,8 @@ public void setTestS3Uri(String testS3Uri) { /** ** Specifies the Amazon S3 location where the test documents for an entity - * recognizer are located. The URI must be in the same AWS Region as the API - * endpoint that you are calling. + * recognizer are located. The URI must be in the same Amazon Web Services + * Region as the API endpoint that you are calling. *
** Returns a reference to this object so that method calls can be chained @@ -193,7 +194,8 @@ public void setTestS3Uri(String testS3Uri) { * @param testS3Uri
* Specifies the Amazon S3 location where the test documents for * an entity recognizer are located. The URI must be in the same - * AWS Region as the API endpoint that you are calling. + * Amazon Web Services Region as the API endpoint that you are + * calling. *
* @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/EntityRecognizerEntityList.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerEntityList.java index 8779106afb8..f8dbe960bd7 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerEntityList.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerEntityList.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. @@ -19,14 +19,14 @@ /** *- * Describes the entity recognizer submitted with an entity recognizer. + * Describes the entity list submitted with an entity recognizer. *
*/ public class EntityRecognizerEntityList implements Serializable { /** ** Specifies the Amazon S3 location where the entity list is located. The - * URI must be in the same region as the API endpoint that you are calling. + * URI must be in the same Region as the API endpoint that you are calling. *
*
* Constraints:
@@ -38,7 +38,7 @@ public class EntityRecognizerEntityList implements Serializable {
/**
*
* Specifies the Amazon S3 location where the entity list is located. The - * URI must be in the same region as the API endpoint that you are calling. + * URI must be in the same Region as the API endpoint that you are calling. *
*
* Constraints:
@@ -47,7 +47,7 @@ public class EntityRecognizerEntityList implements Serializable {
*
* @return
* Specifies the Amazon S3 location where the entity list is - * located. The URI must be in the same region as the API endpoint + * located. The URI must be in the same Region as the API endpoint * that you are calling. *
*/ @@ -58,7 +58,7 @@ public String getS3Uri() { /** ** Specifies the Amazon S3 location where the entity list is located. The - * URI must be in the same region as the API endpoint that you are calling. + * URI must be in the same Region as the API endpoint that you are calling. *
*
* Constraints:
@@ -67,7 +67,7 @@ public String getS3Uri() {
*
* @param s3Uri
* Specifies the Amazon S3 location where the entity list is - * located. The URI must be in the same region as the API + * located. The URI must be in the same Region as the API * endpoint that you are calling. *
*/ @@ -78,7 +78,7 @@ public void setS3Uri(String s3Uri) { /** ** Specifies the Amazon S3 location where the entity list is located. The - * URI must be in the same region as the API endpoint that you are calling. + * URI must be in the same Region as the API endpoint that you are calling. *
** Returns a reference to this object so that method calls can be chained @@ -90,7 +90,7 @@ public void setS3Uri(String s3Uri) { * * @param s3Uri
* Specifies the Amazon S3 location where the entity list is - * located. The URI must be in the same region as the API + * located. The URI must be in the same Region as the API * endpoint that you are calling. *
* @return A reference to this updated object so that method calls can be diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerEvaluationMetrics.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerEvaluationMetrics.java index a5e1e25ab44..53a1a0d983e 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerEvaluationMetrics.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerEvaluationMetrics.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/EntityRecognizerFilter.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerFilter.java index 4606f797262..0d942e5d700 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerFilter.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerFilter.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. @@ -21,7 +21,7 @@ *
* Provides information for filtering a list of entity recognizers. You can only
* specify one filtering parameter in a request. For more information, see the
- * operation./>
+ * ListEntityRecognizers
operation./>
*
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*/
private String status;
@@ -72,7 +72,7 @@ public class EntityRecognizerFilter implements Serializable {
*
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @return
* The status of an entity recognizer. @@ -90,7 +90,7 @@ public String getStatus() { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* The status of an entity recognizer. @@ -111,7 +111,7 @@ public void setStatus(String status) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* The status of an entity recognizer. @@ -132,7 +132,7 @@ public EntityRecognizerFilter withStatus(String status) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* The status of an entity recognizer. @@ -153,7 +153,7 @@ public void setStatus(ModelStatus status) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* The status of an entity recognizer. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerInputDataConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerInputDataConfig.java index 1fa0efb4363..1a0212edc4f 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerInputDataConfig.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerInputDataConfig.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/EntityRecognizerMetadata.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadata.java index 0575f5cca1c..0ed5b0d701d 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadata.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadata.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/EntityRecognizerMetadataEntityTypesListItem.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadataEntityTypesListItem.java index bac0a39646f..60b18a74f78 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadataEntityTypesListItem.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadataEntityTypesListItem.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/EntityRecognizerOutputDataConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerOutputDataConfig.java new file mode 100644 index 00000000000..2dd04f7ae61 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerOutputDataConfig.java @@ -0,0 +1,147 @@ +/* + * 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; + +/** + *
+ * Output data configuration. + *
+ */ +public class EntityRecognizerOutputDataConfig implements Serializable { + /** + *+ * The Amazon S3 prefix for the data lake location of the flywheel + * statistics. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String flywheelStatsS3Prefix;
+
+ /**
+ *
+ * The Amazon S3 prefix for the data lake location of the flywheel + * statistics. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * The Amazon S3 prefix for the data lake location of the flywheel + * statistics. + *
+ */ + public String getFlywheelStatsS3Prefix() { + return flywheelStatsS3Prefix; + } + + /** + *+ * The Amazon S3 prefix for the data lake location of the flywheel + * statistics. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param flywheelStatsS3Prefix
+ * The Amazon S3 prefix for the data lake location of the + * flywheel statistics. + *
+ */ + public void setFlywheelStatsS3Prefix(String flywheelStatsS3Prefix) { + this.flywheelStatsS3Prefix = flywheelStatsS3Prefix; + } + + /** + *+ * The Amazon S3 prefix for the data lake location of the flywheel + * statistics. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param flywheelStatsS3Prefix
+ * The Amazon S3 prefix for the data lake location of the + * flywheel statistics. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public EntityRecognizerOutputDataConfig withFlywheelStatsS3Prefix(String flywheelStatsS3Prefix) { + this.flywheelStatsS3Prefix = flywheelStatsS3Prefix; + 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 (getFlywheelStatsS3Prefix() != null) + sb.append("FlywheelStatsS3Prefix: " + getFlywheelStatsS3Prefix()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getFlywheelStatsS3Prefix() == null) ? 0 : getFlywheelStatsS3Prefix().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EntityRecognizerOutputDataConfig == false) + return false; + EntityRecognizerOutputDataConfig other = (EntityRecognizerOutputDataConfig) obj; + + if (other.getFlywheelStatsS3Prefix() == null ^ this.getFlywheelStatsS3Prefix() == null) + return false; + if (other.getFlywheelStatsS3Prefix() != null + && other.getFlywheelStatsS3Prefix().equals(this.getFlywheelStatsS3Prefix()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerProperties.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerProperties.java index ca628c48ee7..19cc89bed6d 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerProperties.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerProperties.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. @@ -55,7 +55,7 @@ public class EntityRecognizerProperties implements Serializable { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*/
private String status;
@@ -110,8 +110,8 @@ public class EntityRecognizerProperties implements Serializable {
/**
*
- * 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:
@@ -122,10 +122,10 @@ public class EntityRecognizerProperties implements Serializable {
/**
*
- * 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: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
** The Amazon Resource Name (ARN) of the source model. This model was - * imported from a different AWS account to create the entity recognizer - * model in your AWS account. + * imported from a different Amazon Web Services account to create the + * entity recognizer model in your Amazon Web Services account. *
*
* Constraints:
@@ -211,6 +210,26 @@ public class EntityRecognizerProperties implements Serializable {
*/
private String sourceModelArn;
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *
+ * 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;
+
+ /**
+ *
+ * Output data configuration. + *
+ */ + private EntityRecognizerOutputDataConfig outputDataConfig; + /** ** The Amazon Resource Name (ARN) that identifies the entity recognizer. @@ -394,7 +413,7 @@ public EntityRecognizerProperties withLanguageCode(LanguageCode languageCode) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @return
* Provides the status of the entity recognizer. @@ -412,7 +431,7 @@ public String getStatus() { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* Provides the status of the entity recognizer. @@ -433,7 +452,7 @@ public void setStatus(String status) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* Provides the status of the entity recognizer. @@ -454,7 +473,7 @@ public EntityRecognizerProperties withStatus(String status) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* Provides the status of the entity recognizer. @@ -475,7 +494,7 @@ public void setStatus(ModelStatus status) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param status
* Provides the status of the entity recognizer. @@ -808,8 +827,8 @@ public EntityRecognizerProperties withRecognizerMetadata( /** *
- * 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:
@@ -817,9 +836,8 @@ public EntityRecognizerProperties withRecognizerMetadata(
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
- * 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. *
*/ public String getDataAccessRoleArn() { @@ -828,8 +846,8 @@ public String getDataAccessRoleArn() { /** *- * 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:
@@ -837,9 +855,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * 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. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { @@ -848,8 +865,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) { /** *- * 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. *
*
* Returns a reference to this object so that method calls can be chained
@@ -860,9 +877,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -874,10 +890,10 @@ public EntityRecognizerProperties withDataAccessRoleArn(String dataAccessRoleArn /** *- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained + * custom models. The ModelKmsKeyId can be either of the following + * formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
** The Amazon Resource Name (ARN) of the source model. This model was - * imported from a different AWS account to create the entity recognizer - * model in your AWS account. + * imported from a different Amazon Web Services account to create the + * entity recognizer model in your Amazon Web Services account. *
*
* Constraints:
@@ -1318,8 +1333,9 @@ public EntityRecognizerProperties withVersionName(String versionName) {
*
* @return
* The Amazon Resource Name (ARN) of the source model. This model - * was imported from a different AWS account to create the entity - * recognizer model in your AWS account. + * was imported from a different Amazon Web Services account to + * create the entity recognizer model in your Amazon Web Services + * account. *
*/ public String getSourceModelArn() { @@ -1329,8 +1345,8 @@ public String getSourceModelArn() { /** ** The Amazon Resource Name (ARN) of the source model. This model was - * imported from a different AWS account to create the entity recognizer - * model in your AWS account. + * imported from a different Amazon Web Services account to create the + * entity recognizer model in your Amazon Web Services account. *
*
* Constraints:
@@ -1342,8 +1358,9 @@ public String getSourceModelArn() {
*
* @param sourceModelArn
* The Amazon Resource Name (ARN) of the source model. This model - * was imported from a different AWS account to create the entity - * recognizer model in your AWS account. + * was imported from a different Amazon Web Services account to + * create the entity recognizer model in your Amazon Web Services + * account. *
*/ public void setSourceModelArn(String sourceModelArn) { @@ -1353,8 +1370,8 @@ public void setSourceModelArn(String sourceModelArn) { /** ** The Amazon Resource Name (ARN) of the source model. This model was - * imported from a different AWS account to create the entity recognizer - * model in your AWS account. + * imported from a different Amazon Web Services account to create the + * entity recognizer model in your Amazon Web Services account. *
** Returns a reference to this object so that method calls can be chained @@ -1369,8 +1386,9 @@ public void setSourceModelArn(String sourceModelArn) { * * @param sourceModelArn
* The Amazon Resource Name (ARN) of the source model. This model - * was imported from a different AWS account to create the entity - * recognizer model in your AWS account. + * was imported from a different Amazon Web Services account to + * create the entity recognizer model in your Amazon Web Services + * account. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -1380,6 +1398,115 @@ public EntityRecognizerProperties withSourceModelArn(String sourceModelArn) { return this; } + /** + *+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *
+ * 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 + *
+ */ + public String getFlywheelArn() { + return flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *
+ * 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 + *
+ */ + public void setFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *+ * 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 + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public EntityRecognizerProperties withFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + return this; + } + + /** + *+ * Output data configuration. + *
+ * + * @return+ * Output data configuration. + *
+ */ + public EntityRecognizerOutputDataConfig getOutputDataConfig() { + return outputDataConfig; + } + + /** + *+ * Output data configuration. + *
+ * + * @param outputDataConfig+ * Output data configuration. + *
+ */ + public void setOutputDataConfig(EntityRecognizerOutputDataConfig outputDataConfig) { + this.outputDataConfig = outputDataConfig; + } + + /** + *+ * Output data configuration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param outputDataConfig
+ * Output data configuration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public EntityRecognizerProperties withOutputDataConfig( + EntityRecognizerOutputDataConfig outputDataConfig) { + this.outputDataConfig = outputDataConfig; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -1422,7 +1549,11 @@ public String toString() { if (getVersionName() != null) sb.append("VersionName: " + getVersionName() + ","); if (getSourceModelArn() != null) - sb.append("SourceModelArn: " + getSourceModelArn()); + sb.append("SourceModelArn: " + getSourceModelArn() + ","); + if (getFlywheelArn() != null) + sb.append("FlywheelArn: " + getFlywheelArn() + ","); + if (getOutputDataConfig() != null) + sb.append("OutputDataConfig: " + getOutputDataConfig()); sb.append("}"); return sb.toString(); } @@ -1459,6 +1590,10 @@ public int hashCode() { + ((getVersionName() == null) ? 0 : getVersionName().hashCode()); hashCode = prime * hashCode + ((getSourceModelArn() == null) ? 0 : getSourceModelArn().hashCode()); + hashCode = prime * hashCode + + ((getFlywheelArn() == null) ? 0 : getFlywheelArn().hashCode()); + hashCode = prime * hashCode + + ((getOutputDataConfig() == null) ? 0 : getOutputDataConfig().hashCode()); return hashCode; } @@ -1550,6 +1685,16 @@ public boolean equals(Object obj) { if (other.getSourceModelArn() != null && other.getSourceModelArn().equals(this.getSourceModelArn()) == false) return false; + if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) + return false; + if (other.getFlywheelArn() != null + && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) + return false; + if (other.getOutputDataConfig() == null ^ this.getOutputDataConfig() == null) + return false; + if (other.getOutputDataConfig() != null + && other.getOutputDataConfig().equals(this.getOutputDataConfig()) == false) + return false; return true; } } diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerSummary.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerSummary.java index 3d07d0b55d8..6e85881c8b5 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerSummary.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerSummary.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. @@ -67,7 +67,7 @@ public class EntityRecognizerSummary implements Serializable { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*/
private String latestVersionStatus;
@@ -291,7 +291,7 @@ public EntityRecognizerSummary withLatestVersionName(String latestVersionName) {
*
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @return
* Provides the status of the latest entity recognizer version. @@ -309,7 +309,7 @@ public String getLatestVersionStatus() { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus
* Provides the status of the latest entity recognizer version. @@ -330,7 +330,7 @@ public void setLatestVersionStatus(String latestVersionStatus) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus
* Provides the status of the latest entity recognizer version. @@ -351,7 +351,7 @@ public EntityRecognizerSummary withLatestVersionStatus(String latestVersionStatu *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus
* Provides the status of the latest entity recognizer version. @@ -372,7 +372,7 @@ public void setLatestVersionStatus(ModelStatus latestVersionStatus) { *
* Constraints:
* Allowed Values: SUBMITTED, TRAINING, DELETING, STOP_REQUESTED,
- * STOPPED, IN_ERROR, TRAINED
+ * STOPPED, IN_ERROR, TRAINED, TRAINED_WITH_WARNING
*
* @param latestVersionStatus
* Provides the status of the latest entity recognizer version. diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityType.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityType.java index d778eee84c3..f4766ad281a 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityType.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityType.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/EntityTypesEvaluationMetrics.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityTypesEvaluationMetrics.java index 2d27dcfea89..94e00f773d7 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityTypesEvaluationMetrics.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityTypesEvaluationMetrics.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/EntityTypesListItem.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityTypesListItem.java index 428c4c2b0fb..642c3b9461e 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityTypesListItem.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityTypesListItem.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/ErrorsListItem.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ErrorsListItem.java new file mode 100644 index 00000000000..e75a0ff1ab9 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ErrorsListItem.java @@ -0,0 +1,361 @@ +/* + * 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; + +/** + *
+ * Text extraction encountered one or more page-level errors in the input + * document. + *
+ *
+ * The ErrorCode
contains one of the following values:
+ *
+ * TEXTRACT_BAD_PAGE - Amazon Textract cannot read the page. For more + * information about page limits in Amazon Textract, see + * Page Quotas in Amazon Textract. + *
+ *+ * TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED - The number of requests exceeded + * your throughput limit. For more information about throughput quotas in Amazon + * Textract, see Default quotas in Amazon Textract. + *
+ *+ * PAGE_CHARACTERS_EXCEEDED - Too many text characters on the page (10,000 + * characters maximum). + *
+ *+ * PAGE_SIZE_EXCEEDED - The maximum page size is 10 MB. + *
+ *+ * INTERNAL_SERVER_ERROR - The request encountered a service issue. Try the API + * request again. + *
+ *+ * Page number where the error occurred. + *
+ */ + private Integer page; + + /** + *+ * Error code for the cause of the error. + *
+ *
+ * Constraints:
+ * Allowed Values: TEXTRACT_BAD_PAGE,
+ * TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED, PAGE_CHARACTERS_EXCEEDED,
+ * PAGE_SIZE_EXCEEDED, INTERNAL_SERVER_ERROR
+ */
+ private String errorCode;
+
+ /**
+ *
+ * Text message explaining the reason for the error. + *
+ *
+ * Constraints:
+ * Length: 1 -
+ */
+ private String errorMessage;
+
+ /**
+ *
+ * Page number where the error occurred. + *
+ * + * @return+ * Page number where the error occurred. + *
+ */ + public Integer getPage() { + return page; + } + + /** + *+ * Page number where the error occurred. + *
+ * + * @param page+ * Page number where the error occurred. + *
+ */ + public void setPage(Integer page) { + this.page = page; + } + + /** + *+ * Page number where the error occurred. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param page
+ * Page number where the error occurred. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ErrorsListItem withPage(Integer page) { + this.page = page; + return this; + } + + /** + *+ * Error code for the cause of the error. + *
+ *
+ * Constraints:
+ * Allowed Values: TEXTRACT_BAD_PAGE,
+ * TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED, PAGE_CHARACTERS_EXCEEDED,
+ * PAGE_SIZE_EXCEEDED, INTERNAL_SERVER_ERROR
+ *
+ * @return
+ * Error code for the cause of the error. + *
+ * @see PageBasedErrorCode + */ + public String getErrorCode() { + return errorCode; + } + + /** + *+ * Error code for the cause of the error. + *
+ *
+ * Constraints:
+ * Allowed Values: TEXTRACT_BAD_PAGE,
+ * TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED, PAGE_CHARACTERS_EXCEEDED,
+ * PAGE_SIZE_EXCEEDED, INTERNAL_SERVER_ERROR
+ *
+ * @param errorCode
+ * Error code for the cause of the error. + *
+ * @see PageBasedErrorCode + */ + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + /** + *+ * Error code for the cause of the error. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TEXTRACT_BAD_PAGE,
+ * TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED, PAGE_CHARACTERS_EXCEEDED,
+ * PAGE_SIZE_EXCEEDED, INTERNAL_SERVER_ERROR
+ *
+ * @param errorCode
+ * Error code for the cause of the error. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see PageBasedErrorCode + */ + public ErrorsListItem withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + *+ * Error code for the cause of the error. + *
+ *
+ * Constraints:
+ * Allowed Values: TEXTRACT_BAD_PAGE,
+ * TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED, PAGE_CHARACTERS_EXCEEDED,
+ * PAGE_SIZE_EXCEEDED, INTERNAL_SERVER_ERROR
+ *
+ * @param errorCode
+ * Error code for the cause of the error. + *
+ * @see PageBasedErrorCode + */ + public void setErrorCode(PageBasedErrorCode errorCode) { + this.errorCode = errorCode.toString(); + } + + /** + *+ * Error code for the cause of the error. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TEXTRACT_BAD_PAGE,
+ * TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED, PAGE_CHARACTERS_EXCEEDED,
+ * PAGE_SIZE_EXCEEDED, INTERNAL_SERVER_ERROR
+ *
+ * @param errorCode
+ * Error code for the cause of the error. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see PageBasedErrorCode + */ + public ErrorsListItem withErrorCode(PageBasedErrorCode errorCode) { + this.errorCode = errorCode.toString(); + return this; + } + + /** + *+ * Text message explaining the reason for the error. + *
+ *
+ * Constraints:
+ * Length: 1 -
+ *
+ * @return
+ * Text message explaining the reason for the error. + *
+ */ + public String getErrorMessage() { + return errorMessage; + } + + /** + *+ * Text message explaining the reason for the error. + *
+ *
+ * Constraints:
+ * Length: 1 -
+ *
+ * @param errorMessage
+ * Text message explaining the reason for the error. + *
+ */ + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + /** + *+ * Text message explaining the reason for the error. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 1 -
+ *
+ * @param errorMessage
+ * Text message explaining the reason for the error. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ErrorsListItem withErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + 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 (getPage() != null) + sb.append("Page: " + getPage() + ","); + if (getErrorCode() != null) + sb.append("ErrorCode: " + getErrorCode() + ","); + if (getErrorMessage() != null) + sb.append("ErrorMessage: " + getErrorMessage()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getPage() == null) ? 0 : getPage().hashCode()); + hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); + hashCode = prime * hashCode + + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ErrorsListItem == false) + return false; + ErrorsListItem other = (ErrorsListItem) obj; + + if (other.getPage() == null ^ this.getPage() == null) + return false; + if (other.getPage() != null && other.getPage().equals(this.getPage()) == false) + return false; + if (other.getErrorCode() == null ^ this.getErrorCode() == null) + return false; + if (other.getErrorCode() != null + && other.getErrorCode().equals(this.getErrorCode()) == false) + return false; + if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) + return false; + if (other.getErrorMessage() != null + && other.getErrorMessage().equals(this.getErrorMessage()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EventsDetectionJobFilter.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EventsDetectionJobFilter.java index e56ac518667..d526d969aba 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EventsDetectionJobFilter.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EventsDetectionJobFilter.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/EventsDetectionJobProperties.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EventsDetectionJobProperties.java index 0d0ebe5e774..83327ab825a 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EventsDetectionJobProperties.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EventsDetectionJobProperties.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. @@ -37,8 +37,9 @@ public class EventsDetectionJobProperties implements Serializable { /** ** The Amazon Resource Name (ARN) of the events detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>
@@ -55,7 +56,8 @@ public class EventsDetectionJobProperties implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -130,8 +132,8 @@ public class EventsDetectionJobProperties implements Serializable {
/**
*
- * The Amazon Resource Name (ARN) of the AWS Identify and Access 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:
@@ -207,8 +209,9 @@ public EventsDetectionJobProperties withJobId(String jobId) {
/**
*
* The Amazon Resource Name (ARN) of the events detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>
@@ -225,13 +228,14 @@ public EventsDetectionJobProperties withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return
* The Amazon Resource Name (ARN) of the events detection job. It is * a unique, fully qualified identifier for the job. It includes the - * AWS account, Region, and the job ID. The format of the ARN is as - * follows: + * Amazon Web Services account, Amazon Web Services Region, and the + * job ID. The format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>
@@ -250,8 +254,9 @@ public String getJobArn() {
/**
*
* The Amazon Resource Name (ARN) of the events detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>
@@ -268,13 +273,14 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* The Amazon Resource Name (ARN) of the events detection job. It * is a unique, fully qualified identifier for the job. It - * includes the AWS account, Region, and the job ID. The format - * of the ARN is as follows: + * includes the Amazon Web Services account, Amazon Web Services + * Region, and the job ID. The format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>
@@ -293,8 +299,9 @@ public void setJobArn(String jobArn) {
/**
*
* The Amazon Resource Name (ARN) of the events detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>
@@ -314,13 +321,14 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* The Amazon Resource Name (ARN) of the events detection job. It * is a unique, fully qualified identifier for the job. It - * includes the AWS account, Region, and the job ID. The format - * of the ARN is as follows: + * includes the Amazon Web Services account, Amazon Web Services + * Region, and the job ID. The format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:events-detection-job/<job-id>
@@ -837,8 +845,8 @@ public EventsDetectionJobProperties withLanguageCode(LanguageCode languageCode)
/**
*
- * The Amazon Resource Name (ARN) of the AWS Identify and Access 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:
@@ -846,9 +854,8 @@ public EventsDetectionJobProperties withLanguageCode(LanguageCode languageCode)
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
- * The Amazon Resource Name (ARN) of the AWS Identify and Access - * 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. *
*/ public String getDataAccessRoleArn() { @@ -857,8 +864,8 @@ public String getDataAccessRoleArn() { /** *- * The Amazon Resource Name (ARN) of the AWS Identify and Access 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:
@@ -866,9 +873,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) of the AWS Identify and Access - * 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. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { @@ -877,8 +883,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) { /** *- * The Amazon Resource Name (ARN) of the AWS Identify and Access 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. *
*
* Returns a reference to this object so that method calls can be chained
@@ -889,9 +895,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) of the AWS Identify and Access - * 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. *
* @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/ExtractedCharactersListItem.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ExtractedCharactersListItem.java new file mode 100644 index 00000000000..22524801997 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ExtractedCharactersListItem.java @@ -0,0 +1,180 @@ +/* + * 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; + +/** + *+ * Array of the number of characters extracted from each page. + *
+ */ +public class ExtractedCharactersListItem implements Serializable { + /** + *+ * Page number. + *
+ */ + private Integer page; + + /** + *+ * Number of characters extracted from each page. + *
+ */ + private Integer count; + + /** + *+ * Page number. + *
+ * + * @return+ * Page number. + *
+ */ + public Integer getPage() { + return page; + } + + /** + *+ * Page number. + *
+ * + * @param page+ * Page number. + *
+ */ + public void setPage(Integer page) { + this.page = page; + } + + /** + *+ * Page number. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param page
+ * Page number. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ExtractedCharactersListItem withPage(Integer page) { + this.page = page; + return this; + } + + /** + *+ * Number of characters extracted from each page. + *
+ * + * @return+ * Number of characters extracted from each page. + *
+ */ + public Integer getCount() { + return count; + } + + /** + *+ * Number of characters extracted from each page. + *
+ * + * @param count+ * Number of characters extracted from each page. + *
+ */ + public void setCount(Integer count) { + this.count = count; + } + + /** + *+ * Number of characters extracted from each page. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param count
+ * Number of characters extracted from each page. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ExtractedCharactersListItem withCount(Integer count) { + this.count = count; + 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 (getPage() != null) + sb.append("Page: " + getPage() + ","); + if (getCount() != null) + sb.append("Count: " + getCount()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getPage() == null) ? 0 : getPage().hashCode()); + hashCode = prime * hashCode + ((getCount() == null) ? 0 : getCount().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ExtractedCharactersListItem == false) + return false; + ExtractedCharactersListItem other = (ExtractedCharactersListItem) obj; + + if (other.getPage() == null ^ this.getPage() == null) + return false; + if (other.getPage() != null && other.getPage().equals(this.getPage()) == false) + return false; + if (other.getCount() == null ^ this.getCount() == null) + return false; + if (other.getCount() != null && other.getCount().equals(this.getCount()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelFilter.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelFilter.java new file mode 100644 index 00000000000..d0a916adf08 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelFilter.java @@ -0,0 +1,312 @@ +/* + * 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; + +/** + *+ * Filter the flywheels based on creation time or flywheel status. + *
+ */ +public class FlywheelFilter implements Serializable { + /** + *+ * Filter the flywheels based on the flywheel status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ */
+ private String status;
+
+ /**
+ *
+ * Filter the flywheels to include flywheels created after the specified + * time. + *
+ */ + private java.util.Date creationTimeAfter; + + /** + *+ * Filter the flywheels to include flywheels created before the specified + * time. + *
+ */ + private java.util.Date creationTimeBefore; + + /** + *+ * Filter the flywheels based on the flywheel status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @return
+ * Filter the flywheels based on the flywheel status. + *
+ * @see FlywheelStatus + */ + public String getStatus() { + return status; + } + + /** + *+ * Filter the flywheels based on the flywheel status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * Filter the flywheels based on the flywheel status. + *
+ * @see FlywheelStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *+ * Filter the flywheels based on the flywheel status. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * Filter the flywheels based on the flywheel status. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelStatus + */ + public FlywheelFilter withStatus(String status) { + this.status = status; + return this; + } + + /** + *+ * Filter the flywheels based on the flywheel status. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * Filter the flywheels based on the flywheel status. + *
+ * @see FlywheelStatus + */ + public void setStatus(FlywheelStatus status) { + this.status = status.toString(); + } + + /** + *+ * Filter the flywheels based on the flywheel status. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * Filter the flywheels based on the flywheel status. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelStatus + */ + public FlywheelFilter withStatus(FlywheelStatus status) { + this.status = status.toString(); + return this; + } + + /** + *+ * Filter the flywheels to include flywheels created after the specified + * time. + *
+ * + * @return+ * Filter the flywheels to include flywheels created after the + * specified time. + *
+ */ + public java.util.Date getCreationTimeAfter() { + return creationTimeAfter; + } + + /** + *+ * Filter the flywheels to include flywheels created after the specified + * time. + *
+ * + * @param creationTimeAfter+ * Filter the flywheels to include flywheels created after the + * specified time. + *
+ */ + public void setCreationTimeAfter(java.util.Date creationTimeAfter) { + this.creationTimeAfter = creationTimeAfter; + } + + /** + *+ * Filter the flywheels to include flywheels created after the specified + * time. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTimeAfter
+ * Filter the flywheels to include flywheels created after the + * specified time. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelFilter withCreationTimeAfter(java.util.Date creationTimeAfter) { + this.creationTimeAfter = creationTimeAfter; + return this; + } + + /** + *+ * Filter the flywheels to include flywheels created before the specified + * time. + *
+ * + * @return+ * Filter the flywheels to include flywheels created before the + * specified time. + *
+ */ + public java.util.Date getCreationTimeBefore() { + return creationTimeBefore; + } + + /** + *+ * Filter the flywheels to include flywheels created before the specified + * time. + *
+ * + * @param creationTimeBefore+ * Filter the flywheels to include flywheels created before the + * specified time. + *
+ */ + public void setCreationTimeBefore(java.util.Date creationTimeBefore) { + this.creationTimeBefore = creationTimeBefore; + } + + /** + *+ * Filter the flywheels to include flywheels created before the specified + * time. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTimeBefore
+ * Filter the flywheels to include flywheels created before the + * specified time. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelFilter withCreationTimeBefore(java.util.Date creationTimeBefore) { + this.creationTimeBefore = creationTimeBefore; + 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 (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getCreationTimeAfter() != null) + sb.append("CreationTimeAfter: " + getCreationTimeAfter() + ","); + if (getCreationTimeBefore() != null) + sb.append("CreationTimeBefore: " + getCreationTimeBefore()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode()); + hashCode = prime * hashCode + + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FlywheelFilter == false) + return false; + FlywheelFilter other = (FlywheelFilter) obj; + + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null) + return false; + if (other.getCreationTimeAfter() != null + && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == false) + return false; + if (other.getCreationTimeBefore() == null ^ this.getCreationTimeBefore() == null) + return false; + if (other.getCreationTimeBefore() != null + && other.getCreationTimeBefore().equals(this.getCreationTimeBefore()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationFilter.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationFilter.java new file mode 100644 index 00000000000..106e5cebb64 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationFilter.java @@ -0,0 +1,198 @@ +/* + * 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; + +/** + *+ * Filter the flywheel iterations based on creation time. + *
+ */ +public class FlywheelIterationFilter implements Serializable { + /** + *+ * Filter the flywheel iterations to include iterations created after the + * specified time. + *
+ */ + private java.util.Date creationTimeAfter; + + /** + *+ * Filter the flywheel iterations to include iterations created before the + * specified time. + *
+ */ + private java.util.Date creationTimeBefore; + + /** + *+ * Filter the flywheel iterations to include iterations created after the + * specified time. + *
+ * + * @return+ * Filter the flywheel iterations to include iterations created + * after the specified time. + *
+ */ + public java.util.Date getCreationTimeAfter() { + return creationTimeAfter; + } + + /** + *+ * Filter the flywheel iterations to include iterations created after the + * specified time. + *
+ * + * @param creationTimeAfter+ * Filter the flywheel iterations to include iterations created + * after the specified time. + *
+ */ + public void setCreationTimeAfter(java.util.Date creationTimeAfter) { + this.creationTimeAfter = creationTimeAfter; + } + + /** + *+ * Filter the flywheel iterations to include iterations created after the + * specified time. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTimeAfter
+ * Filter the flywheel iterations to include iterations created + * after the specified time. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationFilter withCreationTimeAfter(java.util.Date creationTimeAfter) { + this.creationTimeAfter = creationTimeAfter; + return this; + } + + /** + *+ * Filter the flywheel iterations to include iterations created before the + * specified time. + *
+ * + * @return+ * Filter the flywheel iterations to include iterations created + * before the specified time. + *
+ */ + public java.util.Date getCreationTimeBefore() { + return creationTimeBefore; + } + + /** + *+ * Filter the flywheel iterations to include iterations created before the + * specified time. + *
+ * + * @param creationTimeBefore+ * Filter the flywheel iterations to include iterations created + * before the specified time. + *
+ */ + public void setCreationTimeBefore(java.util.Date creationTimeBefore) { + this.creationTimeBefore = creationTimeBefore; + } + + /** + *+ * Filter the flywheel iterations to include iterations created before the + * specified time. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTimeBefore
+ * Filter the flywheel iterations to include iterations created + * before the specified time. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationFilter withCreationTimeBefore(java.util.Date creationTimeBefore) { + this.creationTimeBefore = creationTimeBefore; + 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 (getCreationTimeAfter() != null) + sb.append("CreationTimeAfter: " + getCreationTimeAfter() + ","); + if (getCreationTimeBefore() != null) + sb.append("CreationTimeBefore: " + getCreationTimeBefore()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode()); + hashCode = prime * hashCode + + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FlywheelIterationFilter == false) + return false; + FlywheelIterationFilter other = (FlywheelIterationFilter) obj; + + if (other.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null) + return false; + if (other.getCreationTimeAfter() != null + && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == false) + return false; + if (other.getCreationTimeBefore() == null ^ this.getCreationTimeBefore() == null) + return false; + if (other.getCreationTimeBefore() != null + && other.getCreationTimeBefore().equals(this.getCreationTimeBefore()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationProperties.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationProperties.java new file mode 100644 index 00000000000..ca95ea46533 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelIterationProperties.java @@ -0,0 +1,880 @@ +/* + * 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 configuration properties of a flywheel iteration. + *
+ */ +public class FlywheelIterationProperties implements Serializable { + /** + * + *
+ * 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;
+
+ /**
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ */
+ private String flywheelIterationId;
+
+ /**
+ *
+ * The creation start time of the flywheel iteration. + *
+ */ + private java.util.Date creationTime; + + /** + *+ * The completion time of this flywheel iteration. + *
+ */ + private java.util.Date endTime; + + /** + *+ * The status of the flywheel iteration. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAINING, EVALUATING, COMPLETED, FAILED,
+ * STOP_REQUESTED, STOPPED
+ */
+ private String status;
+
+ /**
+ *
+ * A description of the status of the flywheel iteration. + *
+ */ + private String message; + + /** + *+ * The ARN of the evaluated model associated with this flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String evaluatedModelArn;
+
+ /**
+ *
+ * The evaluation metrics associated with the evaluated model. + *
+ */ + private FlywheelModelEvaluationMetrics evaluatedModelMetrics; + + /** + *+ * The ARN of the trained model associated with this flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String trainedModelArn;
+
+ /**
+ *
+ * The metrics associated with the trained model. + *
+ */ + private FlywheelModelEvaluationMetrics trainedModelMetrics; + + /** + * + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String evaluationManifestS3Prefix;
+
+ /**
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * 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
+ * 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
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @return
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param flywheelIterationId
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param flywheelIterationId
+ * The creation start time of the flywheel iteration. + *
+ * + * @return+ * The creation start time of the flywheel iteration. + *
+ */ + public java.util.Date getCreationTime() { + return creationTime; + } + + /** + *+ * The creation start time of the flywheel iteration. + *
+ * + * @param creationTime+ * The creation start time of the flywheel iteration. + *
+ */ + public void setCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + } + + /** + *+ * The creation start time of the flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTime
+ * The creation start time of the flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationProperties withCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + *+ * The completion time of this flywheel iteration. + *
+ * + * @return+ * The completion time of this flywheel iteration. + *
+ */ + public java.util.Date getEndTime() { + return endTime; + } + + /** + *+ * The completion time of this flywheel iteration. + *
+ * + * @param endTime+ * The completion time of this flywheel iteration. + *
+ */ + public void setEndTime(java.util.Date endTime) { + this.endTime = endTime; + } + + /** + *+ * The completion time of this flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endTime
+ * The completion time of this flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationProperties withEndTime(java.util.Date endTime) { + this.endTime = endTime; + return this; + } + + /** + *+ * The status of the flywheel iteration. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAINING, EVALUATING, COMPLETED, FAILED,
+ * STOP_REQUESTED, STOPPED
+ *
+ * @return
+ * The status of the flywheel iteration. + *
+ * @see FlywheelIterationStatus + */ + public String getStatus() { + return status; + } + + /** + *+ * The status of the flywheel iteration. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAINING, EVALUATING, COMPLETED, FAILED,
+ * STOP_REQUESTED, STOPPED
+ *
+ * @param status
+ * The status of the flywheel iteration. + *
+ * @see FlywheelIterationStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *+ * The status of the flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TRAINING, EVALUATING, COMPLETED, FAILED,
+ * STOP_REQUESTED, STOPPED
+ *
+ * @param status
+ * The status of the flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelIterationStatus + */ + public FlywheelIterationProperties withStatus(String status) { + this.status = status; + return this; + } + + /** + *+ * The status of the flywheel iteration. + *
+ *
+ * Constraints:
+ * Allowed Values: TRAINING, EVALUATING, COMPLETED, FAILED,
+ * STOP_REQUESTED, STOPPED
+ *
+ * @param status
+ * The status of the flywheel iteration. + *
+ * @see FlywheelIterationStatus + */ + public void setStatus(FlywheelIterationStatus status) { + this.status = status.toString(); + } + + /** + *+ * The status of the flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: TRAINING, EVALUATING, COMPLETED, FAILED,
+ * STOP_REQUESTED, STOPPED
+ *
+ * @param status
+ * The status of the flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelIterationStatus + */ + public FlywheelIterationProperties withStatus(FlywheelIterationStatus status) { + this.status = status.toString(); + return this; + } + + /** + *+ * A description of the status of the flywheel iteration. + *
+ * + * @return+ * A description of the status of the flywheel iteration. + *
+ */ + public String getMessage() { + return message; + } + + /** + *+ * A description of the status of the flywheel iteration. + *
+ * + * @param message+ * A description of the status of the flywheel iteration. + *
+ */ + public void setMessage(String message) { + this.message = message; + } + + /** + *+ * A description of the status of the flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param message
+ * A description of the status of the flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationProperties withMessage(String message) { + this.message = message; + return this; + } + + /** + *+ * The ARN of the evaluated model associated with this flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * The ARN of the evaluated model associated with this flywheel + * iteration. + *
+ */ + public String getEvaluatedModelArn() { + return evaluatedModelArn; + } + + /** + *+ * The ARN of the evaluated model associated with this flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param evaluatedModelArn
+ * The ARN of the evaluated model associated with this flywheel + * iteration. + *
+ */ + public void setEvaluatedModelArn(String evaluatedModelArn) { + this.evaluatedModelArn = evaluatedModelArn; + } + + /** + *+ * The ARN of the evaluated model associated with this flywheel iteration. + *
+ *+ * 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}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param evaluatedModelArn
+ * The ARN of the evaluated model associated with this flywheel + * iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationProperties withEvaluatedModelArn(String evaluatedModelArn) { + this.evaluatedModelArn = evaluatedModelArn; + return this; + } + + /** + *+ * The evaluation metrics associated with the evaluated model. + *
+ * + * @return+ * The evaluation metrics associated with the evaluated model. + *
+ */ + public FlywheelModelEvaluationMetrics getEvaluatedModelMetrics() { + return evaluatedModelMetrics; + } + + /** + *+ * The evaluation metrics associated with the evaluated model. + *
+ * + * @param evaluatedModelMetrics+ * The evaluation metrics associated with the evaluated model. + *
+ */ + public void setEvaluatedModelMetrics(FlywheelModelEvaluationMetrics evaluatedModelMetrics) { + this.evaluatedModelMetrics = evaluatedModelMetrics; + } + + /** + *+ * The evaluation metrics associated with the evaluated model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param evaluatedModelMetrics
+ * The evaluation metrics associated with the evaluated model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationProperties withEvaluatedModelMetrics( + FlywheelModelEvaluationMetrics evaluatedModelMetrics) { + this.evaluatedModelMetrics = evaluatedModelMetrics; + return this; + } + + /** + *+ * The ARN of the trained model associated with this flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * The ARN of the trained model associated with this flywheel + * iteration. + *
+ */ + public String getTrainedModelArn() { + return trainedModelArn; + } + + /** + *+ * The ARN of the trained model associated with this flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param trainedModelArn
+ * The ARN of the trained model associated with this flywheel + * iteration. + *
+ */ + public void setTrainedModelArn(String trainedModelArn) { + this.trainedModelArn = trainedModelArn; + } + + /** + *+ * The ARN of the trained model associated with this flywheel iteration. + *
+ *+ * 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}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param trainedModelArn
+ * The ARN of the trained model associated with this flywheel + * iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationProperties withTrainedModelArn(String trainedModelArn) { + this.trainedModelArn = trainedModelArn; + return this; + } + + /** + *+ * The metrics associated with the trained model. + *
+ * + * @return+ * The metrics associated with the trained model. + *
+ */ + public FlywheelModelEvaluationMetrics getTrainedModelMetrics() { + return trainedModelMetrics; + } + + /** + *+ * The metrics associated with the trained model. + *
+ * + * @param trainedModelMetrics+ * The metrics associated with the trained model. + *
+ */ + public void setTrainedModelMetrics(FlywheelModelEvaluationMetrics trainedModelMetrics) { + this.trainedModelMetrics = trainedModelMetrics; + } + + /** + *+ * The metrics associated with the trained model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param trainedModelMetrics
+ * The metrics associated with the trained model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelIterationProperties withTrainedModelMetrics( + FlywheelModelEvaluationMetrics trainedModelMetrics) { + this.trainedModelMetrics = trainedModelMetrics; + return this; + } + + /** + * + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param evaluationManifestS3Prefix
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param evaluationManifestS3Prefix
+ * The evaluation metrics associated with the evaluated model. + *
+ */ +public class FlywheelModelEvaluationMetrics implements Serializable { + /** + *+ * The average F1 score from the evaluation metrics. + *
+ */ + private Double averageF1Score; + + /** + *+ * Average precision metric for the model. + *
+ */ + private Double averagePrecision; + + /** + *+ * Average recall metric for the model. + *
+ */ + private Double averageRecall; + + /** + *+ * Average accuracy metric for the model. + *
+ */ + private Double averageAccuracy; + + /** + *+ * The average F1 score from the evaluation metrics. + *
+ * + * @return+ * The average F1 score from the evaluation metrics. + *
+ */ + public Double getAverageF1Score() { + return averageF1Score; + } + + /** + *+ * The average F1 score from the evaluation metrics. + *
+ * + * @param averageF1Score+ * The average F1 score from the evaluation metrics. + *
+ */ + public void setAverageF1Score(Double averageF1Score) { + this.averageF1Score = averageF1Score; + } + + /** + *+ * The average F1 score from the evaluation metrics. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param averageF1Score
+ * The average F1 score from the evaluation metrics. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelModelEvaluationMetrics withAverageF1Score(Double averageF1Score) { + this.averageF1Score = averageF1Score; + return this; + } + + /** + *+ * Average precision metric for the model. + *
+ * + * @return+ * Average precision metric for the model. + *
+ */ + public Double getAveragePrecision() { + return averagePrecision; + } + + /** + *+ * Average precision metric for the model. + *
+ * + * @param averagePrecision+ * Average precision metric for the model. + *
+ */ + public void setAveragePrecision(Double averagePrecision) { + this.averagePrecision = averagePrecision; + } + + /** + *+ * Average precision metric for the model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param averagePrecision
+ * Average precision metric for the model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelModelEvaluationMetrics withAveragePrecision(Double averagePrecision) { + this.averagePrecision = averagePrecision; + return this; + } + + /** + *+ * Average recall metric for the model. + *
+ * + * @return+ * Average recall metric for the model. + *
+ */ + public Double getAverageRecall() { + return averageRecall; + } + + /** + *+ * Average recall metric for the model. + *
+ * + * @param averageRecall+ * Average recall metric for the model. + *
+ */ + public void setAverageRecall(Double averageRecall) { + this.averageRecall = averageRecall; + } + + /** + *+ * Average recall metric for the model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param averageRecall
+ * Average recall metric for the model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelModelEvaluationMetrics withAverageRecall(Double averageRecall) { + this.averageRecall = averageRecall; + return this; + } + + /** + *+ * Average accuracy metric for the model. + *
+ * + * @return+ * Average accuracy metric for the model. + *
+ */ + public Double getAverageAccuracy() { + return averageAccuracy; + } + + /** + *+ * Average accuracy metric for the model. + *
+ * + * @param averageAccuracy+ * Average accuracy metric for the model. + *
+ */ + public void setAverageAccuracy(Double averageAccuracy) { + this.averageAccuracy = averageAccuracy; + } + + /** + *+ * Average accuracy metric for the model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param averageAccuracy
+ * Average accuracy metric for the model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelModelEvaluationMetrics withAverageAccuracy(Double averageAccuracy) { + this.averageAccuracy = averageAccuracy; + 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 (getAverageF1Score() != null) + sb.append("AverageF1Score: " + getAverageF1Score() + ","); + if (getAveragePrecision() != null) + sb.append("AveragePrecision: " + getAveragePrecision() + ","); + if (getAverageRecall() != null) + sb.append("AverageRecall: " + getAverageRecall() + ","); + if (getAverageAccuracy() != null) + sb.append("AverageAccuracy: " + getAverageAccuracy()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAverageF1Score() == null) ? 0 : getAverageF1Score().hashCode()); + hashCode = prime * hashCode + + ((getAveragePrecision() == null) ? 0 : getAveragePrecision().hashCode()); + hashCode = prime * hashCode + + ((getAverageRecall() == null) ? 0 : getAverageRecall().hashCode()); + hashCode = prime * hashCode + + ((getAverageAccuracy() == null) ? 0 : getAverageAccuracy().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FlywheelModelEvaluationMetrics == false) + return false; + FlywheelModelEvaluationMetrics other = (FlywheelModelEvaluationMetrics) obj; + + if (other.getAverageF1Score() == null ^ this.getAverageF1Score() == null) + return false; + if (other.getAverageF1Score() != null + && other.getAverageF1Score().equals(this.getAverageF1Score()) == false) + return false; + if (other.getAveragePrecision() == null ^ this.getAveragePrecision() == null) + return false; + if (other.getAveragePrecision() != null + && other.getAveragePrecision().equals(this.getAveragePrecision()) == false) + return false; + if (other.getAverageRecall() == null ^ this.getAverageRecall() == null) + return false; + if (other.getAverageRecall() != null + && other.getAverageRecall().equals(this.getAverageRecall()) == false) + return false; + if (other.getAverageAccuracy() == null ^ this.getAverageAccuracy() == null) + return false; + if (other.getAverageAccuracy() != null + && other.getAverageAccuracy().equals(this.getAverageAccuracy()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelProperties.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelProperties.java new file mode 100644 index 00000000000..cb46be2c9d2 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelProperties.java @@ -0,0 +1,1014 @@ +/* + * 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 flywheel properties. + *
+ */ +public class FlywheelProperties implements Serializable { + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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;
+
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String activeModelArn;
+
+ /**
+ *
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to access the flywheel data. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ */
+ private String dataAccessRoleArn;
+
+ /**
+ *
+ * Configuration about the custom classifier associated with the flywheel. + *
+ */ + private TaskConfig taskConfig; + + /** + *+ * Amazon S3 URI of the data lake location. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String dataLakeS3Uri;
+
+ /**
+ *
+ * Data security configuration. + *
+ */ + private DataSecurityConfig dataSecurityConfig; + + /** + *+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ */
+ private String status;
+
+ /**
+ *
+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ */
+ private String modelType;
+
+ /**
+ *
+ * A description of the status of the flywheel. + *
+ */ + private String message; + + /** + *+ * Creation time of the flywheel. + *
+ */ + private java.util.Date creationTime; + + /** + *+ * Last modified time for the flywheel. + *
+ */ + private java.util.Date lastModifiedTime; + + /** + *+ * The most recent flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ */
+ private String latestFlywheelIteration;
+
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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. + *
+ */ + public String getFlywheelArn() { + return flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *
+ * 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. + *
+ */ + public void setFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel. + *
+ *+ * 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. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + return this; + } + + /** + *+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ */ + public String getActiveModelArn() { + return activeModelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ */ + public void setActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the active model version. + *
+ *+ * 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}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * The Amazon Resource Number (ARN) of the active model version. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + return this; + } + + /** + *+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to access the flywheel data. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ *
+ * @return
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to access the flywheel data. + *
+ */ + public String getDataAccessRoleArn() { + return dataAccessRoleArn; + } + + /** + *+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to access the flywheel data. + *
+ *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ *
+ * @param dataAccessRoleArn
+ * The Amazon Resource Name (ARN) of the IAM role that grants + * Amazon Comprehend permission to access the flywheel data. + *
+ */ + public void setDataAccessRoleArn(String dataAccessRoleArn) { + this.dataAccessRoleArn = dataAccessRoleArn; + } + + /** + *+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to access the flywheel data. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: 20 - 2048
+ * Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
+ *
+ * @param dataAccessRoleArn
+ * The Amazon Resource Name (ARN) of the IAM role that grants + * Amazon Comprehend permission to access the flywheel data. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withDataAccessRoleArn(String dataAccessRoleArn) { + this.dataAccessRoleArn = dataAccessRoleArn; + return this; + } + + /** + *+ * Configuration about the custom classifier associated with the flywheel. + *
+ * + * @return+ * Configuration about the custom classifier associated with the + * flywheel. + *
+ */ + public TaskConfig getTaskConfig() { + return taskConfig; + } + + /** + *+ * Configuration about the custom classifier associated with the flywheel. + *
+ * + * @param taskConfig+ * Configuration about the custom classifier associated with the + * flywheel. + *
+ */ + public void setTaskConfig(TaskConfig taskConfig) { + this.taskConfig = taskConfig; + } + + /** + *+ * Configuration about the custom classifier associated with the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param taskConfig
+ * Configuration about the custom classifier associated with the + * flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withTaskConfig(TaskConfig taskConfig) { + this.taskConfig = taskConfig; + return this; + } + + /** + *+ * Amazon S3 URI of the data lake location. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Amazon S3 URI of the data lake location. + *
+ */ + public String getDataLakeS3Uri() { + return dataLakeS3Uri; + } + + /** + *+ * Amazon S3 URI of the data lake location. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param dataLakeS3Uri
+ * Amazon S3 URI of the data lake location. + *
+ */ + public void setDataLakeS3Uri(String dataLakeS3Uri) { + this.dataLakeS3Uri = dataLakeS3Uri; + } + + /** + *+ * Amazon S3 URI of the data lake location. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param dataLakeS3Uri
+ * Amazon S3 URI of the data lake location. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withDataLakeS3Uri(String dataLakeS3Uri) { + this.dataLakeS3Uri = dataLakeS3Uri; + return this; + } + + /** + *+ * Data security configuration. + *
+ * + * @return+ * Data security configuration. + *
+ */ + public DataSecurityConfig getDataSecurityConfig() { + return dataSecurityConfig; + } + + /** + *+ * Data security configuration. + *
+ * + * @param dataSecurityConfig+ * Data security configuration. + *
+ */ + public void setDataSecurityConfig(DataSecurityConfig dataSecurityConfig) { + this.dataSecurityConfig = dataSecurityConfig; + } + + /** + *+ * Data security configuration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param dataSecurityConfig
+ * Data security configuration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withDataSecurityConfig(DataSecurityConfig dataSecurityConfig) { + this.dataSecurityConfig = dataSecurityConfig; + return this; + } + + /** + *+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @return
+ * The status of the flywheel. + *
+ * @see FlywheelStatus + */ + public String getStatus() { + return status; + } + + /** + *+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @see FlywheelStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *+ * The status of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelStatus + */ + public FlywheelProperties withStatus(String status) { + this.status = status; + return this; + } + + /** + *+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @see FlywheelStatus + */ + public void setStatus(FlywheelStatus status) { + this.status = status.toString(); + } + + /** + *+ * The status of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelStatus + */ + public FlywheelProperties withStatus(FlywheelStatus status) { + this.status = status.toString(); + return this; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @return
+ * Model type of the flywheel's model. + *
+ * @see ModelType + */ + public String getModelType() { + return modelType; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @see ModelType + */ + public void setModelType(String modelType) { + this.modelType = modelType; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see ModelType + */ + public FlywheelProperties withModelType(String modelType) { + this.modelType = modelType; + return this; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @see ModelType + */ + public void setModelType(ModelType modelType) { + this.modelType = modelType.toString(); + } + + /** + *+ * Model type of the flywheel's model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see ModelType + */ + public FlywheelProperties withModelType(ModelType modelType) { + this.modelType = modelType.toString(); + return this; + } + + /** + *+ * A description of the status of the flywheel. + *
+ * + * @return+ * A description of the status of the flywheel. + *
+ */ + public String getMessage() { + return message; + } + + /** + *+ * A description of the status of the flywheel. + *
+ * + * @param message+ * A description of the status of the flywheel. + *
+ */ + public void setMessage(String message) { + this.message = message; + } + + /** + *+ * A description of the status of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param message
+ * A description of the status of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withMessage(String message) { + this.message = message; + return this; + } + + /** + *+ * Creation time of the flywheel. + *
+ * + * @return+ * Creation time of the flywheel. + *
+ */ + public java.util.Date getCreationTime() { + return creationTime; + } + + /** + *+ * Creation time of the flywheel. + *
+ * + * @param creationTime+ * Creation time of the flywheel. + *
+ */ + public void setCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + } + + /** + *+ * Creation time of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTime
+ * Creation time of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + *+ * Last modified time for the flywheel. + *
+ * + * @return+ * Last modified time for the flywheel. + *
+ */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *+ * Last modified time for the flywheel. + *
+ * + * @param lastModifiedTime+ * Last modified time for the flywheel. + *
+ */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *+ * Last modified time for the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime
+ * Last modified time for the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *+ * The most recent flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @return
+ * The most recent flywheel iteration. + *
+ */ + public String getLatestFlywheelIteration() { + return latestFlywheelIteration; + } + + /** + *+ * The most recent flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param latestFlywheelIteration
+ * The most recent flywheel iteration. + *
+ */ + public void setLatestFlywheelIteration(String latestFlywheelIteration) { + this.latestFlywheelIteration = latestFlywheelIteration; + } + + /** + *+ * The most recent flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param latestFlywheelIteration
+ * The most recent flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelProperties withLatestFlywheelIteration(String latestFlywheelIteration) { + this.latestFlywheelIteration = latestFlywheelIteration; + 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 (getActiveModelArn() != null) + sb.append("ActiveModelArn: " + getActiveModelArn() + ","); + if (getDataAccessRoleArn() != null) + sb.append("DataAccessRoleArn: " + getDataAccessRoleArn() + ","); + if (getTaskConfig() != null) + sb.append("TaskConfig: " + getTaskConfig() + ","); + if (getDataLakeS3Uri() != null) + sb.append("DataLakeS3Uri: " + getDataLakeS3Uri() + ","); + if (getDataSecurityConfig() != null) + sb.append("DataSecurityConfig: " + getDataSecurityConfig() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getModelType() != null) + sb.append("ModelType: " + getModelType() + ","); + if (getMessage() != null) + sb.append("Message: " + getMessage() + ","); + if (getCreationTime() != null) + sb.append("CreationTime: " + getCreationTime() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLatestFlywheelIteration() != null) + sb.append("LatestFlywheelIteration: " + getLatestFlywheelIteration()); + 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 + + ((getActiveModelArn() == null) ? 0 : getActiveModelArn().hashCode()); + hashCode = prime * hashCode + + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode()); + hashCode = prime * hashCode + ((getTaskConfig() == null) ? 0 : getTaskConfig().hashCode()); + hashCode = prime * hashCode + + ((getDataLakeS3Uri() == null) ? 0 : getDataLakeS3Uri().hashCode()); + hashCode = prime * hashCode + + ((getDataSecurityConfig() == null) ? 0 : getDataSecurityConfig().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getModelType() == null) ? 0 : getModelType().hashCode()); + hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); + hashCode = prime * hashCode + + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime + * hashCode + + ((getLatestFlywheelIteration() == null) ? 0 : getLatestFlywheelIteration() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FlywheelProperties == false) + return false; + FlywheelProperties other = (FlywheelProperties) obj; + + if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) + return false; + if (other.getFlywheelArn() != null + && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) + return false; + if (other.getActiveModelArn() == null ^ this.getActiveModelArn() == null) + return false; + if (other.getActiveModelArn() != null + && other.getActiveModelArn().equals(this.getActiveModelArn()) == false) + return false; + if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null) + return false; + if (other.getDataAccessRoleArn() != null + && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == false) + return false; + if (other.getTaskConfig() == null ^ this.getTaskConfig() == null) + return false; + if (other.getTaskConfig() != null + && other.getTaskConfig().equals(this.getTaskConfig()) == false) + return false; + if (other.getDataLakeS3Uri() == null ^ this.getDataLakeS3Uri() == null) + return false; + if (other.getDataLakeS3Uri() != null + && other.getDataLakeS3Uri().equals(this.getDataLakeS3Uri()) == false) + return false; + if (other.getDataSecurityConfig() == null ^ this.getDataSecurityConfig() == null) + return false; + if (other.getDataSecurityConfig() != null + && other.getDataSecurityConfig().equals(this.getDataSecurityConfig()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getModelType() == null ^ this.getModelType() == null) + return false; + if (other.getModelType() != null + && other.getModelType().equals(this.getModelType()) == false) + return false; + if (other.getMessage() == null ^ this.getMessage() == null) + return false; + if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) + return false; + if (other.getCreationTime() == null ^ this.getCreationTime() == null) + return false; + if (other.getCreationTime() != null + && other.getCreationTime().equals(this.getCreationTime()) == false) + return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLatestFlywheelIteration() == null ^ this.getLatestFlywheelIteration() == null) + return false; + if (other.getLatestFlywheelIteration() != null + && other.getLatestFlywheelIteration().equals(this.getLatestFlywheelIteration()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelStatus.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelStatus.java new file mode 100644 index 00000000000..4b0fe4a1d96 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/FlywheelStatus.java @@ -0,0 +1,68 @@ +/* + * 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; + +/** + * Flywheel Status + */ +public enum FlywheelStatus { + + CREATING("CREATING"), + ACTIVE("ACTIVE"), + UPDATING("UPDATING"), + DELETING("DELETING"), + FAILED("FAILED"); + + private String value; + + private FlywheelStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map+ * Flywheel summary information. + *
+ */ +public class FlywheelSummary implements Serializable { + /** + *+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *
+ * 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;
+
+ /**
+ *
+ * ARN of the active model version for the flywheel. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String activeModelArn;
+
+ /**
+ *
+ * Amazon S3 URI of the data lake location. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ */
+ private String dataLakeS3Uri;
+
+ /**
+ *
+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ */
+ private String status;
+
+ /**
+ *
+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ */
+ private String modelType;
+
+ /**
+ *
+ * A description of the status of the flywheel. + *
+ */ + private String message; + + /** + *+ * Creation time of the flywheel. + *
+ */ + private java.util.Date creationTime; + + /** + *+ * Last modified time for the flywheel. + *
+ */ + private java.util.Date lastModifiedTime; + + /** + *+ * The most recent flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ */
+ private String latestFlywheelIteration;
+
+ /**
+ *
+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *
+ * 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 + *
+ */ + public String getFlywheelArn() { + return flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *
+ * 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 + *
+ */ + public void setFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + } + + /** + *+ * The Amazon Resource Number (ARN) of the flywheel + *
+ *+ * 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 + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelSummary withFlywheelArn(String flywheelArn) { + this.flywheelArn = flywheelArn; + return this; + } + + /** + *+ * ARN of the active model version for the flywheel. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * ARN of the active model version for the flywheel. + *
+ */ + public String getActiveModelArn() { + return activeModelArn; + } + + /** + *+ * ARN of the active model version for the flywheel. + *
+ *
+ * Constraints:
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * ARN of the active model version for the flywheel. + *
+ */ + public void setActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + } + + /** + *+ * ARN of the active model version for the flywheel. + *
+ *+ * 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}:(document
+ * -classifier
+ * |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
+ * Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param activeModelArn
+ * ARN of the active model version for the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelSummary withActiveModelArn(String activeModelArn) { + this.activeModelArn = activeModelArn; + return this; + } + + /** + *+ * Amazon S3 URI of the data lake location. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @return
+ * Amazon S3 URI of the data lake location. + *
+ */ + public String getDataLakeS3Uri() { + return dataLakeS3Uri; + } + + /** + *+ * Amazon S3 URI of the data lake location. + *
+ *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param dataLakeS3Uri
+ * Amazon S3 URI of the data lake location. + *
+ */ + public void setDataLakeS3Uri(String dataLakeS3Uri) { + this.dataLakeS3Uri = dataLakeS3Uri; + } + + /** + *+ * Amazon S3 URI of the data lake location. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 1024
+ * Pattern: s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9](/.*)?
+ *
+ * @param dataLakeS3Uri
+ * Amazon S3 URI of the data lake location. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelSummary withDataLakeS3Uri(String dataLakeS3Uri) { + this.dataLakeS3Uri = dataLakeS3Uri; + return this; + } + + /** + *+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @return
+ * The status of the flywheel. + *
+ * @see FlywheelStatus + */ + public String getStatus() { + return status; + } + + /** + *+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @see FlywheelStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *+ * The status of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelStatus + */ + public FlywheelSummary withStatus(String status) { + this.status = status; + return this; + } + + /** + *+ * The status of the flywheel. + *
+ *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @see FlywheelStatus + */ + public void setStatus(FlywheelStatus status) { + this.status = status.toString(); + } + + /** + *+ * The status of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CREATING, ACTIVE, UPDATING, DELETING, FAILED
+ *
+ * @param status
+ * The status of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlywheelStatus + */ + public FlywheelSummary withStatus(FlywheelStatus status) { + this.status = status.toString(); + return this; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @return
+ * Model type of the flywheel's model. + *
+ * @see ModelType + */ + public String getModelType() { + return modelType; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @see ModelType + */ + public void setModelType(String modelType) { + this.modelType = modelType; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see ModelType + */ + public FlywheelSummary withModelType(String modelType) { + this.modelType = modelType; + return this; + } + + /** + *+ * Model type of the flywheel's model. + *
+ *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @see ModelType + */ + public void setModelType(ModelType modelType) { + this.modelType = modelType.toString(); + } + + /** + *+ * Model type of the flywheel's model. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: DOCUMENT_CLASSIFIER, ENTITY_RECOGNIZER
+ *
+ * @param modelType
+ * Model type of the flywheel's model. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see ModelType + */ + public FlywheelSummary withModelType(ModelType modelType) { + this.modelType = modelType.toString(); + return this; + } + + /** + *+ * A description of the status of the flywheel. + *
+ * + * @return+ * A description of the status of the flywheel. + *
+ */ + public String getMessage() { + return message; + } + + /** + *+ * A description of the status of the flywheel. + *
+ * + * @param message+ * A description of the status of the flywheel. + *
+ */ + public void setMessage(String message) { + this.message = message; + } + + /** + *+ * A description of the status of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param message
+ * A description of the status of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelSummary withMessage(String message) { + this.message = message; + return this; + } + + /** + *+ * Creation time of the flywheel. + *
+ * + * @return+ * Creation time of the flywheel. + *
+ */ + public java.util.Date getCreationTime() { + return creationTime; + } + + /** + *+ * Creation time of the flywheel. + *
+ * + * @param creationTime+ * Creation time of the flywheel. + *
+ */ + public void setCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + } + + /** + *+ * Creation time of the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTime
+ * Creation time of the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelSummary withCreationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + *+ * Last modified time for the flywheel. + *
+ * + * @return+ * Last modified time for the flywheel. + *
+ */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *+ * Last modified time for the flywheel. + *
+ * + * @param lastModifiedTime+ * Last modified time for the flywheel. + *
+ */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *+ * Last modified time for the flywheel. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime
+ * Last modified time for the flywheel. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *+ * The most recent flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @return
+ * The most recent flywheel iteration. + *
+ */ + public String getLatestFlywheelIteration() { + return latestFlywheelIteration; + } + + /** + *+ * The most recent flywheel iteration. + *
+ *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param latestFlywheelIteration
+ * The most recent flywheel iteration. + *
+ */ + public void setLatestFlywheelIteration(String latestFlywheelIteration) { + this.latestFlywheelIteration = latestFlywheelIteration; + } + + /** + *+ * The most recent flywheel iteration. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Length: - 63
+ * Pattern: [0-9]{8}T[0-9]{6}Z
+ *
+ * @param latestFlywheelIteration
+ * The most recent flywheel iteration. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlywheelSummary withLatestFlywheelIteration(String latestFlywheelIteration) { + this.latestFlywheelIteration = latestFlywheelIteration; + 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 (getActiveModelArn() != null) + sb.append("ActiveModelArn: " + getActiveModelArn() + ","); + if (getDataLakeS3Uri() != null) + sb.append("DataLakeS3Uri: " + getDataLakeS3Uri() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getModelType() != null) + sb.append("ModelType: " + getModelType() + ","); + if (getMessage() != null) + sb.append("Message: " + getMessage() + ","); + if (getCreationTime() != null) + sb.append("CreationTime: " + getCreationTime() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLatestFlywheelIteration() != null) + sb.append("LatestFlywheelIteration: " + getLatestFlywheelIteration()); + 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 + + ((getActiveModelArn() == null) ? 0 : getActiveModelArn().hashCode()); + hashCode = prime * hashCode + + ((getDataLakeS3Uri() == null) ? 0 : getDataLakeS3Uri().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getModelType() == null) ? 0 : getModelType().hashCode()); + hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); + hashCode = prime * hashCode + + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime + * hashCode + + ((getLatestFlywheelIteration() == null) ? 0 : getLatestFlywheelIteration() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FlywheelSummary == false) + return false; + FlywheelSummary other = (FlywheelSummary) obj; + + if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) + return false; + if (other.getFlywheelArn() != null + && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) + return false; + if (other.getActiveModelArn() == null ^ this.getActiveModelArn() == null) + return false; + if (other.getActiveModelArn() != null + && other.getActiveModelArn().equals(this.getActiveModelArn()) == false) + return false; + if (other.getDataLakeS3Uri() == null ^ this.getDataLakeS3Uri() == null) + return false; + if (other.getDataLakeS3Uri() != null + && other.getDataLakeS3Uri().equals(this.getDataLakeS3Uri()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getModelType() == null ^ this.getModelType() == null) + return false; + if (other.getModelType() != null + && other.getModelType().equals(this.getModelType()) == false) + return false; + if (other.getMessage() == null ^ this.getMessage() == null) + return false; + if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) + return false; + if (other.getCreationTime() == null ^ this.getCreationTime() == null) + return false; + if (other.getCreationTime() != null + && other.getCreationTime().equals(this.getCreationTime()) == false) + return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLatestFlywheelIteration() == null ^ this.getLatestFlywheelIteration() == null) + return false; + if (other.getLatestFlywheelIteration() != null + && other.getLatestFlywheelIteration().equals(this.getLatestFlywheelIteration()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Geometry.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Geometry.java new file mode 100644 index 00000000000..ad4e8c00db9 --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Geometry.java @@ -0,0 +1,232 @@ +/* + * 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 the location of items on a document page. + *
+ *+ * For additional information, see Geometry in the Amazon Textract API reference. + *
+ */ +public class Geometry implements Serializable { + /** + *+ * An axis-aligned coarse representation of the location of the recognized + * item on the document page. + *
+ */ + private BoundingBox boundingBox; + + /** + *+ * Within the bounding box, a fine-grained polygon around the recognized + * item. + *
+ */ + private java.util.List+ * An axis-aligned coarse representation of the location of the recognized + * item on the document page. + *
+ * + * @return+ * An axis-aligned coarse representation of the location of the + * recognized item on the document page. + *
+ */ + public BoundingBox getBoundingBox() { + return boundingBox; + } + + /** + *+ * An axis-aligned coarse representation of the location of the recognized + * item on the document page. + *
+ * + * @param boundingBox+ * An axis-aligned coarse representation of the location of the + * recognized item on the document page. + *
+ */ + public void setBoundingBox(BoundingBox boundingBox) { + this.boundingBox = boundingBox; + } + + /** + *+ * An axis-aligned coarse representation of the location of the recognized + * item on the document page. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param boundingBox
+ * An axis-aligned coarse representation of the location of the + * recognized item on the document page. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Geometry withBoundingBox(BoundingBox boundingBox) { + this.boundingBox = boundingBox; + return this; + } + + /** + *+ * Within the bounding box, a fine-grained polygon around the recognized + * item. + *
+ * + * @return+ * Within the bounding box, a fine-grained polygon around the + * recognized item. + *
+ */ + public java.util.List+ * Within the bounding box, a fine-grained polygon around the recognized + * item. + *
+ * + * @param polygon+ * Within the bounding box, a fine-grained polygon around the + * recognized item. + *
+ */ + public void setPolygon(java.util.Collection+ * Within the bounding box, a fine-grained polygon around the recognized + * item. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param polygon
+ * Within the bounding box, a fine-grained polygon around the + * recognized item. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Geometry withPolygon(Point... polygon) { + if (getPolygon() == null) { + this.polygon = new java.util.ArrayList+ * Within the bounding box, a fine-grained polygon around the recognized + * item. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param polygon
+ * Within the bounding box, a fine-grained polygon around the + * recognized item. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Geometry withPolygon(java.util.Collection* 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. *
*/ public class ImportModelRequest extends AmazonWebServiceRequest implements Serializable { @@ -67,7 +68,7 @@ public class ImportModelRequest extends AmazonWebServiceRequest implements Seria * import. 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. + * account/Region. * *
* Constraints:
@@ -78,9 +79,8 @@ public class ImportModelRequest extends AmazonWebServiceRequest implements Seria
/**
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) - * role that allows Amazon Comprehend to use Amazon Key Management Service - * (KMS) to encrypt or decrypt the custom model. + * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to use Amazon Key Management Service (KMS) to + * encrypt or decrypt the custom model. *
*
* Constraints:
@@ -117,10 +117,10 @@ public class ImportModelRequest extends AmazonWebServiceRequest implements Seria
/**
*
- * Tags to be associated with the custom model that is created by this - * import. 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 custom model that is created by this import. 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
* Constraints:
@@ -275,7 +275,7 @@ public ImportModelRequest withModelName(String modelName) {
* this import. 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.
+ * the same classifier name in the account/Region.
*
* Constraints:
@@ -301,7 +301,7 @@ public String getVersionName() {
* 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.
+ * account/Region.
*
* Returns a reference to this object so that method calls can be chained @@ -330,7 +330,7 @@ public void setVersionName(String versionName) { * 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. + * account/Region. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -342,9 +342,8 @@ public ImportModelRequest withVersionName(String versionName) { /** *- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained + * custom models. The ModelKmsKeyId can be either of the following + * formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt trained custom models. The ModelKmsKeyId can be either of - * the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt trained custom + * models. The ModelKmsKeyId can be either of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt trained custom models. The - * ModelKmsKeyId can be either of the following formats: + * ID for the KMS key that Amazon Comprehend uses to encrypt + * trained custom models. The ModelKmsKeyId can be either of the + * following formats: *
*- * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) - * role that allows Amazon Comprehend to use Amazon Key Management Service - * (KMS) to encrypt or decrypt the custom model. + * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to use Amazon Key Management Service (KMS) to + * encrypt or decrypt the custom model. *
*
* Constraints:
@@ -501,9 +498,9 @@ public ImportModelRequest withModelKmsKeyId(String modelKmsKeyId) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
- * The Amazon Resource Name (ARN) of the AWS Identity and Management - * (IAM) role that allows Amazon Comprehend to use Amazon Key - * Management Service (KMS) to encrypt or decrypt the custom model. + * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to use Amazon Key Management Service (KMS) + * to encrypt or decrypt the custom model. *
*/ public String getDataAccessRoleArn() { @@ -512,9 +509,9 @@ public String getDataAccessRoleArn() { /** *- * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) - * role that allows Amazon Comprehend to use Amazon Key Management Service - * (KMS) to encrypt or decrypt the custom model. + * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to use Amazon Key Management Service (KMS) to + * encrypt or decrypt the custom model. *
*
* Constraints:
@@ -522,10 +519,9 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) of the AWS Identity and - * Management (IAM) role that allows Amazon Comprehend to use - * Amazon Key Management Service (KMS) to encrypt or decrypt the - * custom model. + * The Amazon Resource Name (ARN) of the IAM role that grants + * Amazon Comprehend permission to use Amazon Key Management + * Service (KMS) to encrypt or decrypt the custom model. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { @@ -534,9 +530,9 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) { /** *- * The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) - * role that allows Amazon Comprehend to use Amazon Key Management Service - * (KMS) to encrypt or decrypt the custom model. + * The Amazon Resource Name (ARN) of the IAM role that grants Amazon + * Comprehend permission to use Amazon Key Management Service (KMS) to + * encrypt or decrypt the custom model. *
*
* Returns a reference to this object so that method calls can be chained
@@ -547,10 +543,9 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) of the AWS Identity and - * Management (IAM) role that allows Amazon Comprehend to use - * Amazon Key Management Service (KMS) to encrypt or decrypt the - * custom model. + * The Amazon Resource Name (ARN) of the IAM role that grants + * Amazon Comprehend permission to use Amazon Key Management + * Service (KMS) to encrypt or decrypt the custom model. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -562,16 +557,16 @@ public ImportModelRequest withDataAccessRoleArn(String dataAccessRoleArn) { /** *- * Tags to be associated with the custom model that is created by this - * import. 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 custom model that is created by this import. 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. *
* * @return- * Tags to be associated with the custom model that is created by - * this import. A tag is a key-value pair that adds as a metadata to - * a resource used by Amazon Comprehend. For example, a tag with + * Tags to associate with the custom model that is created by this + * import. 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. *
@@ -582,14 +577,14 @@ public java.util.List- * Tags to be associated with the custom model that is created by this - * import. 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 custom model that is created by this import. 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. *
* * @param tags
- * Tags to be associated with the custom model that is created by
+ * Tags to associate with the custom model that is created by
* this import. 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
@@ -607,17 +602,17 @@ public void setTags(java.util.Collection
- * Tags to be associated with the custom model that is created by this
- * import. 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 custom model that is created by this import. 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.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param tags
- * Tags to be associated with the custom model that is created by
+ * Tags to associate with the custom model that is created by
* this import. 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
@@ -638,17 +633,17 @@ public ImportModelRequest withTags(Tag... tags) {
/**
*
- * Tags to be associated with the custom model that is created by this
- * import. 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 custom model that is created by this import. 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.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param tags
- * Tags to be associated with the custom model that is created by
+ * Tags to associate with the custom model that is created by
* this import. 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
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ImportModelResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ImportModelResult.java
index 92f88767a4b..a2d25ecfc31 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ImportModelResult.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ImportModelResult.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/InputDataConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InputDataConfig.java
index 4a85e897fbb..dba71052d56 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InputDataConfig.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InputDataConfig.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.
@@ -19,13 +19,14 @@
/**
*
- * The input properties for an inference job.
+ * The input properties for an inference job. The document reader config field
+ * applies only to non-text inputs for custom analysis.
*
- * The Amazon S3 URI for the input data. The URI must be in same region as
+ * The Amazon S3 URI for the input data. The URI must be in same Region as
* the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of data files.
*
- * The document reader config field applies only for InputDataConfig of
- * StartEntitiesDetectionJob.
- *
- * Use DocumentReaderConfig to provide specifications about how you want
- * your inference documents read. Currently it applies for PDF documents in
- * StartEntitiesDetectionJob custom inference.
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
*
- * The Amazon S3 URI for the input data. The URI must be in same region as
+ * The Amazon S3 URI for the input data. The URI must be in same Region as
* the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of data files.
*
* The Amazon S3 URI for the input data. The URI must be in same
- * region as the API endpoint that you are calling. The URI can
+ * Region as the API endpoint that you are calling. The URI can
* point to a single input file or it can provide the prefix for a
* collection of data files.
*
- * The Amazon S3 URI for the input data. The URI must be in same region as
+ * The Amazon S3 URI for the input data. The URI must be in same Region as
* the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of data files.
*
* The Amazon S3 URI for the input data. The URI must be in same
- * region as the API endpoint that you are calling. The URI can
+ * Region as the API endpoint that you are calling. The URI can
* point to a single input file or it can provide the prefix for
* a collection of data files.
*
- * The Amazon S3 URI for the input data. The URI must be in same region as
+ * The Amazon S3 URI for the input data. The URI must be in same Region as
* the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of data files.
*
* The Amazon S3 URI for the input data. The URI must be in same
- * region as the API endpoint that you are calling. The URI can
+ * Region as the API endpoint that you are calling. The URI can
* point to a single input file or it can provide the prefix for
* a collection of data files.
*
- * The document reader config field applies only for InputDataConfig of
- * StartEntitiesDetectionJob.
- *
- * Use DocumentReaderConfig to provide specifications about how you want
- * your inference documents read. Currently it applies for PDF documents in
- * StartEntitiesDetectionJob custom inference.
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
*
- * The document reader config field applies only for InputDataConfig
- * of StartEntitiesDetectionJob.
- *
- * Use DocumentReaderConfig to provide specifications about how you
- * want your inference documents read. Currently it applies for PDF
- * documents in StartEntitiesDetectionJob custom inference.
+ * Provides configuration parameters to override the default actions
+ * for extracting text from PDF documents and image files.
*
- * The document reader config field applies only for InputDataConfig of
- * StartEntitiesDetectionJob.
- *
- * Use DocumentReaderConfig to provide specifications about how you want
- * your inference documents read. Currently it applies for PDF documents in
- * StartEntitiesDetectionJob custom inference.
+ * Provides configuration parameters to override the default actions for
+ * extracting text from PDF documents and image files.
*
- * The document reader config field applies only for
- * InputDataConfig of StartEntitiesDetectionJob.
- *
- * Use DocumentReaderConfig to provide specifications about how
- * you want your inference documents read. Currently it applies
- * for PDF documents in StartEntitiesDetectionJob custom
- * inference.
+ * Provides configuration parameters to override the default
+ * actions for extracting text from PDF documents and image
+ * files.
*
- * The document reader config field applies only for InputDataConfig of
- * StartEntitiesDetectionJob.
- *
- * Use DocumentReaderConfig to provide specifications about how you want
- * your inference documents read. Currently it applies for PDF documents in
- * StartEntitiesDetectionJob custom inference.
+ * 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
- * The document reader config field applies only for
- * InputDataConfig of StartEntitiesDetectionJob.
- *
- * Use DocumentReaderConfig to provide specifications about how
- * you want your inference documents read. Currently it applies
- * for PDF documents in StartEntitiesDetectionJob custom
- * inference.
+ * Provides configuration parameters to override the default
+ * actions for extracting text from PDF documents and image
+ * files.
*
+ * Provides additional detail about why the request failed:
+ *
+ * Document size is too large - Check the size of your file and resubmit the
+ * request.
+ *
+ * Document type is not supported - Check the file type and resubmit the
+ * request.
+ *
+ * Too many pages in the document - Check the number of pages in your file and
+ * resubmit the request.
+ *
+ * Access denied to Amazon Textract - Verify that your account has permission to
+ * use Amazon Textract API operations and resubmit the request.
+ *
+ * Reason code is
+ * Constraints:
+ * Reason code is
+ * Constraints:
+ * Reason code is
+ * Reason code is
+ * Constraints:
+ * Reason code is
+ * Reason code is
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Reason code is
+ * Reason code is
+ * Constraints:
+ * Reason code is
+ * Reason code is
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Reason code is
+ * Provides additional detail about why the request failed:
+ *
+ * Document size is too large - Check the size of your file and resubmit the
+ * request.
+ *
+ * Document type is not supported - Check the file type and resubmit the
+ * request.
+ *
+ * Too many pages in the document - Check the number of pages in your file
+ * and resubmit the request.
+ *
+ * Access denied to Amazon Textract - Verify that your account has
+ * permission to use Amazon Textract API operations and resubmit the
+ * request.
+ *
+ * Constraints:
+ * Constraints:
+ * Provides additional detail about why the request failed:
+ *
+ * Document size is too large - Check the size of your file and resubmit the
+ * request.
+ *
+ * Document type is not supported - Check the file type and resubmit the
+ * request.
+ *
+ * Too many pages in the document - Check the number of pages in your file
+ * and resubmit the request.
+ *
+ * Access denied to Amazon Textract - Verify that your account has
+ * permission to use Amazon Textract API operations and resubmit the
+ * request.
+ *
+ * Provides additional detail about why the request failed:
+ *
+ * Document size is too large - Check the size of your file and
+ * resubmit the request.
+ *
+ * Document type is not supported - Check the file type and resubmit
+ * the request.
+ *
+ * Too many pages in the document - Check the number of pages in
+ * your file and resubmit the request.
+ *
+ * Access denied to Amazon Textract - Verify that your account has
+ * permission to use Amazon Textract API operations and resubmit the
+ * request.
+ *
+ * Provides additional detail about why the request failed:
+ *
+ * Document size is too large - Check the size of your file and resubmit the
+ * request.
+ *
+ * Document type is not supported - Check the file type and resubmit the
+ * request.
+ *
+ * Too many pages in the document - Check the number of pages in your file
+ * and resubmit the request.
+ *
+ * Access denied to Amazon Textract - Verify that your account has
+ * permission to use Amazon Textract API operations and resubmit the
+ * request.
+ *
+ * Provides additional detail about why the request failed:
+ *
+ * Document size is too large - Check the size of your file and
+ * resubmit the request.
+ *
+ * Document type is not supported - Check the file type and
+ * resubmit the request.
+ *
+ * Too many pages in the document - Check the number of pages in
+ * your file and resubmit the request.
+ *
+ * Access denied to Amazon Textract - Verify that your account
+ * has permission to use Amazon Textract API operations and
+ * resubmit the request.
+ *
* The Amazon Resource Name (ARN) of the key phrases detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
- * The Amazon Resource Name (ARN) that gives 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:
- * 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 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:
*
* The Amazon Resource Name (ARN) of the key phrases detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the key phrases detection job.
* It is a unique, fully qualified identifier for the job. It
- * includes the AWS account, Region, and the job ID. The format of
- * the ARN is as follows:
+ * includes the Amazon Web Services account, Amazon Web Services
+ * Region, and the job ID. The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the key phrases detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the key phrases detection
* job. It is a unique, fully qualified identifier for the job.
- * It includes the AWS account, Region, and the job ID. The
- * format of the ARN is as follows:
+ * It includes the Amazon Web Services account, Amazon Web
+ * Services Region, and the job ID. The format of the ARN is as
+ * follows:
*
*
* The Amazon Resource Name (ARN) of the key phrases detection job. It is a
- * unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the key phrases detection
* job. It is a unique, fully qualified identifier for the job.
- * It includes the AWS account, Region, and the job ID. The
- * format of the ARN is as follows:
+ * It includes the Amazon Web Services account, Amazon Web
+ * Services Region, and the job ID. The format of the ARN is as
+ * follows:
*
*
- * The Amazon Resource Name (ARN) that gives 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:
- * The Amazon Resource Name (ARN) that gives 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.
*
- * The Amazon Resource Name (ARN) that gives 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:
- * The Amazon Resource Name (ARN) that gives 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.
*
- * The Amazon Resource Name (ARN) that gives 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.
*
* Returns a reference to this object so that method calls can be chained
@@ -940,8 +949,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) that gives 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.
*
- * 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 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 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 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 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 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 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 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 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 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 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 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:
*
+ * List the datasets that you have configured in this Region. For more
+ * information about datasets, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel.
+ *
+ * Constraints:
+ * Filters the datasets to be returned in the response.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel.
+ *
+ * Filters the datasets to be returned in the response.
+ *
+ * Filters the datasets to be returned in the response.
+ *
+ * Filters the datasets to be returned in the response.
+ *
+ * Filters the datasets to be returned in the response.
+ *
+ * Filters the datasets to be returned in the response.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param filter
+ * Filters the datasets to be returned in the response.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default is
+ * 100.
+ *
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default
+ * is 100.
+ *
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default
+ * is 100.
+ *
+ * The dataset properties list.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * The dataset properties list.
+ *
+ * The dataset properties list.
+ *
+ * The dataset properties list.
+ *
+ * The dataset properties list.
+ *
+ * The dataset properties list.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param datasetPropertiesList
+ * The dataset properties list.
+ *
+ * The dataset properties list.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param datasetPropertiesList
+ * The dataset properties list.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
- * The list entity recognizer summaries.
+ * Identifies the next page of results to return.
*
* Constraints:
- * The list entity recognizer summaries.
+ * Identifies the next page of results to return.
*
* Constraints:
- * The list entity recognizer summaries.
+ * Identifies the next page of results to return.
*
- * The list entity recognizer summaries.
+ * Identifies the next page of results to return.
*
* Constraints:
- * The list entity recognizer summaries.
+ * Identifies the next page of results to return.
*
- * The list entity recognizer summaries.
+ * Identifies the next page of results to return.
*
* Returns a reference to this object so that method calls can be chained
@@ -158,7 +158,7 @@ public void setNextToken(String nextToken) {
* Length: 1 -
- * The list entity recognizer summaries.
+ * Identifies the next page of results to return.
*
+ * Information about the history of a flywheel iteration. For more information
+ * about flywheels, see
+ * Flywheel overview in the Amazon Comprehend Developer Guide.
+ *
+ * The ARN of the flywheel.
+ *
+ * Constraints:
+ * Filter the flywheel iteration history based on creation time.
+ *
+ * Next token
+ *
+ * Constraints:
+ * Maximum number of iteration history results to return
+ *
+ * Constraints:
+ * The ARN of the flywheel.
+ *
+ * Constraints:
+ * The ARN of the flywheel.
+ *
+ * The ARN of the flywheel.
+ *
+ * Constraints:
+ * The ARN of the flywheel.
+ *
+ * The ARN of the flywheel.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The ARN of the flywheel.
+ *
+ * Filter the flywheel iteration history based on creation time.
+ *
+ * Filter the flywheel iteration history based on creation time.
+ *
+ * Filter the flywheel iteration history based on creation time.
+ *
+ * Filter the flywheel iteration history based on creation time.
+ *
+ * Filter the flywheel iteration history based on creation time.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param filter
+ * Filter the flywheel iteration history based on creation time.
+ *
+ * Next token
+ *
+ * Constraints:
+ * Next token
+ *
+ * Next token
+ *
+ * Constraints:
+ * Next token
+ *
+ * Next token
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Next token
+ *
+ * Maximum number of iteration history results to return
+ *
+ * Constraints:
+ * Maximum number of iteration history results to return
+ *
+ * Maximum number of iteration history results to return
+ *
+ * Constraints:
+ * Maximum number of iteration history results to return
+ *
+ * Maximum number of iteration history results to return
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Maximum number of iteration history results to return
+ *
+ * List of flywheel iteration properties
+ *
+ * Next token
+ *
+ * Constraints:
+ * List of flywheel iteration properties
+ *
+ * List of flywheel iteration properties
+ *
+ * List of flywheel iteration properties
+ *
+ * List of flywheel iteration properties
+ *
+ * List of flywheel iteration properties
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param flywheelIterationPropertiesList
+ * List of flywheel iteration properties
+ *
+ * List of flywheel iteration properties
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param flywheelIterationPropertiesList
+ * List of flywheel iteration properties
+ *
+ * Next token
+ *
+ * Constraints:
+ * Next token
+ *
+ * Next token
+ *
+ * Constraints:
+ * Next token
+ *
+ * Next token
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Next token
+ *
+ * Gets a list of the flywheels that you have created.
+ *
+ * Filters the flywheels that are returned. You can filter flywheels on
+ * their status, or the date and time that they were submitted. You can only
+ * set one filter at a time.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Constraints:
+ * Filters the flywheels that are returned. You can filter flywheels on
+ * their status, or the date and time that they were submitted. You can only
+ * set one filter at a time.
+ *
+ * Filters the flywheels that are returned. You can filter flywheels
+ * on their status, or the date and time that they were submitted.
+ * You can only set one filter at a time.
+ *
+ * Filters the flywheels that are returned. You can filter flywheels on
+ * their status, or the date and time that they were submitted. You can only
+ * set one filter at a time.
+ *
+ * Filters the flywheels that are returned. You can filter
+ * flywheels on their status, or the date and time that they were
+ * submitted. You can only set one filter at a time.
+ *
+ * Filters the flywheels that are returned. You can filter flywheels on
+ * their status, or the date and time that they were submitted. You can only
+ * set one filter at a time.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param filter
+ * Filters the flywheels that are returned. You can filter
+ * flywheels on their status, or the date and time that they were
+ * submitted. You can only set one filter at a time.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default is
+ * 100.
+ *
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default
+ * is 100.
+ *
+ * Maximum number of results to return in a response. The default is 100.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Maximum number of results to return in a response. The default
+ * is 100.
+ *
+ * A list of flywheel properties retrieved by the service in response to the
+ * request.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * A list of flywheel properties retrieved by the service in response to the
+ * request.
+ *
+ * A list of flywheel properties retrieved by the service in
+ * response to the request.
+ *
+ * A list of flywheel properties retrieved by the service in response to the
+ * request.
+ *
+ * A list of flywheel properties retrieved by the service in
+ * response to the request.
+ *
+ * A list of flywheel properties retrieved by the service in response to the
+ * request.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param flywheelSummaryList
+ * A list of flywheel properties retrieved by the service in
+ * response to the request.
+ *
+ * A list of flywheel properties retrieved by the service in response to the
+ * request.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param flywheelSummaryList
+ * A list of flywheel properties retrieved by the service in
+ * response to the request.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
+ * Identifies the next page of results to return.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * Identifies the next page of results to return.
+ *
* The Amazon Resource Name (ARN) of the given Amazon Comprehend
@@ -73,7 +75,8 @@ public String getResourceArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
* The Amazon Resource Name (ARN) of the given Amazon Comprehend
@@ -98,7 +101,8 @@ public void setResourceArn(String resourceArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
* The Amazon Resource Name (ARN) of the given Amazon Comprehend
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTagsForResourceResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTagsForResourceResult.java
index f388aadf99c..38915dd7eaf 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTagsForResourceResult.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTagsForResourceResult.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.
@@ -29,7 +29,8 @@ public class ListTagsForResourceResult implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
* The Amazon Resource Name (ARN) of the given Amazon Comprehend
@@ -76,7 +78,8 @@ public String getResourceArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
* The Amazon Resource Name (ARN) of the given Amazon Comprehend
@@ -101,7 +104,8 @@ public void setResourceArn(String resourceArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
* The Amazon Resource Name (ARN) of the given Amazon Comprehend
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTargetedSentimentDetectionJobsRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTargetedSentimentDetectionJobsRequest.java
index 49517aba3e2..6c5e3a2304a 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTargetedSentimentDetectionJobsRequest.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTargetedSentimentDetectionJobsRequest.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/ListTargetedSentimentDetectionJobsResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTargetedSentimentDetectionJobsResult.java
index f80f28b7134..5ca2f512cbf 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTargetedSentimentDetectionJobsResult.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTargetedSentimentDetectionJobsResult.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/ListTopicsDetectionJobsRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTopicsDetectionJobsRequest.java
index 3ae413bd6ad..a778a5e12f6 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTopicsDetectionJobsRequest.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTopicsDetectionJobsRequest.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/ListTopicsDetectionJobsResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTopicsDetectionJobsResult.java
index ebe04e3d6f9..bd89026e830 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTopicsDetectionJobsResult.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ListTopicsDetectionJobsResult.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/MentionSentiment.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/MentionSentiment.java
index 5cc9f509d1d..ec5720dcfcb 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/MentionSentiment.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/MentionSentiment.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/ModelStatus.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ModelStatus.java
index 6e8e737e2ec..70d437fabf4 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ModelStatus.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ModelStatus.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.
@@ -29,7 +29,8 @@ public enum ModelStatus {
STOP_REQUESTED("STOP_REQUESTED"),
STOPPED("STOPPED"),
IN_ERROR("IN_ERROR"),
- TRAINED("TRAINED");
+ TRAINED("TRAINED"),
+ TRAINED_WITH_WARNING("TRAINED_WITH_WARNING");
private String value;
@@ -52,6 +53,7 @@ public String toString() {
enumMap.put("STOPPED", STOPPED);
enumMap.put("IN_ERROR", IN_ERROR);
enumMap.put("TRAINED", TRAINED);
+ enumMap.put("TRAINED_WITH_WARNING", TRAINED_WITH_WARNING);
}
/**
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ModelType.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ModelType.java
new file mode 100644
index 00000000000..7a2974de9a0
--- /dev/null
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ModelType.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;
+
+/**
+ * Model Type
+ */
+public enum ModelType {
+
+ DOCUMENT_CLASSIFIER("DOCUMENT_CLASSIFIER"),
+ ENTITY_RECOGNIZER("ENTITY_RECOGNIZER");
+
+ private String value;
+
+ private ModelType(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return value;
+ }
+
+ private static final Map
* When you use the
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
- * uses to encrypt the output results from an analysis job. The KmsKeyId can
- * be one of the following formats:
+ * ID for the Amazon Web Services Key Management Service (KMS) key that
+ * Amazon Comprehend uses to encrypt the output results from an analysis
+ * job. The KmsKeyId can be one of the following formats:
*
* When you use the
@@ -141,7 +141,7 @@ public String getS3Uri() {
*
* When you use the
+ *
+ */
+public class InvalidRequestDetail implements Serializable {
+ /**
+ * INVALID_DOCUMENT
.
+ *
+ * Allowed Values: DOCUMENT_SIZE_EXCEEDED, UNSUPPORTED_DOC_TYPE,
+ * PAGE_LIMIT_EXCEEDED, TEXTRACT_ACCESS_DENIED
+ */
+ private String reason;
+
+ /**
+ * INVALID_DOCUMENT
.
+ *
+ * Allowed Values: DOCUMENT_SIZE_EXCEEDED, UNSUPPORTED_DOC_TYPE,
+ * PAGE_LIMIT_EXCEEDED, TEXTRACT_ACCESS_DENIED
+ *
+ * @return INVALID_DOCUMENT
.
+ * INVALID_DOCUMENT
.
+ *
+ * Allowed Values: DOCUMENT_SIZE_EXCEEDED, UNSUPPORTED_DOC_TYPE,
+ * PAGE_LIMIT_EXCEEDED, TEXTRACT_ACCESS_DENIED
+ *
+ * @param reason INVALID_DOCUMENT
.
+ * INVALID_DOCUMENT
.
+ *
+ * Allowed Values: DOCUMENT_SIZE_EXCEEDED, UNSUPPORTED_DOC_TYPE,
+ * PAGE_LIMIT_EXCEEDED, TEXTRACT_ACCESS_DENIED
+ *
+ * @param reason INVALID_DOCUMENT
.
+ * INVALID_DOCUMENT
.
+ *
+ * Allowed Values: DOCUMENT_SIZE_EXCEEDED, UNSUPPORTED_DOC_TYPE,
+ * PAGE_LIMIT_EXCEEDED, TEXTRACT_ACCESS_DENIED
+ *
+ * @param reason INVALID_DOCUMENT
.
+ * INVALID_DOCUMENT
.
+ *
+ * Allowed Values: DOCUMENT_SIZE_EXCEEDED, UNSUPPORTED_DOC_TYPE,
+ * PAGE_LIMIT_EXCEEDED, TEXTRACT_ACCESS_DENIED
+ *
+ * @param reason INVALID_DOCUMENT
.
+ *
+ *
+ */
+ private InvalidRequestDetail detail;
+
/**
* Constructs a new InvalidRequestException with the specified error
* message.
@@ -34,4 +70,164 @@ public class InvalidRequestException extends AmazonServiceException {
public InvalidRequestException(String message) {
super(message);
}
+
+ /**
+ * Returns the value of the reason property for this object.
+ *
+ * Allowed Values: INVALID_DOCUMENT
+ *
+ * @return The value of the reason property for this object.
+ * @see InvalidRequestReason
+ */
+ public String getReason() {
+ return reason;
+ }
+
+ /**
+ * Sets the value of reason
+ *
+ * Allowed Values: INVALID_DOCUMENT
+ *
+ * @param reason The new value for the reason property for this object.
+ * @see InvalidRequestReason
+ */
+ public void setReason(String reason) {
+ this.reason = reason;
+ }
+
+ /**
+ *
+ *
+ *
+ * @return
+ *
+ */
+ public InvalidRequestDetail getDetail() {
+ return detail;
+ }
+
+ /**
+ *
+ *
+ *
+ * @param detail
+ *
+ */
+ public void setDetail(InvalidRequestDetail detail) {
+ this.detail = detail;
+ }
}
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InvalidRequestReason.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InvalidRequestReason.java
new file mode 100644
index 00000000000..883a0c3c7f7
--- /dev/null
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/InvalidRequestReason.java
@@ -0,0 +1,60 @@
+/*
+ * 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;
+
+/**
+ * Invalid Request Reason
+ */
+public enum InvalidRequestReason {
+
+ INVALID_DOCUMENT("INVALID_DOCUMENT");
+
+ private String value;
+
+ private InvalidRequestReason(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return value;
+ }
+
+ private static final Maparn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>
@@ -55,7 +56,8 @@ public class KeyPhrasesDetectionJobProperties implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -132,8 +134,8 @@ public class KeyPhrasesDetectionJobProperties implements Serializable {
/**
*
@@ -144,10 +146,9 @@ public class KeyPhrasesDetectionJobProperties implements Serializable {
/**
*
*
arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>
@@ -258,13 +260,14 @@ public KeyPhrasesDetectionJobProperties withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>
@@ -283,8 +286,9 @@ public String getJobArn() {
/**
* arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>
@@ -301,13 +305,15 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>
@@ -326,8 +332,9 @@ public void setJobArn(String jobArn) {
/**
* arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>
@@ -347,13 +354,15 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:key-phrases-detection-job/<job-id>
@@ -890,8 +899,8 @@ public KeyPhrasesDetectionJobProperties withLanguageCode(LanguageCode languageCo
/**
*
@@ -899,8 +908,8 @@ public KeyPhrasesDetectionJobProperties withLanguageCode(LanguageCode languageCo
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -918,8 +927,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*
+ * 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;
+
+ /**
+ *
+ * Length: 1 -
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Range: 1 - 500
+ */
+ private Integer maxResults;
+
+ /**
+ *
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Range: 1 - 500
+ *
+ * @return
+ * Range: 1 - 500
+ *
+ * @param maxResults
+ * Range: 1 - 500
+ *
+ * @param maxResults
+ * Length: 1 -
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Length: 1 -
+ *
+ * @param nextToken
@@ -116,14 +116,14 @@ public ListEntityRecognizerSummariesResult withEntityRecognizerSummariesList(
/**
*
* Length: 1 -
*
* @return
* Length: 1 -
*
* @param nextToken
*
* @param nextToken
+ * 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;
+
+ /**
+ *
+ * Length: 1 -
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Range: 1 - 500
+ */
+ private Integer maxResults;
+
+ /**
+ *
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Range: 1 - 500
+ *
+ * @return
+ * Range: 1 - 500
+ *
+ * @param maxResults
+ * Range: 1 - 500
+ *
+ * @param maxResults
+ * Length: 1 -
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Length: 1 -
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Range: 1 - 500
+ */
+ private Integer maxResults;
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Range: 1 - 500
+ *
+ * @return
+ * Range: 1 - 500
+ *
+ * @param maxResults
+ * Range: 1 - 500
+ *
+ * @param maxResults
+ * Length: 1 -
+ */
+ private String nextToken;
+
+ /**
+ *
+ * Length: 1 -
+ *
+ * @return
+ * Length: 1 -
+ *
+ * @param nextToken
+ * Length: 1 -
+ *
+ * @param nextToken
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String resourceArn;
@@ -51,7 +52,8 @@ public class ListTagsForResourceRequest extends AmazonWebServiceRequest implemen
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param resourceArn
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param resourceArn
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String resourceArn;
@@ -54,7 +55,8 @@ public class ListTagsForResourceResult implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param resourceArn
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param resourceArn OutputDataConfig
object with asynchronous
* operations, you specify the Amazon S3 location where you want to write
- * the output data. The URI must be in the same region as the API endpoint
+ * the output data. The URI must be in the same Region as the API endpoint
* that you are calling. The location is used as the prefix for the actual
* location of the output file.
*
*
OutputDataConfig
object with asynchronous
* operations, you specify the Amazon S3 location where you want to write
- * the output data. The URI must be in the same region as the API endpoint
+ * the output data. The URI must be in the same Region as the API endpoint
* that you are calling. The location is used as the prefix for the actual
* location of the output file.
* OutputDataConfig
object with
* asynchronous operations, you specify the Amazon S3 location where
* you want to write the output data. The URI must be in the same
- * region as the API endpoint that you are calling. The location is
+ * Region as the API endpoint that you are calling. The location is
* used as the prefix for the actual location of the output file.
* OutputDataConfig
object with asynchronous
* operations, you specify the Amazon S3 location where you want to write
- * the output data. The URI must be in the same region as the API endpoint
+ * the output data. The URI must be in the same Region as the API endpoint
* that you are calling. The location is used as the prefix for the actual
* location of the output file.
* OutputDataConfig
object with
* asynchronous operations, you specify the Amazon S3 location
* where you want to write the output data. The URI must be in
- * the same region as the API endpoint that you are calling. The
+ * the same Region as the API endpoint that you are calling. The
* location is used as the prefix for the actual location of the
* output file.
*
* When you use the OutputDataConfig
object with asynchronous
* operations, you specify the Amazon S3 location where you want to write
- * the output data. The URI must be in the same region as the API endpoint
+ * the output data. The URI must be in the same Region as the API endpoint
* that you are calling. The location is used as the prefix for the actual
* location of the output file.
*
OutputDataConfig
object with
* asynchronous operations, you specify the Amazon S3 location
* where you want to write the output data. The URI must be in
- * the same region as the API endpoint that you are calling. The
+ * the same Region as the API endpoint that you are calling. The
* location is used as the prefix for the actual location of the
* output file.
*
@@ -245,9 +245,9 @@ public OutputDataConfig withS3Uri(String s3Uri) {
/**
* - * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt the output results from an analysis job. The KmsKeyId can - * be one of the following formats: + * ID for the Amazon Web Services Key Management Service (KMS) key that + * Amazon Comprehend uses to encrypt the output results from an analysis + * job. The KmsKeyId can be one of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt the output results from an analysis - * job. The KmsKeyId can be one of the following formats: + * ID for the Amazon Web Services Key Management Service (KMS) key + * that Amazon Comprehend uses to encrypt the output results from an + * analysis job. The KmsKeyId can be one of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt the output results from an analysis job. The KmsKeyId can - * be one of the following formats: + * ID for the Amazon Web Services Key Management Service (KMS) key that + * Amazon Comprehend uses to encrypt the output results from an analysis + * job. The KmsKeyId can be one of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt the output results from an analysis - * job. The KmsKeyId can be one of the following formats: + * ID for the Amazon Web Services Key Management Service (KMS) + * key that Amazon Comprehend uses to encrypt the output results + * from an analysis job. The KmsKeyId can be one of the following + * formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt the output results from an analysis job. The KmsKeyId can - * be one of the following formats: + * ID for the Amazon Web Services Key Management Service (KMS) key that + * Amazon Comprehend uses to encrypt the output results from an analysis + * job. The KmsKeyId can be one of the following formats: *
*- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt the output results from an analysis - * job. The KmsKeyId can be one of the following formats: + * ID for the Amazon Web Services Key Management Service (KMS) + * key that Amazon Comprehend uses to encrypt the output results + * from an analysis job. The KmsKeyId can be one of the following + * formats: *
** The Amazon Resource Name (ARN) of the PII entities detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
@@ -55,7 +56,8 @@ public class PiiEntitiesDetectionJobProperties implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -145,8 +147,8 @@ public class PiiEntitiesDetectionJobProperties implements Serializable {
/**
*
- * The Amazon Resource Name (ARN) that gives 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:
@@ -226,8 +228,9 @@ public PiiEntitiesDetectionJobProperties withJobId(String jobId) {
/**
*
* The Amazon Resource Name (ARN) of the PII entities detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
@@ -244,13 +247,14 @@ public PiiEntitiesDetectionJobProperties withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return
* The Amazon Resource Name (ARN) of the PII entities detection job. * It is a unique, fully qualified identifier for the job. It - * includes the AWS account, Region, and the job ID. The format of - * the ARN is as follows: + * includes the Amazon Web Services account, Amazon Web Services + * Region, and the job ID. The format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
@@ -269,8 +273,9 @@ public String getJobArn() {
/**
*
* The Amazon Resource Name (ARN) of the PII entities detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
@@ -287,13 +292,15 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* The Amazon Resource Name (ARN) of the PII entities detection * job. It is a unique, fully qualified identifier for the job. - * It includes the AWS account, Region, and the job ID. The - * format of the ARN is as follows: + * It includes the Amazon Web Services account, Amazon Web + * Services Region, and the job ID. The format of the ARN is as + * follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
@@ -312,8 +319,9 @@ public void setJobArn(String jobArn) {
/**
*
* The Amazon Resource Name (ARN) of the PII entities detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
@@ -333,13 +341,15 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* The Amazon Resource Name (ARN) of the PII entities detection * job. It is a unique, fully qualified identifier for the job. - * It includes the AWS account, Region, and the job ID. The - * format of the ARN is as follows: + * It includes the Amazon Web Services account, Amazon Web + * Services Region, and the job ID. The format of the ARN is as + * follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
@@ -955,8 +965,8 @@ public PiiEntitiesDetectionJobProperties withLanguageCode(LanguageCode languageC
/**
*
- * The Amazon Resource Name (ARN) that gives 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:
@@ -964,8 +974,8 @@ public PiiEntitiesDetectionJobProperties withLanguageCode(LanguageCode languageC
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
- * The Amazon Resource Name (ARN) that gives 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. *
*/ public String getDataAccessRoleArn() { @@ -974,8 +984,8 @@ public String getDataAccessRoleArn() { /** *- * The Amazon Resource Name (ARN) that gives 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:
@@ -983,8 +993,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) that gives 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. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { @@ -993,8 +1003,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) { /** *- * The Amazon Resource Name (ARN) that gives 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. *
*
* Returns a reference to this object so that method calls can be chained
@@ -1005,8 +1015,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) that gives 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. *
* @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/PiiEntitiesDetectionMaskMode.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntitiesDetectionMaskMode.java index 0d83a052504..6dffec26629 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntitiesDetectionMaskMode.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntitiesDetectionMaskMode.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/PiiEntitiesDetectionMode.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntitiesDetectionMode.java index a722baff8dd..a0e498748cb 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntitiesDetectionMode.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntitiesDetectionMode.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/PiiEntity.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntity.java index 73767bf6db2..ae361d5fee6 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntity.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntity.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/PiiEntityType.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntityType.java index d41ec362705..6017b52924d 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntityType.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiEntityType.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/PiiOutputDataConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiOutputDataConfig.java index 77578adf3b8..3f6e65a25c9 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiOutputDataConfig.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PiiOutputDataConfig.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. @@ -44,8 +44,9 @@ public class PiiOutputDataConfig implements Serializable { /** *- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt the output results from an analysis job. + * ID for the Amazon Web Services Key Management Service (KMS) key that + * Amazon Comprehend uses to encrypt the output results from an analysis + * job. *
*
* Constraints:
@@ -155,8 +156,9 @@ public PiiOutputDataConfig withS3Uri(String s3Uri) {
/**
*
- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt the output results from an analysis job. + * ID for the Amazon Web Services Key Management Service (KMS) key that + * Amazon Comprehend uses to encrypt the output results from an analysis + * job. *
*
* Constraints:
@@ -164,9 +166,9 @@ public PiiOutputDataConfig withS3Uri(String s3Uri) {
* Pattern: ^\p{ASCII}+$
*
* @return
- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt the output results from an analysis - * job. + * ID for the Amazon Web Services Key Management Service (KMS) key + * that Amazon Comprehend uses to encrypt the output results from an + * analysis job. *
*/ public String getKmsKeyId() { @@ -175,8 +177,9 @@ public String getKmsKeyId() { /** *- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt the output results from an analysis job. + * ID for the Amazon Web Services Key Management Service (KMS) key that + * Amazon Comprehend uses to encrypt the output results from an analysis + * job. *
*
* Constraints:
@@ -184,9 +187,9 @@ public String getKmsKeyId() {
* Pattern: ^\p{ASCII}+$
*
* @param kmsKeyId
- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt the output results from an analysis - * job. + * ID for the Amazon Web Services Key Management Service (KMS) + * key that Amazon Comprehend uses to encrypt the output results + * from an analysis job. *
*/ public void setKmsKeyId(String kmsKeyId) { @@ -195,8 +198,9 @@ public void setKmsKeyId(String kmsKeyId) { /** *- * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend - * uses to encrypt the output results from an analysis job. + * ID for the Amazon Web Services Key Management Service (KMS) key that + * Amazon Comprehend uses to encrypt the output results from an analysis + * job. *
*
* Returns a reference to this object so that method calls can be chained
@@ -207,9 +211,9 @@ public void setKmsKeyId(String kmsKeyId) {
* Pattern: ^\p{ASCII}+$
*
* @param kmsKeyId
- * ID for the AWS Key Management Service (KMS) key that Amazon - * Comprehend uses to encrypt the output results from an analysis - * job. + * ID for the Amazon Web Services Key Management Service (KMS) + * key that Amazon Comprehend uses to encrypt the output results + * from an analysis job. *
* @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/Point.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Point.java new file mode 100644 index 00000000000..6e43b56669a --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/Point.java @@ -0,0 +1,185 @@ +/* + * 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 X and Y coordinates of a point on a document page. + *
+ *+ * For additional information, see Point in the Amazon Textract API reference. + *
+ */ +public class Point implements Serializable { + /** + *+ * The value of the X coordinate for a point on a polygon + *
+ */ + private Float x; + + /** + *+ * The value of the Y coordinate for a point on a polygon + *
+ */ + private Float y; + + /** + *+ * The value of the X coordinate for a point on a polygon + *
+ * + * @return+ * The value of the X coordinate for a point on a polygon + *
+ */ + public Float getX() { + return x; + } + + /** + *+ * The value of the X coordinate for a point on a polygon + *
+ * + * @param x+ * The value of the X coordinate for a point on a polygon + *
+ */ + public void setX(Float x) { + this.x = x; + } + + /** + *+ * The value of the X coordinate for a point on a polygon + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param x
+ * The value of the X coordinate for a point on a polygon + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Point withX(Float x) { + this.x = x; + return this; + } + + /** + *+ * The value of the Y coordinate for a point on a polygon + *
+ * + * @return+ * The value of the Y coordinate for a point on a polygon + *
+ */ + public Float getY() { + return y; + } + + /** + *+ * The value of the Y coordinate for a point on a polygon + *
+ * + * @param y+ * The value of the Y coordinate for a point on a polygon + *
+ */ + public void setY(Float y) { + this.y = y; + } + + /** + *+ * The value of the Y coordinate for a point on a polygon + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param y
+ * The value of the Y coordinate for a point on a polygon + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Point withY(Float y) { + this.y = y; + 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 (getX() != null) + sb.append("X: " + getX() + ","); + if (getY() != null) + sb.append("Y: " + getY()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getX() == null) ? 0 : getX().hashCode()); + hashCode = prime * hashCode + ((getY() == null) ? 0 : getY().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Point == false) + return false; + Point other = (Point) obj; + + if (other.getX() == null ^ this.getX() == null) + return false; + if (other.getX() != null && other.getX().equals(this.getX()) == false) + return false; + if (other.getY() == null ^ this.getY() == null) + return false; + if (other.getY() != null && other.getY().equals(this.getY()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyRequest.java index 88e3d264443..f3080e36ebe 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyRequest.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyRequest.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,8 +22,8 @@ /** ** 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. + * to authorize an entity in another Amazon Web Services account to import the + * custom model, which replicates it in Amazon Comprehend in their account. *
*/ public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable { diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyResult.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyResult.java index 42b40687273..e76fbd663a4 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyResult.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/PutResourcePolicyResult.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/RedactionConfig.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RedactionConfig.java index 4e1ca589a04..81453c13960 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RedactionConfig.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RedactionConfig.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/RelationshipType.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RelationshipType.java new file mode 100644 index 00000000000..4591cefe7ab --- /dev/null +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RelationshipType.java @@ -0,0 +1,60 @@ +/* + * 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; + +/** + * Relationship Type + */ +public enum RelationshipType { + + CHILD("CHILD"); + + private String value; + + private RelationshipType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map+ * List of child blocks for the current block. + *
+ */ +public class RelationshipsListItem implements Serializable { + /** + *+ * Identifers of the child blocks. + *
+ */ + private java.util.List+ * Only supported relationship is a child relationship. + *
+ *
+ * Constraints:
+ * Allowed Values: CHILD
+ */
+ private String type;
+
+ /**
+ *
+ * Identifers of the child blocks. + *
+ * + * @return+ * Identifers of the child blocks. + *
+ */ + public java.util.List+ * Identifers of the child blocks. + *
+ * + * @param ids+ * Identifers of the child blocks. + *
+ */ + public void setIds(java.util.Collection+ * Identifers of the child blocks. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param ids
+ * Identifers of the child blocks. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RelationshipsListItem withIds(String... ids) { + if (getIds() == null) { + this.ids = new java.util.ArrayList+ * Identifers of the child blocks. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param ids
+ * Identifers of the child blocks. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RelationshipsListItem withIds(java.util.Collection+ * Only supported relationship is a child relationship. + *
+ *
+ * Constraints:
+ * Allowed Values: CHILD
+ *
+ * @return
+ * Only supported relationship is a child relationship. + *
+ * @see RelationshipType + */ + public String getType() { + return type; + } + + /** + *+ * Only supported relationship is a child relationship. + *
+ *
+ * Constraints:
+ * Allowed Values: CHILD
+ *
+ * @param type
+ * Only supported relationship is a child relationship. + *
+ * @see RelationshipType + */ + public void setType(String type) { + this.type = type; + } + + /** + *+ * Only supported relationship is a child relationship. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CHILD
+ *
+ * @param type
+ * Only supported relationship is a child relationship. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see RelationshipType + */ + public RelationshipsListItem withType(String type) { + this.type = type; + return this; + } + + /** + *+ * Only supported relationship is a child relationship. + *
+ *
+ * Constraints:
+ * Allowed Values: CHILD
+ *
+ * @param type
+ * Only supported relationship is a child relationship. + *
+ * @see RelationshipType + */ + public void setType(RelationshipType type) { + this.type = type.toString(); + } + + /** + *+ * Only supported relationship is a child relationship. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: CHILD
+ *
+ * @param type
+ * Only supported relationship is a child relationship. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + * @see RelationshipType + */ + public RelationshipsListItem withType(RelationshipType type) { + this.type = type.toString(); + 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 (getIds() != null) + sb.append("Ids: " + getIds() + ","); + if (getType() != null) + sb.append("Type: " + getType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getIds() == null) ? 0 : getIds().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RelationshipsListItem == false) + return false; + RelationshipsListItem other = (RelationshipsListItem) obj; + + if (other.getIds() == null ^ this.getIds() == null) + return false; + if (other.getIds() != null && other.getIds().equals(this.getIds()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceInUseException.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceInUseException.java index 6bd563c81c8..3007258d4d3 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceInUseException.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceInUseException.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/ResourceLimitExceededException.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceLimitExceededException.java index bf601f74bc5..e86df888ee6 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceLimitExceededException.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceLimitExceededException.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/ResourceNotFoundException.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceNotFoundException.java index a9c114e559c..7a2b8fb6c74 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceNotFoundException.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceNotFoundException.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/ResourceUnavailableException.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceUnavailableException.java index 7dd42a70ebf..013eb44953b 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceUnavailableException.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/ResourceUnavailableException.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/SentimentDetectionJobFilter.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/SentimentDetectionJobFilter.java index 0c4c24c67ac..446351c0d5e 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/SentimentDetectionJobFilter.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/SentimentDetectionJobFilter.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/SentimentDetectionJobProperties.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/SentimentDetectionJobProperties.java index 7eba0d86c28..b1f35d64d5b 100644 --- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/SentimentDetectionJobProperties.java +++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/SentimentDetectionJobProperties.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. @@ -37,8 +37,9 @@ public class SentimentDetectionJobProperties implements Serializable { /** ** The Amazon Resource Name (ARN) of the sentiment detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>
@@ -55,7 +56,8 @@ public class SentimentDetectionJobProperties implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -132,8 +134,8 @@ public class SentimentDetectionJobProperties implements Serializable {
/**
*
- * The Amazon Resource Name (ARN) that gives 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:
@@ -144,10 +146,10 @@ public class SentimentDetectionJobProperties implements Serializable {
/**
*
- * 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: *
** The Amazon Resource Name (ARN) of the sentiment detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>
@@ -258,13 +261,14 @@ public SentimentDetectionJobProperties withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return
* The Amazon Resource Name (ARN) of the sentiment detection job. It * is a unique, fully qualified identifier for the job. It includes - * the AWS account, Region, and the job ID. The format of the ARN is - * as follows: + * the Amazon Web Services account, Amazon Web Services Region, and + * the job ID. The format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>
@@ -283,8 +287,9 @@ public String getJobArn() {
/**
*
* The Amazon Resource Name (ARN) of the sentiment detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>
@@ -301,13 +306,14 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* The Amazon Resource Name (ARN) of the sentiment detection job. * It is a unique, fully qualified identifier for the job. It - * includes the AWS account, Region, and the job ID. The format - * of the ARN is as follows: + * includes the Amazon Web Services account, Amazon Web Services + * Region, and the job ID. The format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>
@@ -326,8 +332,9 @@ public void setJobArn(String jobArn) {
/**
*
* The Amazon Resource Name (ARN) of the sentiment detection job. It is a - * unique, fully qualified identifier for the job. It includes the AWS - * account, Region, and the job ID. The format of the ARN is as follows: + * unique, fully qualified identifier for the job. It includes the Amazon + * Web Services account, Amazon Web Services Region, and the job ID. The + * format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>
@@ -347,13 +354,14 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* The Amazon Resource Name (ARN) of the sentiment detection job. * It is a unique, fully qualified identifier for the job. It - * includes the AWS account, Region, and the job ID. The format - * of the ARN is as follows: + * includes the Amazon Web Services account, Amazon Web Services + * Region, and the job ID. The format of the ARN is as follows: *
*
* arn:<partition>:comprehend:<region>:<account-id>:sentiment-detection-job/<job-id>
@@ -890,8 +898,8 @@ public SentimentDetectionJobProperties withLanguageCode(LanguageCode languageCod
/**
*
- * The Amazon Resource Name (ARN) that gives 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:
@@ -899,8 +907,8 @@ public SentimentDetectionJobProperties withLanguageCode(LanguageCode languageCod
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
- * The Amazon Resource Name (ARN) that gives 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. *
*/ public String getDataAccessRoleArn() { @@ -909,8 +917,8 @@ public String getDataAccessRoleArn() { /** *- * The Amazon Resource Name (ARN) that gives 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:
@@ -918,8 +926,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) that gives 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. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { @@ -928,8 +936,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) { /** *- * The Amazon Resource Name (ARN) that gives 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. *
*
* Returns a reference to this object so that method calls can be chained
@@ -940,8 +948,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
- * The Amazon Resource Name (ARN) that gives 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. *
* @return A reference to this updated object so that method calls can be * chained together. @@ -953,10 +961,10 @@ public SentimentDetectionJobProperties withDataAccessRoleArn(String dataAccessRo /** *- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*- * 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: *
*
- * 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.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access 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:
@@ -93,10 +94,10 @@ public class StartDocumentClassificationJobRequest extends AmazonWebServiceReque
/**
*
- * 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: *
*
- * Tags to be associated with the document classification job. A tag is a
+ * Tags to associate with the document classification job. A tag is a
* key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
@@ -139,6 +140,20 @@ public class StartDocumentClassificationJobRequest extends AmazonWebServiceReque
*/
private java.util.List
+ * The Amazon Resource Number (ARN) of the flywheel associated with the
+ * model to use.
+ *
+ * Constraints:
* The identifier of the job.
@@ -364,8 +379,8 @@ public StartDocumentClassificationJobRequest withOutputDataConfig(
/**
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access 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:
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * 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.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access 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:
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * 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.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access 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.
*
* Returns a reference to this object so that method calls can be chained
@@ -416,9 +429,8 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to your input data.
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to your input data.
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * Tags to be associated with the document classification job. A tag is a
+ * Tags to associate with the document classification job. A tag is a
* key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
*
- * Tags to be associated with the document classification job. A tag
- * is a key-value pair that adds metadata to a resource used by
- * Amazon Comprehend. For example, a tag with "Sales" as the key
- * might be added to a resource to indicate its use by the sales
- * department.
+ * Tags to associate with the document classification job. A tag is
+ * a key-value pair that adds metadata to a resource used by Amazon
+ * Comprehend. For example, a tag with "Sales" as the key might be
+ * added to a resource to indicate its use by the sales department.
*
- * Tags to be associated with the document classification job. A tag is a
+ * Tags to associate with the document classification job. A tag is a
* key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
*
- * Tags to be associated with the document classification job. A
- * tag is a key-value pair that adds metadata to a resource used
- * by Amazon Comprehend. For example, a tag with "Sales" as the
- * key might be added to a resource to indicate its use by the
- * sales department.
+ * Tags to associate with the document classification job. A tag
+ * is a key-value pair that adds metadata to a resource used by
+ * Amazon Comprehend. For example, a tag with "Sales" as the key
+ * might be added to a resource to indicate its use by the sales
+ * department.
*
- * Tags to be associated with the document classification job. A tag is a
+ * Tags to associate with the document classification job. A tag is a
* key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
@@ -774,11 +787,11 @@ public void setTags(java.util.Collection
- * Tags to be associated with the document classification job. A
- * tag is a key-value pair that adds metadata to a resource used
- * by Amazon Comprehend. For example, a tag with "Sales" as the
- * key might be added to a resource to indicate its use by the
- * sales department.
+ * Tags to associate with the document classification job. A tag
+ * is a key-value pair that adds metadata to a resource used by
+ * Amazon Comprehend. For example, a tag with "Sales" as the key
+ * might be added to a resource to indicate its use by the sales
+ * department.
*
- * Tags to be associated with the document classification job. A tag is a
+ * Tags to associate with the document classification job. A tag is a
* key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
@@ -805,11 +818,11 @@ public StartDocumentClassificationJobRequest withTags(Tag... tags) {
* together.
*
* @param tags
- * Tags to be associated with the document classification job. A
- * tag is a key-value pair that adds metadata to a resource used
- * by Amazon Comprehend. For example, a tag with "Sales" as the
- * key might be added to a resource to indicate its use by the
- * sales department.
+ * Tags to associate with the document classification job. A tag
+ * is a key-value pair that adds metadata to a resource used by
+ * Amazon Comprehend. For example, a tag with "Sales" as the key
+ * might be added to a resource to indicate its use by the sales
+ * department.
*
+ * The Amazon Resource Number (ARN) of the flywheel associated with the
+ * model to use.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel associated with
+ * the model to use.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel associated with the
+ * model to use.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel associated
+ * with the model to use.
+ *
+ * The Amazon Resource Number (ARN) of the flywheel associated with the
+ * model to use.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The Amazon Resource Number (ARN) of the flywheel associated
+ * with the model to use.
+ *
* The identifier generated for the job. To get the status of the job, use
- * this identifier with the operation.
+ * this identifier with the
* Constraints:
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
- * FAILED - The job did not complete. For details, use the operation.
+ * FAILED - The job did not complete. For details, use the
+ *
+ * The ARN of the custom classification model.
+ *
+ * Constraints:
* The identifier generated for the job. To get the status of the job, use
- * this identifier with the operation.
+ * this identifier with the
* Constraints:
* The identifier generated for the job. To get the status of the
- * job, use this identifier with the operation.
+ * job, use this identifier with the
+ *
* The identifier generated for the job. To get the status of the job, use
- * this identifier with the operation.
+ * this identifier with the
* Constraints:
* The identifier generated for the job. To get the status of the
- * job, use this identifier with the operation.
+ * job, use this identifier with the
+ *
* The identifier generated for the job. To get the status of the job, use
- * this identifier with the operation.
+ * this identifier with the
* Returns a reference to this object so that method calls can be chained
@@ -153,7 +176,8 @@ public void setJobId(String jobId) {
*
* @param jobId
* The identifier generated for the job. To get the status of the
- * job, use this identifier with the operation.
+ * job, use this identifier with the
+ *
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification
* job. It is a unique, fully qualified identifier for the job. It
- * includes the AWS account, Region, and the job ID. The format of
- * the ARN is as follows:
+ * includes the Amazon Web Services account, Amazon Web Services
+ * Region, and the job ID. The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification
* job. It is a unique, fully qualified identifier for the job.
- * It includes the AWS account, Region, and the job ID. The
- * format of the ARN is as follows:
+ * It includes the Amazon Web Services account, Amazon Web
+ * Services Region, and the job ID. The format of the ARN is as
+ * follows:
*
*
* The Amazon Resource Name (ARN) of the document classification job. It is
- * a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * a unique, fully qualified identifier for the job. It includes the Amazon
+ * Web Services account, Amazon Web Services Region, and the job ID. The
+ * format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the document classification
* job. It is a unique, fully qualified identifier for the job.
- * It includes the AWS account, Region, and the job ID. The
- * format of the ARN is as follows:
+ * It includes the Amazon Web Services account, Amazon Web
+ * Services Region, and the job ID. The format of the ARN is as
+ * follows:
*
*
- * FAILED - The job did not complete. For details, use the operation.
+ * FAILED - The job did not complete. For details, use the
+ *
* FAILED - The job did not complete. For details, use the
- * operation.
+ *
- * FAILED - The job did not complete. For details, use the operation.
+ * FAILED - The job did not complete. For details, use the
+ *
* FAILED - The job did not complete. For details, use the
- * operation.
+ *
- * FAILED - The job did not complete. For details, use the operation.
+ * FAILED - The job did not complete. For details, use the
+ *
* FAILED - The job did not complete. For details, use the
- * operation.
+ *
- * FAILED - The job did not complete. For details, use the operation.
+ * FAILED - The job did not complete. For details, use the
+ *
* FAILED - The job did not complete. For details, use the
- * operation.
+ *
- * FAILED - The job did not complete. For details, use the operation.
+ * FAILED - The job did not complete. For details, use the
+ *
* FAILED - The job did not complete. For details, use the
- * operation.
+ *
+ * The ARN of the custom classification model.
+ *
+ * Constraints:
+ * The ARN of the custom classification model.
+ *
+ * The ARN of the custom classification model.
+ *
+ * Constraints:
+ * The ARN of the custom classification model.
+ *
+ * The ARN of the custom classification model.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * The ARN of the custom classification model.
+ *
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Constraints:
- * 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:
*
- * Tags to be associated with the dominant language detection job. A tag is
- * a key-value pair that adds metadata to a resource used by Amazon
+ * Tags to associate with the dominant language detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * Management (IAM) role that grants Amazon Comprehend read access
- * to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-
- * managing-permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information,
+ * see Role-based permissions.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-
- * control-managing-permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to your input data. For more
+ * information, see Role-based permissions.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Returns a reference to this object so that method calls can be chained
@@ -294,12 +288,11 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-
- * control-managing-permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to your input data. For more
+ * information, see Role-based permissions.
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * Tags to be associated with the dominant language detection job. A tag is
- * a key-value pair that adds metadata to a resource used by Amazon
+ * Tags to associate with the dominant language detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
*
- * Tags to be associated with the dominant language detection job. A
- * tag is a key-value pair that adds metadata to a resource used by
+ * Tags to associate with the dominant language detection job. A tag
+ * is a key-value pair that adds metadata to a resource used by
* Amazon Comprehend. For example, a tag with "Sales" as the key
* might be added to a resource to indicate its use by the sales
* department.
@@ -678,18 +673,18 @@ public java.util.List
- * Tags to be associated with the dominant language detection job. A tag is
- * a key-value pair that adds metadata to a resource used by Amazon
+ * Tags to associate with the dominant language detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
*
- * Tags to be associated with the dominant language detection
- * job. A tag is a key-value pair that adds metadata to a
- * resource used by Amazon Comprehend. For example, a tag with
- * "Sales" as the key might be added to a resource to indicate
- * its use by the sales department.
+ * Tags to associate with the dominant language detection job. A
+ * tag is a key-value pair that adds metadata to a resource used
+ * by Amazon Comprehend. For example, a tag with "Sales" as the
+ * key might be added to a resource to indicate its use by the
+ * sales department.
*
- * Tags to be associated with the dominant language detection job. A tag is
- * a key-value pair that adds metadata to a resource used by Amazon
+ * Tags to associate with the dominant language detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
*
- * Tags to be associated with the dominant language detection
- * job. A tag is a key-value pair that adds metadata to a
- * resource used by Amazon Comprehend. For example, a tag with
- * "Sales" as the key might be added to a resource to indicate
- * its use by the sales department.
+ * Tags to associate with the dominant language detection job. A
+ * tag is a key-value pair that adds metadata to a resource used
+ * by Amazon Comprehend. For example, a tag with "Sales" as the
+ * key might be added to a resource to indicate its use by the
+ * sales department.
*
- * Tags to be associated with the dominant language detection job. A tag is
- * a key-value pair that adds metadata to a resource used by Amazon
+ * Tags to associate with the dominant language detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be added to
* a resource to indicate its use by the sales department.
*
- * Tags to be associated with the dominant language detection
- * job. A tag is a key-value pair that adds metadata to a
- * resource used by Amazon Comprehend. For example, a tag with
- * "Sales" as the key might be added to a resource to indicate
- * its use by the sales department.
+ * Tags to associate with the dominant language detection job. A
+ * tag is a key-value pair that adds metadata to a resource used
+ * by Amazon Comprehend. For example, a tag with "Sales" as the
+ * key might be added to a resource to indicate its use by the
+ * sales department.
*
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language detection
* job. It is a unique, fully qualified identifier for the job. It
- * includes the AWS account, Region, and the job ID. The format of
- * the ARN is as follows:
+ * includes the Amazon Web Services account, Amazon Web Services
+ * Region, and the job ID. The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language
* detection job. It is a unique, fully qualified identifier for
- * the job. It includes the AWS account, Region, and the job ID.
- * The format of the ARN is as follows:
+ * the job. It includes the Amazon Web Services account, Amazon
+ * Web Services Region, and the job ID. The format of the ARN is
+ * as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language detection job. It
- * is a unique, fully qualified identifier for the job. It includes the AWS
- * account, Region, and the job ID. The format of the ARN is as follows:
+ * is a unique, fully qualified identifier for the job. It includes the
+ * Amazon Web Services account, Amazon Web Services Region, and the job ID.
+ * The format of the ARN is as follows:
*
*
* The Amazon Resource Name (ARN) of the dominant language
* detection job. It is a unique, fully qualified identifier for
- * the job. It includes the AWS account, Region, and the job ID.
- * The format of the ARN is as follows:
+ * the job. It includes the Amazon Web Services account, Amazon
+ * Web Services Region, and the job ID. The format of the ARN is
+ * as follows:
*
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Constraints:
- * 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:
*
- * Tags to be associated with the entities detection job. A tag is a
- * key-value pair that adds metadata to a resource used by Amazon
- * Comprehend. For example, a tag with "Sales" as the key might be added to
- * a resource to indicate its use by the sales department.
+ * Tags to associate with the entities detection job. A tag is a key-value
+ * pair that adds metadata to a resource used by Amazon Comprehend. For
+ * example, a tag with "Sales" as the key might be added to a resource to
+ * indicate its use by the sales department.
*
+ * The Amazon Resource Number (ARN) of the flywheel associated with the
+ * model to use.
+ *
+ * Constraints:
* Specifies the format and location of the input data for the job.
@@ -257,12 +270,11 @@ public StartEntitiesDetectionJobRequest withOutputDataConfig(OutputDataConfig ou
/**
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * Management (IAM) role that grants Amazon Comprehend read access
- * to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-
- * managing-permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information,
+ * see Role-based permissions.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Constraints:
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-
- * control-managing-permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to your input data. For more
+ * information, see Role-based permissions.
*
- * The Amazon Resource Name (ARN) of the AWS Identity and Access Management
- * (IAM) role that grants Amazon Comprehend read access to your input data.
- * For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing
- * -permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants Amazon
+ * Comprehend read access to your input data. For more information, see Role-based permissions.
*
* Returns a reference to this object so that method calls can be chained
@@ -327,12 +335,11 @@ public void setDataAccessRoleArn(String dataAccessRoleArn) {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
- * The Amazon Resource Name (ARN) of the AWS Identity and Access
- * Management (IAM) role that grants Amazon Comprehend read
- * access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-
- * control-managing-permissions.html#auth-role-permissions.
+ * The Amazon Resource Name (ARN) of the IAM role that grants
+ * Amazon Comprehend read access to your input data. For more
+ * information, see Role-based permissions.
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * 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:
*
- * Tags to be associated with the entities detection job. A tag is a
- * key-value pair that adds metadata to a resource used by Amazon
- * Comprehend. For example, a tag with "Sales" as the key might be added to
- * a resource to indicate its use by the sales department.
+ * Tags to associate with the entities detection job. A tag is a key-value
+ * pair that adds metadata to a resource used by Amazon Comprehend. For
+ * example, a tag with "Sales" as the key might be added to a resource to
+ * indicate its use by the sales department.
*
- * Tags to be associated with the entities detection job. A tag is a
+ * Tags to associate with the entities detection job. A tag is a
* key-value pair that adds metadata to a resource used by Amazon
* Comprehend. For example, a tag with "Sales" as the key might be
* added to a resource to indicate its use by the sales department.
@@ -920,17 +929,17 @@ public java.util.List
- * Tags to be associated with the entities detection job. A tag is a
- * key-value pair that adds metadata to a resource used by Amazon
- * Comprehend. For example, a tag with "Sales" as the key might be added to
- * a resource to indicate its use by the sales department.
+ * Tags to associate with the entities detection job. A tag is a key-value
+ * pair that adds metadata to a resource used by Amazon Comprehend. For
+ * example, a tag with "Sales" as the key might be added to a resource to
+ * indicate its use by the sales department.
*
- * Tags to be associated with the entities detection job. A tag
- * is a key-value pair that adds metadata to a resource used by
- * Amazon Comprehend. For example, a tag with "Sales" as the key
- * might be added to a resource to indicate its use by the sales
+ * Tags to associate with the entities detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
+ * Comprehend. For example, a tag with "Sales" as the key might
+ * be added to a resource to indicate its use by the sales
* department.
*
- * Tags to be associated with the entities detection job. A tag is a
- * key-value pair that adds metadata to a resource used by Amazon
- * Comprehend. For example, a tag with "Sales" as the key might be added to
- * a resource to indicate its use by the sales department.
+ * Tags to associate with the entities detection job. A tag is a key-value
+ * pair that adds metadata to a resource used by Amazon Comprehend. For
+ * example, a tag with "Sales" as the key might be added to a resource to
+ * indicate its use by the sales department.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param tags
- * Tags to be associated with the entities detection job. A tag
- * is a key-value pair that adds metadata to a resource used by
- * Amazon Comprehend. For example, a tag with "Sales" as the key
- * might be added to a resource to indicate its use by the sales
+ * Tags to associate with the entities detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
+ * Comprehend. For example, a tag with "Sales" as the key might
+ * be added to a resource to indicate its use by the sales
* department.
*
- * Tags to be associated with the entities detection job. A tag is a
- * key-value pair that adds metadata to a resource used by Amazon
- * Comprehend. For example, a tag with "Sales" as the key might be added to
- * a resource to indicate its use by the sales department.
+ * Tags to associate with the entities detection job. A tag is a key-value
+ * pair that adds metadata to a resource used by Amazon Comprehend. For
+ * example, a tag with "Sales" as the key might be added to a resource to
+ * indicate its use by the sales department.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param tags
- * Tags to be associated with the entities detection job. A tag
- * is a key-value pair that adds metadata to a resource used by
- * Amazon Comprehend. For example, a tag with "Sales" as the key
- * might be added to a resource to indicate its use by the sales
+ * Tags to associate with the entities detection job. A tag is a
+ * key-value pair that adds metadata to a resource used by Amazon
+ * Comprehend. For example, a tag with "Sales" as the key might
+ * be added to a resource to indicate its use by the sales
* department.
*
+ * The Amazon Resource Number (ARN) of the flywheel associated with the
+ * model to use.
+ *
+ *
+ * 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;
+
/**
*
@@ -373,9 +388,8 @@ public StartDocumentClassificationJobRequest withOutputDataConfig(
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -393,9 +407,8 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*
+ *
+ * @param flywheelArn DescribeDocumentClassificationJob
+ * operation.
*
@@ -33,8 +34,9 @@ public class StartDocumentClassificationJobResult implements Serializable {
/**
* arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -51,7 +53,8 @@ public class StartDocumentClassificationJobResult implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -78,7 +81,8 @@ public class StartDocumentClassificationJobResult implements Serializable {
* DescribeDocumentClassificationJob
operation.
*
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document
+ * -classifier
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ */
+ private String documentClassifierArn;
+
/**
* DescribeDocumentClassificationJob
+ * operation.
*
@@ -112,7 +131,8 @@ public class StartDocumentClassificationJobResult implements Serializable {
*
* @return DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
+ * operation.
*
@@ -131,7 +152,8 @@ public String getJobId() {
*
* @param jobId DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
+ * operation.
* DescribeDocumentClassificationJob
operation.
* arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -184,13 +209,14 @@ public StartDocumentClassificationJobResult withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -209,8 +235,9 @@ public String getJobArn() {
/**
* arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -227,13 +254,15 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -252,8 +281,9 @@ public void setJobArn(String jobArn) {
/**
* arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -273,13 +303,15 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:document-classification-job/<job-id>
@@ -321,7 +353,8 @@ public StartDocumentClassificationJobResult withJobArn(String jobArn) {
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
* DescribeDocumentClassificationJob
operation.
*
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document
+ * -classifier
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @return
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document
+ * -classifier
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param documentClassifierArn
+ * Length: - 256
+ * Pattern:
+ * arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document
+ * -classifier
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ *
+ * @param documentClassifierArn
@@ -82,10 +81,10 @@ public class StartDominantLanguageDetectionJobRequest extends AmazonWebServiceRe
/**
*
*
@@ -237,12 +235,11 @@ public StartDominantLanguageDetectionJobRequest withOutputDataConfig(
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -264,12 +260,11 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*
arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -51,7 +52,8 @@ public class StartDominantLanguageDetectionJobResult implements Serializable {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
@@ -155,8 +157,9 @@ public StartDominantLanguageDetectionJobResult withJobId(String jobId) {
/**
* arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -173,13 +176,14 @@ public StartDominantLanguageDetectionJobResult withJobId(String jobId) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -198,8 +202,9 @@ public String getJobArn() {
/**
* arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -216,13 +221,15 @@ public String getJobArn() {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -241,8 +248,9 @@ public void setJobArn(String jobArn) {
/**
* arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
@@ -262,13 +270,15 @@ public void setJobArn(String jobArn) {
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
- * /[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*)?
+ * /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
+ * 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn arn:<partition>:comprehend:<region>:<account-id>:dominant-language-detection-job/<job-id>
diff --git a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/StartEntitiesDetectionJobRequest.java b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/StartEntitiesDetectionJobRequest.java
index 0912718ba22..54e247c0b9a 100644
--- a/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/StartEntitiesDetectionJobRequest.java
+++ b/aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/StartEntitiesDetectionJobRequest.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.
@@ -49,12 +49,11 @@ public class StartEntitiesDetectionJobRequest extends AmazonWebServiceRequest im
/**
*
@@ -117,10 +116,10 @@ public class StartEntitiesDetectionJobRequest extends AmazonWebServiceRequest im
/**
*
*
+ * 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;
+
/**
*
@@ -270,12 +282,11 @@ public StartEntitiesDetectionJobRequest withOutputDataConfig(OutputDataConfig ou
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
@@ -297,12 +307,11 @@ public String getDataAccessRoleArn() {
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
*
* @param dataAccessRoleArn
*
*
* @return
*
*
*
* @param volumeKmsKeyId
*
*
*
* @param volumeKmsKeyId
*