/* * 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.textract.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *

* Gets summarized results for the StartLendingAnalysis operation, * which analyzes text in a lending document. The returned summary consists of * information about documents grouped together by a common document type. * Information like detected signatures, page numbers, and split documents is * returned with respect to the type of grouped document. *

*

* You start asynchronous text analysis by calling * StartLendingAnalysis, which returns a job identifier ( * JobId). When the text analysis operation finishes, Amazon * Textract publishes a completion status to the Amazon Simple Notification * Service (Amazon SNS) topic that's registered in the initial call to * StartLendingAnalysis. *

*

* To get the results of the text analysis operation, first check that the * status value published to the Amazon SNS topic is SUCCEEDED. If so, call * GetLendingAnalysisSummary, and pass the job identifier ( * JobId) from the initial call to * StartLendingAnalysis. *

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

* A unique identifier for the lending or text-detection job. The * JobId is returned from StartLendingAnalysis. A * JobId value is only valid for 7 days. *

*

* Constraints:
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
*/ private String jobId; /** *

* A unique identifier for the lending or text-detection job. The * JobId is returned from StartLendingAnalysis. A * JobId value is only valid for 7 days. *

*

* Constraints:
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
* * @return

* A unique identifier for the lending or text-detection job. The * JobId is returned from StartLendingAnalysis. A * JobId value is only valid for 7 days. *

*/ public String getJobId() { return jobId; } /** *

* A unique identifier for the lending or text-detection job. The * JobId is returned from StartLendingAnalysis. A * JobId value is only valid for 7 days. *

*

* Constraints:
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
* * @param jobId

* A unique identifier for the lending or text-detection job. The * JobId is returned from StartLendingAnalysis. A * JobId value is only valid for 7 days. *

*/ public void setJobId(String jobId) { this.jobId = jobId; } /** *

* A unique identifier for the lending or text-detection job. The * JobId is returned from StartLendingAnalysis. A * JobId value is only valid for 7 days. *

*

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

* Constraints:
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
* * @param jobId

* A unique identifier for the lending or text-detection job. The * JobId is returned from StartLendingAnalysis. A * JobId value is only valid for 7 days. *

* @return A reference to this updated object so that method calls can be * chained together. */ public GetLendingAnalysisSummaryRequest withJobId(String jobId) { this.jobId = jobId; 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 (getJobId() != null) sb.append("JobId: " + getJobId()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLendingAnalysisSummaryRequest == false) return false; GetLendingAnalysisSummaryRequest other = (GetLendingAnalysisSummaryRequest) obj; if (other.getJobId() == null ^ this.getJobId() == null) return false; if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false) return false; return true; } }