@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Query extends Object implements Serializable, Cloneable, StructuredPojo
Each query contains the question you want to ask in the Text and the alias you want to associate.
Constructor and Description |
---|
Query() |
Modifier and Type | Method and Description |
---|---|
Query |
clone() |
boolean |
equals(Object obj) |
String |
getAlias()
Alias attached to the query, for ease of location.
|
List<String> |
getPages()
Pages is a parameter that the user inputs to specify which pages to apply a query to.
|
String |
getText()
Question that Amazon Textract will apply to the document.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlias(String alias)
Alias attached to the query, for ease of location.
|
void |
setPages(Collection<String> pages)
Pages is a parameter that the user inputs to specify which pages to apply a query to.
|
void |
setText(String text)
Question that Amazon Textract will apply to the document.
|
String |
toString()
Returns a string representation of this object.
|
Query |
withAlias(String alias)
Alias attached to the query, for ease of location.
|
Query |
withPages(Collection<String> pages)
Pages is a parameter that the user inputs to specify which pages to apply a query to.
|
Query |
withPages(String... pages)
Pages is a parameter that the user inputs to specify which pages to apply a query to.
|
Query |
withText(String text)
Question that Amazon Textract will apply to the document.
|
public void setText(String text)
Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"
text
- Question that Amazon Textract will apply to the document. An example would be
"What is the customer's SSN?"public String getText()
Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"
public Query withText(String text)
Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"
text
- Question that Amazon Textract will apply to the document. An example would be
"What is the customer's SSN?"public void setAlias(String alias)
Alias attached to the query, for ease of location.
alias
- Alias attached to the query, for ease of location.public String getAlias()
Alias attached to the query, for ease of location.
public Query withAlias(String alias)
Alias attached to the query, for ease of location.
alias
- Alias attached to the query, for ease of location.public List<String> getPages()
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.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates last page
of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates
last page of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
public void setPages(Collection<String> pages)
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.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates last page
of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
pages
- 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.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates
last page of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
public Query withPages(String... pages)
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.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates last page
of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
NOTE: This method appends the values to the existing list (if any). Use
setPages(java.util.Collection)
or withPages(java.util.Collection)
if you want to override the
existing values.
pages
- 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.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates
last page of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
public Query withPages(Collection<String> pages)
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.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates last page
of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
pages
- 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.
If a page is not specified, it is set to ["1"]
by default.
The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *
. No
whitespace is allowed.
When using * to indicate all pages, it must be the only element in the list.
You can use page intervals, such as [“1-3”, “1-1”, “4-*”]
. Where *
indicates
last page of document.
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.