/** * 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 builder state change * occurred.

See Also:

AWS * API Reference

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

The state change reason code.

*/ inline const ImageBuilderStateChangeReasonCode& 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 ImageBuilderStateChangeReasonCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The state change reason code.

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

The state change reason code.

*/ inline ImageBuilderStateChangeReason& WithCode(const ImageBuilderStateChangeReasonCode& value) { SetCode(value); return *this;} /** *

The state change reason code.

*/ inline ImageBuilderStateChangeReason& WithCode(ImageBuilderStateChangeReasonCode&& 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 ImageBuilderStateChangeReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The state change reason message.

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

The state change reason message.

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