/** * 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 * execution metric that applies to a journey, and provides information about that * query.

See Also:

AWS * API Reference

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

The unique identifier for the application that the metric applies to.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The unique identifier for the application that the metric applies to.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The unique identifier for the application that the metric applies to.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The unique identifier for the application that the metric applies to.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The unique identifier for the application that the metric applies to.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The unique identifier for the application that the metric applies to.

*/ inline JourneyExecutionMetricsResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The unique identifier for the application that the metric applies to.

*/ inline JourneyExecutionMetricsResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The unique identifier for the application that the metric applies to.

*/ inline JourneyExecutionMetricsResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The unique identifier for the journey that the metric applies to.

*/ inline const Aws::String& GetJourneyId() const{ return m_journeyId; } /** *

The unique identifier for the journey that the metric applies to.

*/ inline bool JourneyIdHasBeenSet() const { return m_journeyIdHasBeenSet; } /** *

The unique identifier for the journey that the metric applies to.

*/ inline void SetJourneyId(const Aws::String& value) { m_journeyIdHasBeenSet = true; m_journeyId = value; } /** *

The unique identifier for the journey that the metric applies to.

*/ inline void SetJourneyId(Aws::String&& value) { m_journeyIdHasBeenSet = true; m_journeyId = std::move(value); } /** *

The unique identifier for the journey that the metric applies to.

*/ inline void SetJourneyId(const char* value) { m_journeyIdHasBeenSet = true; m_journeyId.assign(value); } /** *

The unique identifier for the journey that the metric applies to.

*/ inline JourneyExecutionMetricsResponse& WithJourneyId(const Aws::String& value) { SetJourneyId(value); return *this;} /** *

The unique identifier for the journey that the metric applies to.

*/ inline JourneyExecutionMetricsResponse& WithJourneyId(Aws::String&& value) { SetJourneyId(std::move(value)); return *this;} /** *

The unique identifier for the journey that the metric applies to.

*/ inline JourneyExecutionMetricsResponse& WithJourneyId(const char* value) { SetJourneyId(value); return *this;} /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline const Aws::String& GetLastEvaluatedTime() const{ return m_lastEvaluatedTime; } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline bool LastEvaluatedTimeHasBeenSet() const { return m_lastEvaluatedTimeHasBeenSet; } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline void SetLastEvaluatedTime(const Aws::String& value) { m_lastEvaluatedTimeHasBeenSet = true; m_lastEvaluatedTime = value; } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline void SetLastEvaluatedTime(Aws::String&& value) { m_lastEvaluatedTimeHasBeenSet = true; m_lastEvaluatedTime = std::move(value); } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline void SetLastEvaluatedTime(const char* value) { m_lastEvaluatedTimeHasBeenSet = true; m_lastEvaluatedTime.assign(value); } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline JourneyExecutionMetricsResponse& WithLastEvaluatedTime(const Aws::String& value) { SetLastEvaluatedTime(value); return *this;} /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline JourneyExecutionMetricsResponse& WithLastEvaluatedTime(Aws::String&& value) { SetLastEvaluatedTime(std::move(value)); return *this;} /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated * the journey and updated the data for the metric.

*/ inline JourneyExecutionMetricsResponse& WithLastEvaluatedTime(const char* value) { SetLastEvaluatedTime(value); return *this;} /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline const Aws::Map& GetMetrics() const{ return m_metrics; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline void SetMetrics(const Aws::Map& value) { m_metricsHasBeenSet = true; m_metrics = value; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline void SetMetrics(Aws::Map&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& WithMetrics(const Aws::Map& value) { SetMetrics(value); return *this;} /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& WithMetrics(Aws::Map&& value) { SetMetrics(std::move(value)); return *this;} /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& AddMetrics(const Aws::String& key, const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& AddMetrics(Aws::String&& key, const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& AddMetrics(const Aws::String& key, Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& AddMetrics(Aws::String&& key, Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), std::move(value)); return *this; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& AddMetrics(const char* key, Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, std::move(value)); return *this; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& AddMetrics(Aws::String&& key, const char* value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; } /** *

A JSON object that contains the results of the query. For information about * the structure and contents of the results, see the Amazon * Pinpoint Developer Guide.

*/ inline JourneyExecutionMetricsResponse& AddMetrics(const char* key, const char* value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; } private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_journeyId; bool m_journeyIdHasBeenSet = false; Aws::String m_lastEvaluatedTime; bool m_lastEvaluatedTimeHasBeenSet = false; Aws::Map m_metrics; bool m_metricsHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws