/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Specifies the set of parameters needed to perform aggregation in the * aggregate transform.

See Also:

AWS * API Reference

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

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline const Aws::Vector& GetColumn() const{ return m_column; } /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; } /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline void SetColumn(const Aws::Vector& value) { m_columnHasBeenSet = true; m_column = value; } /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline void SetColumn(Aws::Vector&& value) { m_columnHasBeenSet = true; m_column = std::move(value); } /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline AggregateOperation& WithColumn(const Aws::Vector& value) { SetColumn(value); return *this;} /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline AggregateOperation& WithColumn(Aws::Vector&& value) { SetColumn(std::move(value)); return *this;} /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline AggregateOperation& AddColumn(const Aws::String& value) { m_columnHasBeenSet = true; m_column.push_back(value); return *this; } /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline AggregateOperation& AddColumn(Aws::String&& value) { m_columnHasBeenSet = true; m_column.push_back(std::move(value)); return *this; } /** *

Specifies the column on the data set on which the aggregation function will * be applied.

*/ inline AggregateOperation& AddColumn(const char* value) { m_columnHasBeenSet = true; m_column.push_back(value); return *this; } /** *

Specifies the aggregation function to apply.

Possible aggregation * functions include: avg countDistinct, count, first, last, kurtosis, max, min, * skewness, stddev_samp, stddev_pop, sum, sumDistinct, var_samp, var_pop

*/ inline const AggFunction& GetAggFunc() const{ return m_aggFunc; } /** *

Specifies the aggregation function to apply.

Possible aggregation * functions include: avg countDistinct, count, first, last, kurtosis, max, min, * skewness, stddev_samp, stddev_pop, sum, sumDistinct, var_samp, var_pop

*/ inline bool AggFuncHasBeenSet() const { return m_aggFuncHasBeenSet; } /** *

Specifies the aggregation function to apply.

Possible aggregation * functions include: avg countDistinct, count, first, last, kurtosis, max, min, * skewness, stddev_samp, stddev_pop, sum, sumDistinct, var_samp, var_pop

*/ inline void SetAggFunc(const AggFunction& value) { m_aggFuncHasBeenSet = true; m_aggFunc = value; } /** *

Specifies the aggregation function to apply.

Possible aggregation * functions include: avg countDistinct, count, first, last, kurtosis, max, min, * skewness, stddev_samp, stddev_pop, sum, sumDistinct, var_samp, var_pop

*/ inline void SetAggFunc(AggFunction&& value) { m_aggFuncHasBeenSet = true; m_aggFunc = std::move(value); } /** *

Specifies the aggregation function to apply.

Possible aggregation * functions include: avg countDistinct, count, first, last, kurtosis, max, min, * skewness, stddev_samp, stddev_pop, sum, sumDistinct, var_samp, var_pop

*/ inline AggregateOperation& WithAggFunc(const AggFunction& value) { SetAggFunc(value); return *this;} /** *

Specifies the aggregation function to apply.

Possible aggregation * functions include: avg countDistinct, count, first, last, kurtosis, max, min, * skewness, stddev_samp, stddev_pop, sum, sumDistinct, var_samp, var_pop

*/ inline AggregateOperation& WithAggFunc(AggFunction&& value) { SetAggFunc(std::move(value)); return *this;} private: Aws::Vector m_column; bool m_columnHasBeenSet = false; AggFunction m_aggFunc; bool m_aggFuncHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws