/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudTrail { namespace Model { /** */ class StartQueryRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API StartQueryRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartQuery"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The SQL code of your query.

*/ inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; } /** *

The SQL code of your query.

*/ inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; } /** *

The SQL code of your query.

*/ inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; } /** *

The SQL code of your query.

*/ inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); } /** *

The SQL code of your query.

*/ inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); } /** *

The SQL code of your query.

*/ inline StartQueryRequest& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;} /** *

The SQL code of your query.

*/ inline StartQueryRequest& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;} /** *

The SQL code of your query.

*/ inline StartQueryRequest& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;} /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline const Aws::String& GetDeliveryS3Uri() const{ return m_deliveryS3Uri; } /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline bool DeliveryS3UriHasBeenSet() const { return m_deliveryS3UriHasBeenSet; } /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline void SetDeliveryS3Uri(const Aws::String& value) { m_deliveryS3UriHasBeenSet = true; m_deliveryS3Uri = value; } /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline void SetDeliveryS3Uri(Aws::String&& value) { m_deliveryS3UriHasBeenSet = true; m_deliveryS3Uri = std::move(value); } /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline void SetDeliveryS3Uri(const char* value) { m_deliveryS3UriHasBeenSet = true; m_deliveryS3Uri.assign(value); } /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline StartQueryRequest& WithDeliveryS3Uri(const Aws::String& value) { SetDeliveryS3Uri(value); return *this;} /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline StartQueryRequest& WithDeliveryS3Uri(Aws::String&& value) { SetDeliveryS3Uri(std::move(value)); return *this;} /** *

The URI for the S3 bucket where CloudTrail delivers the query results.

*/ inline StartQueryRequest& WithDeliveryS3Uri(const char* value) { SetDeliveryS3Uri(value); return *this;} /** *

The alias that identifies a query template.

*/ inline const Aws::String& GetQueryAlias() const{ return m_queryAlias; } /** *

The alias that identifies a query template.

*/ inline bool QueryAliasHasBeenSet() const { return m_queryAliasHasBeenSet; } /** *

The alias that identifies a query template.

*/ inline void SetQueryAlias(const Aws::String& value) { m_queryAliasHasBeenSet = true; m_queryAlias = value; } /** *

The alias that identifies a query template.

*/ inline void SetQueryAlias(Aws::String&& value) { m_queryAliasHasBeenSet = true; m_queryAlias = std::move(value); } /** *

The alias that identifies a query template.

*/ inline void SetQueryAlias(const char* value) { m_queryAliasHasBeenSet = true; m_queryAlias.assign(value); } /** *

The alias that identifies a query template.

*/ inline StartQueryRequest& WithQueryAlias(const Aws::String& value) { SetQueryAlias(value); return *this;} /** *

The alias that identifies a query template.

*/ inline StartQueryRequest& WithQueryAlias(Aws::String&& value) { SetQueryAlias(std::move(value)); return *this;} /** *

The alias that identifies a query template.

*/ inline StartQueryRequest& WithQueryAlias(const char* value) { SetQueryAlias(value); return *this;} /** *

The query parameters for the specified QueryAlias.

*/ inline const Aws::Vector& GetQueryParameters() const{ return m_queryParameters; } /** *

The query parameters for the specified QueryAlias.

*/ inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; } /** *

The query parameters for the specified QueryAlias.

*/ inline void SetQueryParameters(const Aws::Vector& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; } /** *

The query parameters for the specified QueryAlias.

*/ inline void SetQueryParameters(Aws::Vector&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); } /** *

The query parameters for the specified QueryAlias.

*/ inline StartQueryRequest& WithQueryParameters(const Aws::Vector& value) { SetQueryParameters(value); return *this;} /** *

The query parameters for the specified QueryAlias.

*/ inline StartQueryRequest& WithQueryParameters(Aws::Vector&& value) { SetQueryParameters(std::move(value)); return *this;} /** *

The query parameters for the specified QueryAlias.

*/ inline StartQueryRequest& AddQueryParameters(const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; } /** *

The query parameters for the specified QueryAlias.

*/ inline StartQueryRequest& AddQueryParameters(Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(std::move(value)); return *this; } /** *

The query parameters for the specified QueryAlias.

*/ inline StartQueryRequest& AddQueryParameters(const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; } private: Aws::String m_queryStatement; bool m_queryStatementHasBeenSet = false; Aws::String m_deliveryS3Uri; bool m_deliveryS3UriHasBeenSet = false; Aws::String m_queryAlias; bool m_queryAliasHasBeenSet = false; Aws::Vector m_queryParameters; bool m_queryParametersHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws