/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudTrail { namespace Model { /** */ class DescribeQueryRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API DescribeQueryRequest(); // 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 "DescribeQuery"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The query ID.

*/ inline const Aws::String& GetQueryId() const{ return m_queryId; } /** *

The query ID.

*/ inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; } /** *

The query ID.

*/ inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; } /** *

The query ID.

*/ inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); } /** *

The query ID.

*/ inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); } /** *

The query ID.

*/ inline DescribeQueryRequest& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;} /** *

The query ID.

*/ inline DescribeQueryRequest& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;} /** *

The query ID.

*/ inline DescribeQueryRequest& WithQueryId(const char* value) { SetQueryId(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 DescribeQueryRequest& WithQueryAlias(const Aws::String& value) { SetQueryAlias(value); return *this;} /** *

The alias that identifies a query template.

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

The alias that identifies a query template.

*/ inline DescribeQueryRequest& WithQueryAlias(const char* value) { SetQueryAlias(value); return *this;} private: Aws::String m_queryId; bool m_queryIdHasBeenSet = false; Aws::String m_queryAlias; bool m_queryAliasHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws