/** * 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 CleanRooms { namespace Model { /** *

Controls on the query specifications that can be run on configured * table..

See Also:

AWS * API Reference

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

Analysis rule type that enables only list queries on a configured table.

*/ inline const AnalysisRuleList& GetList() const{ return m_list; } /** *

Analysis rule type that enables only list queries on a configured table.

*/ inline bool ListHasBeenSet() const { return m_listHasBeenSet; } /** *

Analysis rule type that enables only list queries on a configured table.

*/ inline void SetList(const AnalysisRuleList& value) { m_listHasBeenSet = true; m_list = value; } /** *

Analysis rule type that enables only list queries on a configured table.

*/ inline void SetList(AnalysisRuleList&& value) { m_listHasBeenSet = true; m_list = std::move(value); } /** *

Analysis rule type that enables only list queries on a configured table.

*/ inline AnalysisRulePolicyV1& WithList(const AnalysisRuleList& value) { SetList(value); return *this;} /** *

Analysis rule type that enables only list queries on a configured table.

*/ inline AnalysisRulePolicyV1& WithList(AnalysisRuleList&& value) { SetList(std::move(value)); return *this;} /** *

Analysis rule type that enables only aggregation queries on a configured * table.

*/ inline const AnalysisRuleAggregation& GetAggregation() const{ return m_aggregation; } /** *

Analysis rule type that enables only aggregation queries on a configured * table.

*/ inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; } /** *

Analysis rule type that enables only aggregation queries on a configured * table.

*/ inline void SetAggregation(const AnalysisRuleAggregation& value) { m_aggregationHasBeenSet = true; m_aggregation = value; } /** *

Analysis rule type that enables only aggregation queries on a configured * table.

*/ inline void SetAggregation(AnalysisRuleAggregation&& value) { m_aggregationHasBeenSet = true; m_aggregation = std::move(value); } /** *

Analysis rule type that enables only aggregation queries on a configured * table.

*/ inline AnalysisRulePolicyV1& WithAggregation(const AnalysisRuleAggregation& value) { SetAggregation(value); return *this;} /** *

Analysis rule type that enables only aggregation queries on a configured * table.

*/ inline AnalysisRulePolicyV1& WithAggregation(AnalysisRuleAggregation&& value) { SetAggregation(std::move(value)); return *this;} private: AnalysisRuleList m_list; bool m_listHasBeenSet = false; AnalysisRuleAggregation m_aggregation; bool m_aggregationHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws