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

A list of StoredQuery objects. The mandatory fields are * QueryName and Expression.

When you are * creating a query, you must provide a query name and an expression. When you are * updating a query, you must provide a query name but updating the description is * optional.

*/ inline const StoredQuery& GetStoredQuery() const{ return m_storedQuery; } /** *

A list of StoredQuery objects. The mandatory fields are * QueryName and Expression.

When you are * creating a query, you must provide a query name and an expression. When you are * updating a query, you must provide a query name but updating the description is * optional.

*/ inline bool StoredQueryHasBeenSet() const { return m_storedQueryHasBeenSet; } /** *

A list of StoredQuery objects. The mandatory fields are * QueryName and Expression.

When you are * creating a query, you must provide a query name and an expression. When you are * updating a query, you must provide a query name but updating the description is * optional.

*/ inline void SetStoredQuery(const StoredQuery& value) { m_storedQueryHasBeenSet = true; m_storedQuery = value; } /** *

A list of StoredQuery objects. The mandatory fields are * QueryName and Expression.

When you are * creating a query, you must provide a query name and an expression. When you are * updating a query, you must provide a query name but updating the description is * optional.

*/ inline void SetStoredQuery(StoredQuery&& value) { m_storedQueryHasBeenSet = true; m_storedQuery = std::move(value); } /** *

A list of StoredQuery objects. The mandatory fields are * QueryName and Expression.

When you are * creating a query, you must provide a query name and an expression. When you are * updating a query, you must provide a query name but updating the description is * optional.

*/ inline PutStoredQueryRequest& WithStoredQuery(const StoredQuery& value) { SetStoredQuery(value); return *this;} /** *

A list of StoredQuery objects. The mandatory fields are * QueryName and Expression.

When you are * creating a query, you must provide a query name and an expression. When you are * updating a query, you must provide a query name but updating the description is * optional.

*/ inline PutStoredQueryRequest& WithStoredQuery(StoredQuery&& value) { SetStoredQuery(std::move(value)); return *this;} /** *

A list of Tags object.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of Tags object.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of Tags object.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of Tags object.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of Tags object.

*/ inline PutStoredQueryRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of Tags object.

*/ inline PutStoredQueryRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of Tags object.

*/ inline PutStoredQueryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of Tags object.

*/ inline PutStoredQueryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: StoredQuery m_storedQuery; bool m_storedQueryHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws