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

Describes the reason why the last image state change occurred.

See * Also:

AWS * API Reference

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

The state change reason code.

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

The state change reason code.

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

The state change reason code.

*/ inline void SetCode(const ImageStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The state change reason code.

*/ inline void SetCode(ImageStateChangeReasonCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The state change reason code.

*/ inline ImageStateChangeReason& WithCode(const ImageStateChangeReasonCode& value) { SetCode(value); return *this;} /** *

The state change reason code.

*/ inline ImageStateChangeReason& WithCode(ImageStateChangeReasonCode&& value) { SetCode(std::move(value)); return *this;} /** *

The state change reason message.

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

The state change reason message.

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

The state change reason message.

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

The state change reason message.

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

The state change reason message.

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

The state change reason message.

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

The state change reason message.

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

The state change reason message.

*/ inline ImageStateChangeReason& WithMessage(const char* value) { SetMessage(value); return *this;} private: ImageStateChangeReasonCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws