/* * 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.timestreamquery.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class QueryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The query to be run by Timestream. *

*/ private String queryString; /** *

* Unique, case-sensitive string of up to 64 ASCII characters specified when a Query request is made. * Providing a ClientToken makes the call to Query idempotent. This means that * running the same query repeatedly will produce the same result. In other words, making multiple identical * Query requests has the same effect as making a single request. When using ClientToken * in a query, note the following: *

* */ private String clientToken; /** *

* A pagination token used to return a set of results. When the Query API is invoked using * NextToken, that particular invocation is assumed to be a subsequent invocation of a prior call to * Query, and a result set is returned. However, if the Query invocation only contains the * ClientToken, that invocation of Query is assumed to be a new query run. *

*

* Note the following when using NextToken in a query: *

* */ private String nextToken; /** *

* The total number of rows to be returned in the Query output. The initial run of Query * with a MaxRows value specified will return the result set of the query in two cases: *

* *

* Otherwise, the initial invocation of Query only returns a NextToken, which can then be * used in subsequent calls to fetch the result set. To resume pagination, provide the NextToken value * in the subsequent command. *

*

* If the row size is large (e.g. a row has many columns), Timestream may return fewer rows to keep the response * size from exceeding the 1 MB limit. If MaxRows is not provided, Timestream will send the necessary * number of rows to meet the 1 MB limit. *

*/ private Integer maxRows; /** *

* The query to be run by Timestream. *

* * @param queryString * The query to be run by Timestream. */ public void setQueryString(String queryString) { this.queryString = queryString; } /** *

* The query to be run by Timestream. *

* * @return The query to be run by Timestream. */ public String getQueryString() { return this.queryString; } /** *

* The query to be run by Timestream. *

* * @param queryString * The query to be run by Timestream. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryRequest withQueryString(String queryString) { setQueryString(queryString); return this; } /** *

* Unique, case-sensitive string of up to 64 ASCII characters specified when a Query request is made. * Providing a ClientToken makes the call to Query idempotent. This means that * running the same query repeatedly will produce the same result. In other words, making multiple identical * Query requests has the same effect as making a single request. When using ClientToken * in a query, note the following: *

* * * @param clientToken * Unique, case-sensitive string of up to 64 ASCII characters specified when a Query request is * made. Providing a ClientToken makes the call to Query idempotent. This * means that running the same query repeatedly will produce the same result. In other words, making multiple * identical Query requests has the same effect as making a single request. When using * ClientToken in a query, note the following:

*