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

The result of a single metric data query.

See Also:

AWS * API Reference

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

The query identifier.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The query identifier.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The query identifier.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The query identifier.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The query identifier.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The query identifier.

*/ inline MetricDataResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The query identifier.

*/ inline MetricDataResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The query identifier.

*/ inline MetricDataResult& WithId(const char* value) { SetId(value); return *this;} /** *

A list of timestamps for the metric data results.

*/ inline const Aws::Vector& GetTimestamps() const{ return m_timestamps; } /** *

A list of timestamps for the metric data results.

*/ inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; } /** *

A list of timestamps for the metric data results.

*/ inline void SetTimestamps(const Aws::Vector& value) { m_timestampsHasBeenSet = true; m_timestamps = value; } /** *

A list of timestamps for the metric data results.

*/ inline void SetTimestamps(Aws::Vector&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); } /** *

A list of timestamps for the metric data results.

*/ inline MetricDataResult& WithTimestamps(const Aws::Vector& value) { SetTimestamps(value); return *this;} /** *

A list of timestamps for the metric data results.

*/ inline MetricDataResult& WithTimestamps(Aws::Vector&& value) { SetTimestamps(std::move(value)); return *this;} /** *

A list of timestamps for the metric data results.

*/ inline MetricDataResult& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; } /** *

A list of timestamps for the metric data results.

*/ inline MetricDataResult& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; } /** *

A list of values (cumulative / sum) for the metric data results.

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

A list of values (cumulative / sum) for the metric data results.

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

A list of values (cumulative / sum) for the metric data results.

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

A list of values (cumulative / sum) for the metric data results.

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

A list of values (cumulative / sum) for the metric data results.

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

A list of values (cumulative / sum) for the metric data results.

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

A list of values (cumulative / sum) for the metric data results.

*/ inline MetricDataResult& AddValues(long long value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Vector m_timestamps; bool m_timestampsHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws