/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A message returned by the If a cross-Region GetMetricData
API, including a code and
* a description.GetMetricData
operation
* fails with a code of Forbidden
and a value of Authentication
* too complex to retrieve cross region data
, you can correct the problem by
* running the GetMetricData
operation in the same Region where the
* metric data is.See Also:
AWS
* API Reference
The error code or status code associated with the message.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *The error code or status code associated with the message.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code or status code associated with the message.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code or status code associated with the message.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code or status code associated with the message.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *The error code or status code associated with the message.
*/ inline MessageData& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *The error code or status code associated with the message.
*/ inline MessageData& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *The error code or status code associated with the message.
*/ inline MessageData& WithCode(const char* value) { SetCode(value); return *this;} /** *The message text.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The message text.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The message text.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The message text.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The message text.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The message text.
*/ inline MessageData& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The message text.
*/ inline MessageData& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The message text.
*/ inline MessageData& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws