/* * Copyright 2018-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 javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Each query contains the question you want to ask in the Text and the alias you want to associate. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Query implements Serializable, Cloneable, StructuredPojo { /** *

* Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?" *

*/ private String text; /** *

* Alias attached to the query, for ease of location. *

*/ private String alias; /** *

* Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a list of * rules for using this parameter. *

* */ private java.util.List pages; /** *

* Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?" *

* * @param text * Question that Amazon Textract will apply to the document. An example would be * "What is the customer's SSN?" */ public void setText(String text) { this.text = text; } /** *

* Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?" *

* * @return Question that Amazon Textract will apply to the document. An example would be * "What is the customer's SSN?" */ public String getText() { return this.text; } /** *

* Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?" *

* * @param text * Question that Amazon Textract will apply to the document. An example would be * "What is the customer's SSN?" * @return Returns a reference to this object so that method calls can be chained together. */ public Query withText(String text) { setText(text); return this; } /** *

* Alias attached to the query, for ease of location. *

* * @param alias * Alias attached to the query, for ease of location. */ public void setAlias(String alias) { this.alias = alias; } /** *

* Alias attached to the query, for ease of location. *

* * @return Alias attached to the query, for ease of location. */ public String getAlias() { return this.alias; } /** *

* Alias attached to the query, for ease of location. *

* * @param alias * Alias attached to the query, for ease of location. * @return Returns a reference to this object so that method calls can be chained together. */ public Query withAlias(String alias) { setAlias(alias); return this; } /** *

* Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a list of * rules for using this parameter. *

* * * @return Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a * list of rules for using this parameter.

*