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

A request conflict exception object.

See Also:

AWS * API Reference

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

*/ inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The error type.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The error type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The error type.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The error type.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The error type.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The error type.

*/ inline ConflictException& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The error type.

*/ inline ConflictException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The error type.

*/ inline ConflictException& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws