/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DataPipeline { namespace Model { /** *

Defines the query to run against an object.

See Also:

AWS * API Reference

*/ class Query { public: AWS_DATAPIPELINE_API Query(); AWS_DATAPIPELINE_API Query(Aws::Utils::Json::JsonView jsonValue); AWS_DATAPIPELINE_API Query& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline const Aws::Vector& GetSelectors() const{ return m_selectors; } /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; } /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline void SetSelectors(const Aws::Vector& value) { m_selectorsHasBeenSet = true; m_selectors = value; } /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline void SetSelectors(Aws::Vector&& value) { m_selectorsHasBeenSet = true; m_selectors = std::move(value); } /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline Query& WithSelectors(const Aws::Vector& value) { SetSelectors(value); return *this;} /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline Query& WithSelectors(Aws::Vector&& value) { SetSelectors(std::move(value)); return *this;} /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline Query& AddSelectors(const Selector& value) { m_selectorsHasBeenSet = true; m_selectors.push_back(value); return *this; } /** *

List of selectors that define the query. An object must satisfy all of the * selectors to match the query.

*/ inline Query& AddSelectors(Selector&& value) { m_selectorsHasBeenSet = true; m_selectors.push_back(std::move(value)); return *this; } private: Aws::Vector m_selectors; bool m_selectorsHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws