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

Describes the status of a transit gateway registration.

See * Also:

AWS * API Reference

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

The code for the state reason.

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

The code for the state reason.

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

The code for the state reason.

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

The code for the state reason.

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

The code for the state reason.

*/ inline TransitGatewayRegistrationStateReason& WithCode(const TransitGatewayRegistrationState& value) { SetCode(value); return *this;} /** *

The code for the state reason.

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

The message for the state reason.

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

The message for the state reason.

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

The message for the state reason.

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

The message for the state reason.

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

The message for the state reason.

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

The message for the state reason.

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

The message for the state reason.

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

The message for the state reason.

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