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

A structure that defines one error caused by a BatchCreateRumMetricsDefinitions * operation.

See Also:

AWS * API Reference

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

The error code.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code.

*/ inline BatchDeleteRumMetricDefinitionsError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code.

*/ inline BatchDeleteRumMetricDefinitionsError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code.

*/ inline BatchDeleteRumMetricDefinitionsError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The error message for this metric definition.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message for this metric definition.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message for this metric definition.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message for this metric definition.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message for this metric definition.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message for this metric definition.

*/ inline BatchDeleteRumMetricDefinitionsError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message for this metric definition.

*/ inline BatchDeleteRumMetricDefinitionsError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message for this metric definition.

*/ inline BatchDeleteRumMetricDefinitionsError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The ID of the metric definition that caused this error.

*/ inline const Aws::String& GetMetricDefinitionId() const{ return m_metricDefinitionId; } /** *

The ID of the metric definition that caused this error.

*/ inline bool MetricDefinitionIdHasBeenSet() const { return m_metricDefinitionIdHasBeenSet; } /** *

The ID of the metric definition that caused this error.

*/ inline void SetMetricDefinitionId(const Aws::String& value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId = value; } /** *

The ID of the metric definition that caused this error.

*/ inline void SetMetricDefinitionId(Aws::String&& value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId = std::move(value); } /** *

The ID of the metric definition that caused this error.

*/ inline void SetMetricDefinitionId(const char* value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId.assign(value); } /** *

The ID of the metric definition that caused this error.

*/ inline BatchDeleteRumMetricDefinitionsError& WithMetricDefinitionId(const Aws::String& value) { SetMetricDefinitionId(value); return *this;} /** *

The ID of the metric definition that caused this error.

*/ inline BatchDeleteRumMetricDefinitionsError& WithMetricDefinitionId(Aws::String&& value) { SetMetricDefinitionId(std::move(value)); return *this;} /** *

The ID of the metric definition that caused this error.

*/ inline BatchDeleteRumMetricDefinitionsError& WithMetricDefinitionId(const char* value) { SetMetricDefinitionId(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_metricDefinitionId; bool m_metricDefinitionIdHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws