/** * 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 ConfigService { namespace Model { /** */ class GetStoredQueryRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API GetStoredQueryRequest(); // 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 "GetStoredQuery"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the query.

*/ inline const Aws::String& GetQueryName() const{ return m_queryName; } /** *

The name of the query.

*/ inline bool QueryNameHasBeenSet() const { return m_queryNameHasBeenSet; } /** *

The name of the query.

*/ inline void SetQueryName(const Aws::String& value) { m_queryNameHasBeenSet = true; m_queryName = value; } /** *

The name of the query.

*/ inline void SetQueryName(Aws::String&& value) { m_queryNameHasBeenSet = true; m_queryName = std::move(value); } /** *

The name of the query.

*/ inline void SetQueryName(const char* value) { m_queryNameHasBeenSet = true; m_queryName.assign(value); } /** *

The name of the query.

*/ inline GetStoredQueryRequest& WithQueryName(const Aws::String& value) { SetQueryName(value); return *this;} /** *

The name of the query.

*/ inline GetStoredQueryRequest& WithQueryName(Aws::String&& value) { SetQueryName(std::move(value)); return *this;} /** *

The name of the query.

*/ inline GetStoredQueryRequest& WithQueryName(const char* value) { SetQueryName(value); return *this;} private: Aws::String m_queryName; bool m_queryNameHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws