/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedGrafana { namespace Model { /** *

A structure containing information about one error encountered while * performing an UpdatePermissions * operation.

See Also:

AWS * API Reference

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

Specifies which permission update caused the error.

*/ inline const UpdateInstruction& GetCausedBy() const{ return m_causedBy; } /** *

Specifies which permission update caused the error.

*/ inline bool CausedByHasBeenSet() const { return m_causedByHasBeenSet; } /** *

Specifies which permission update caused the error.

*/ inline void SetCausedBy(const UpdateInstruction& value) { m_causedByHasBeenSet = true; m_causedBy = value; } /** *

Specifies which permission update caused the error.

*/ inline void SetCausedBy(UpdateInstruction&& value) { m_causedByHasBeenSet = true; m_causedBy = std::move(value); } /** *

Specifies which permission update caused the error.

*/ inline UpdateError& WithCausedBy(const UpdateInstruction& value) { SetCausedBy(value); return *this;} /** *

Specifies which permission update caused the error.

*/ inline UpdateError& WithCausedBy(UpdateInstruction&& value) { SetCausedBy(std::move(value)); return *this;} /** *

The error code.

*/ inline int GetCode() const{ return m_code; } /** *

The error code.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The error code.

*/ inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; } /** *

The error code.

*/ inline UpdateError& WithCode(int value) { SetCode(value); return *this;} /** *

The message for this error.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The message for this error.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The message for this error.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The message for this error.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The message for this error.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The message for this error.

*/ inline UpdateError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The message for this error.

*/ inline UpdateError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The message for this error.

*/ inline UpdateError& WithMessage(const char* value) { SetMessage(value); return *this;} private: UpdateInstruction m_causedBy; bool m_causedByHasBeenSet = false; int m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws