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

Updating or deleting this resource can cause an inconsistent * state.

See Also:

AWS * API Reference

*/ class ConflictException { public: AWS_MEDIAPACKAGEV2_API ConflictException(); AWS_MEDIAPACKAGEV2_API ConflictException(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIAPACKAGEV2_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The type of ConflictException.

*/ inline const ConflictExceptionType& GetConflictExceptionType() const{ return m_conflictExceptionType; } /** *

The type of ConflictException.

*/ inline bool ConflictExceptionTypeHasBeenSet() const { return m_conflictExceptionTypeHasBeenSet; } /** *

The type of ConflictException.

*/ inline void SetConflictExceptionType(const ConflictExceptionType& value) { m_conflictExceptionTypeHasBeenSet = true; m_conflictExceptionType = value; } /** *

The type of ConflictException.

*/ inline void SetConflictExceptionType(ConflictExceptionType&& value) { m_conflictExceptionTypeHasBeenSet = true; m_conflictExceptionType = std::move(value); } /** *

The type of ConflictException.

*/ inline ConflictException& WithConflictExceptionType(const ConflictExceptionType& value) { SetConflictExceptionType(value); return *this;} /** *

The type of ConflictException.

*/ inline ConflictException& WithConflictExceptionType(ConflictExceptionType&& value) { SetConflictExceptionType(std::move(value)); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; ConflictExceptionType m_conflictExceptionType; bool m_conflictExceptionTypeHasBeenSet = false; }; } // namespace Model } // namespace mediapackagev2 } // namespace Aws