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

Provides a single value and metadata about that value as part of an array of * query results for a standard metric that applies to an application, campaign, or * journey.

See Also:

AWS * API Reference

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

The friendly name of the metric whose value is specified by the Value * property.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The friendly name of the metric whose value is specified by the Value * property.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The friendly name of the metric whose value is specified by the Value * property.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The friendly name of the metric whose value is specified by the Value * property.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The friendly name of the metric whose value is specified by the Value * property.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The friendly name of the metric whose value is specified by the Value * property.

*/ inline ResultRowValue& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The friendly name of the metric whose value is specified by the Value * property.

*/ inline ResultRowValue& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The friendly name of the metric whose value is specified by the Value * property.

*/ inline ResultRowValue& WithKey(const char* value) { SetKey(value); return *this;} /** *

The data type of the value specified by the Value property.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The data type of the value specified by the Value property.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The data type of the value specified by the Value property.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The data type of the value specified by the Value property.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The data type of the value specified by the Value property.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The data type of the value specified by the Value property.

*/ inline ResultRowValue& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The data type of the value specified by the Value property.

*/ inline ResultRowValue& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The data type of the value specified by the Value property.

*/ inline ResultRowValue& WithType(const char* value) { SetType(value); return *this;} /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline ResultRowValue& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline ResultRowValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

In a Values object, the value for the metric that the query retrieved data * for. In a GroupedBys object, the value for the field that was used to group data * in a result set that contains multiple results (Values objects).

*/ inline ResultRowValue& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws