/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { /** *

This array is empty if the API operation was successful for all the rules * specified in the request. If the operation could not process one of the rules, * the following data is returned for each of those rules.

See Also:

* AWS * API Reference

*/ class PartialFailure { public: AWS_CLOUDWATCH_API PartialFailure(); AWS_CLOUDWATCH_API PartialFailure(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API PartialFailure& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The specified rule that could not be deleted.

*/ inline const Aws::String& GetFailureResource() const{ return m_failureResource; } /** *

The specified rule that could not be deleted.

*/ inline bool FailureResourceHasBeenSet() const { return m_failureResourceHasBeenSet; } /** *

The specified rule that could not be deleted.

*/ inline void SetFailureResource(const Aws::String& value) { m_failureResourceHasBeenSet = true; m_failureResource = value; } /** *

The specified rule that could not be deleted.

*/ inline void SetFailureResource(Aws::String&& value) { m_failureResourceHasBeenSet = true; m_failureResource = std::move(value); } /** *

The specified rule that could not be deleted.

*/ inline void SetFailureResource(const char* value) { m_failureResourceHasBeenSet = true; m_failureResource.assign(value); } /** *

The specified rule that could not be deleted.

*/ inline PartialFailure& WithFailureResource(const Aws::String& value) { SetFailureResource(value); return *this;} /** *

The specified rule that could not be deleted.

*/ inline PartialFailure& WithFailureResource(Aws::String&& value) { SetFailureResource(std::move(value)); return *this;} /** *

The specified rule that could not be deleted.

*/ inline PartialFailure& WithFailureResource(const char* value) { SetFailureResource(value); return *this;} /** *

The type of error.

*/ inline const Aws::String& GetExceptionType() const{ return m_exceptionType; } /** *

The type of error.

*/ inline bool ExceptionTypeHasBeenSet() const { return m_exceptionTypeHasBeenSet; } /** *

The type of error.

*/ inline void SetExceptionType(const Aws::String& value) { m_exceptionTypeHasBeenSet = true; m_exceptionType = value; } /** *

The type of error.

*/ inline void SetExceptionType(Aws::String&& value) { m_exceptionTypeHasBeenSet = true; m_exceptionType = std::move(value); } /** *

The type of error.

*/ inline void SetExceptionType(const char* value) { m_exceptionTypeHasBeenSet = true; m_exceptionType.assign(value); } /** *

The type of error.

*/ inline PartialFailure& WithExceptionType(const Aws::String& value) { SetExceptionType(value); return *this;} /** *

The type of error.

*/ inline PartialFailure& WithExceptionType(Aws::String&& value) { SetExceptionType(std::move(value)); return *this;} /** *

The type of error.

*/ inline PartialFailure& WithExceptionType(const char* value) { SetExceptionType(value); return *this;} /** *

The code of the error.

*/ inline const Aws::String& GetFailureCode() const{ return m_failureCode; } /** *

The code of the error.

*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *

The code of the error.

*/ inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } /** *

The code of the error.

*/ inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } /** *

The code of the error.

*/ inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); } /** *

The code of the error.

*/ inline PartialFailure& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;} /** *

The code of the error.

*/ inline PartialFailure& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;} /** *

The code of the error.

*/ inline PartialFailure& WithFailureCode(const char* value) { SetFailureCode(value); return *this;} /** *

A description of the error.

*/ inline const Aws::String& GetFailureDescription() const{ return m_failureDescription; } /** *

A description of the error.

*/ inline bool FailureDescriptionHasBeenSet() const { return m_failureDescriptionHasBeenSet; } /** *

A description of the error.

*/ inline void SetFailureDescription(const Aws::String& value) { m_failureDescriptionHasBeenSet = true; m_failureDescription = value; } /** *

A description of the error.

*/ inline void SetFailureDescription(Aws::String&& value) { m_failureDescriptionHasBeenSet = true; m_failureDescription = std::move(value); } /** *

A description of the error.

*/ inline void SetFailureDescription(const char* value) { m_failureDescriptionHasBeenSet = true; m_failureDescription.assign(value); } /** *

A description of the error.

*/ inline PartialFailure& WithFailureDescription(const Aws::String& value) { SetFailureDescription(value); return *this;} /** *

A description of the error.

*/ inline PartialFailure& WithFailureDescription(Aws::String&& value) { SetFailureDescription(std::move(value)); return *this;} /** *

A description of the error.

*/ inline PartialFailure& WithFailureDescription(const char* value) { SetFailureDescription(value); return *this;} private: Aws::String m_failureResource; bool m_failureResourceHasBeenSet = false; Aws::String m_exceptionType; bool m_exceptionTypeHasBeenSet = false; Aws::String m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_failureDescription; bool m_failureDescriptionHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws