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

Provides the results of a query that retrieved the data for a standard metric * that applies to an application, campaign, or journey.

See Also:

* AWS * API Reference

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

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline const Aws::Vector& GetGroupedBys() const{ return m_groupedBys; } /** *

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline bool GroupedBysHasBeenSet() const { return m_groupedBysHasBeenSet; } /** *

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline void SetGroupedBys(const Aws::Vector& value) { m_groupedBysHasBeenSet = true; m_groupedBys = value; } /** *

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline void SetGroupedBys(Aws::Vector&& value) { m_groupedBysHasBeenSet = true; m_groupedBys = std::move(value); } /** *

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline ResultRow& WithGroupedBys(const Aws::Vector& value) { SetGroupedBys(value); return *this;} /** *

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline ResultRow& WithGroupedBys(Aws::Vector&& value) { SetGroupedBys(std::move(value)); return *this;} /** *

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline ResultRow& AddGroupedBys(const ResultRowValue& value) { m_groupedBysHasBeenSet = true; m_groupedBys.push_back(value); return *this; } /** *

An array of objects that defines the field and field values that were used to * group data in a result set that contains multiple results. This value is null if * the data in a result set isn’t grouped.

*/ inline ResultRow& AddGroupedBys(ResultRowValue&& value) { m_groupedBysHasBeenSet = true; m_groupedBys.push_back(std::move(value)); return *this; } /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline ResultRow& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline ResultRow& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline ResultRow& AddValues(const ResultRowValue& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

An array of objects that provides pre-aggregated values for a standard metric * that applies to an application, campaign, or journey.

*/ inline ResultRow& AddValues(ResultRowValue&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } private: Aws::Vector m_groupedBys; bool m_groupedBysHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws