/** * 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 registration of a transit gateway to a global * network.

See Also:

AWS * API Reference

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

The ID of the global network.

*/ inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; } /** *

The ID of the global network.

*/ inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); } /** *

The ID of the global network.

*/ inline TransitGatewayRegistration& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

*/ inline TransitGatewayRegistration& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;} /** *

The ID of the global network.

*/ inline TransitGatewayRegistration& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline const Aws::String& GetTransitGatewayArn() const{ return m_transitGatewayArn; } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline void SetTransitGatewayArn(const Aws::String& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = value; } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline void SetTransitGatewayArn(Aws::String&& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline void SetTransitGatewayArn(const char* value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline TransitGatewayRegistration& WithTransitGatewayArn(const Aws::String& value) { SetTransitGatewayArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline TransitGatewayRegistration& WithTransitGatewayArn(Aws::String&& value) { SetTransitGatewayArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the transit gateway.

*/ inline TransitGatewayRegistration& WithTransitGatewayArn(const char* value) { SetTransitGatewayArn(value); return *this;} /** *

The state of the transit gateway registration.

*/ inline const TransitGatewayRegistrationStateReason& GetState() const{ return m_state; } /** *

The state of the transit gateway registration.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the transit gateway registration.

*/ inline void SetState(const TransitGatewayRegistrationStateReason& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the transit gateway registration.

*/ inline void SetState(TransitGatewayRegistrationStateReason&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the transit gateway registration.

*/ inline TransitGatewayRegistration& WithState(const TransitGatewayRegistrationStateReason& value) { SetState(value); return *this;} /** *

The state of the transit gateway registration.

*/ inline TransitGatewayRegistration& WithState(TransitGatewayRegistrationStateReason&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_transitGatewayArn; bool m_transitGatewayArnHasBeenSet = false; TransitGatewayRegistrationStateReason m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws