/* * 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.cloudtrail.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 StartQueryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The SQL code of your query. *
*/ private String queryStatement; /** ** The URI for the S3 bucket where CloudTrail delivers the query results. *
*/ private String deliveryS3Uri; /** ** The alias that identifies a query template. *
*/ private String queryAlias; /** *
* The query parameters for the specified QueryAlias
.
*
* The SQL code of your query. *
* * @param queryStatement * The SQL code of your query. */ public void setQueryStatement(String queryStatement) { this.queryStatement = queryStatement; } /** ** The SQL code of your query. *
* * @return The SQL code of your query. */ public String getQueryStatement() { return this.queryStatement; } /** ** The SQL code of your query. *
* * @param queryStatement * The SQL code of your query. * @return Returns a reference to this object so that method calls can be chained together. */ public StartQueryRequest withQueryStatement(String queryStatement) { setQueryStatement(queryStatement); return this; } /** ** The URI for the S3 bucket where CloudTrail delivers the query results. *
* * @param deliveryS3Uri * The URI for the S3 bucket where CloudTrail delivers the query results. */ public void setDeliveryS3Uri(String deliveryS3Uri) { this.deliveryS3Uri = deliveryS3Uri; } /** ** The URI for the S3 bucket where CloudTrail delivers the query results. *
* * @return The URI for the S3 bucket where CloudTrail delivers the query results. */ public String getDeliveryS3Uri() { return this.deliveryS3Uri; } /** ** The URI for the S3 bucket where CloudTrail delivers the query results. *
* * @param deliveryS3Uri * The URI for the S3 bucket where CloudTrail delivers the query results. * @return Returns a reference to this object so that method calls can be chained together. */ public StartQueryRequest withDeliveryS3Uri(String deliveryS3Uri) { setDeliveryS3Uri(deliveryS3Uri); return this; } /** ** The alias that identifies a query template. *
* * @param queryAlias * The alias that identifies a query template. */ public void setQueryAlias(String queryAlias) { this.queryAlias = queryAlias; } /** ** The alias that identifies a query template. *
* * @return The alias that identifies a query template. */ public String getQueryAlias() { return this.queryAlias; } /** ** The alias that identifies a query template. *
* * @param queryAlias * The alias that identifies a query template. * @return Returns a reference to this object so that method calls can be chained together. */ public StartQueryRequest withQueryAlias(String queryAlias) { setQueryAlias(queryAlias); return this; } /** *
* The query parameters for the specified QueryAlias
.
*
QueryAlias
.
*/
public java.util.List
* The query parameters for the specified QueryAlias
.
*
QueryAlias
.
*/
public void setQueryParameters(java.util.Collection
* The query parameters for the specified QueryAlias
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setQueryParameters(java.util.Collection)} or {@link #withQueryParameters(java.util.Collection)} if you * want to override the existing values. *
* * @param queryParameters * The query parameters for the specifiedQueryAlias
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartQueryRequest withQueryParameters(String... queryParameters) {
if (this.queryParameters == null) {
setQueryParameters(new com.amazonaws.internal.SdkInternalList
* The query parameters for the specified QueryAlias
.
*
QueryAlias
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartQueryRequest withQueryParameters(java.util.Collection