/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cleanrooms-2022-02-17.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CleanRooms.Model { /// /// Constraint on query output removing output rows that do not meet a minimum number /// of distinct values of a specified column. /// public partial class AggregationConstraint { private string _columnName; private int? _minimum; private AggregationType _type; /// /// Gets and sets the property ColumnName. /// /// Column in aggregation constraint for which there must be a minimum number of distinct /// values in an output row for it to be in the query output. /// /// [AWSProperty(Required=true, Min=1, Max=127)] public string ColumnName { get { return this._columnName; } set { this._columnName = value; } } // Check to see if ColumnName property is set internal bool IsSetColumnName() { return this._columnName != null; } /// /// Gets and sets the property Minimum. /// /// The minimum number of distinct values that an output row must be an aggregation of. /// Minimum threshold of distinct values for a specified column that must exist in an /// output row for it to be in the query output. /// /// [AWSProperty(Required=true, Min=2, Max=100000)] public int Minimum { get { return this._minimum.GetValueOrDefault(); } set { this._minimum = value; } } // Check to see if Minimum property is set internal bool IsSetMinimum() { return this._minimum.HasValue; } /// /// Gets and sets the property Type. /// /// The type of aggregation the constraint allows. The only valid value is currently `COUNT_DISTINCT`. /// /// [AWSProperty(Required=true)] public AggregationType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }