/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchRUM { namespace Model { class BatchCreateRumMetricDefinitionsResult { public: AWS_CLOUDWATCHRUM_API BatchCreateRumMetricDefinitionsResult(); AWS_CLOUDWATCHRUM_API BatchCreateRumMetricDefinitionsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHRUM_API BatchCreateRumMetricDefinitionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of error objects, if the operation caused any errors.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

An array of error objects, if the operation caused any errors.

*/ inline void SetErrors(const Aws::Vector& value) { m_errors = value; } /** *

An array of error objects, if the operation caused any errors.

*/ inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } /** *

An array of error objects, if the operation caused any errors.

*/ inline BatchCreateRumMetricDefinitionsResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

An array of error objects, if the operation caused any errors.

*/ inline BatchCreateRumMetricDefinitionsResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

An array of error objects, if the operation caused any errors.

*/ inline BatchCreateRumMetricDefinitionsResult& AddErrors(const BatchCreateRumMetricDefinitionsError& value) { m_errors.push_back(value); return *this; } /** *

An array of error objects, if the operation caused any errors.

*/ inline BatchCreateRumMetricDefinitionsResult& AddErrors(BatchCreateRumMetricDefinitionsError&& value) { m_errors.push_back(std::move(value)); return *this; } /** *

An array of structures that define the extended metrics.

*/ inline const Aws::Vector& GetMetricDefinitions() const{ return m_metricDefinitions; } /** *

An array of structures that define the extended metrics.

*/ inline void SetMetricDefinitions(const Aws::Vector& value) { m_metricDefinitions = value; } /** *

An array of structures that define the extended metrics.

*/ inline void SetMetricDefinitions(Aws::Vector&& value) { m_metricDefinitions = std::move(value); } /** *

An array of structures that define the extended metrics.

*/ inline BatchCreateRumMetricDefinitionsResult& WithMetricDefinitions(const Aws::Vector& value) { SetMetricDefinitions(value); return *this;} /** *

An array of structures that define the extended metrics.

*/ inline BatchCreateRumMetricDefinitionsResult& WithMetricDefinitions(Aws::Vector&& value) { SetMetricDefinitions(std::move(value)); return *this;} /** *

An array of structures that define the extended metrics.

*/ inline BatchCreateRumMetricDefinitionsResult& AddMetricDefinitions(const MetricDefinition& value) { m_metricDefinitions.push_back(value); return *this; } /** *

An array of structures that define the extended metrics.

*/ inline BatchCreateRumMetricDefinitionsResult& AddMetricDefinitions(MetricDefinition&& value) { m_metricDefinitions.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchCreateRumMetricDefinitionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchCreateRumMetricDefinitionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchCreateRumMetricDefinitionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_errors; Aws::Vector m_metricDefinitions; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws