/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a local gateway route table.

See Also:

AWS * API Reference

*/ class LocalGatewayRouteTable { public: AWS_EC2_API LocalGatewayRouteTable(); AWS_EC2_API LocalGatewayRouteTable(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API LocalGatewayRouteTable& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the local gateway route table.

*/ inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; } /** *

The ID of the local gateway route table.

*/ inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); } /** *

The ID of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;} /** *

The ID of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;} /** *

The ID of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline const Aws::String& GetLocalGatewayRouteTableArn() const{ return m_localGatewayRouteTableArn; } /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline bool LocalGatewayRouteTableArnHasBeenSet() const { return m_localGatewayRouteTableArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableArn(const Aws::String& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = value; } /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableArn(Aws::String&& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableArn(const char* value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithLocalGatewayRouteTableArn(const Aws::String& value) { SetLocalGatewayRouteTableArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithLocalGatewayRouteTableArn(Aws::String&& value) { SetLocalGatewayRouteTableArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithLocalGatewayRouteTableArn(const char* value) { SetLocalGatewayRouteTableArn(value); return *this;} /** *

The ID of the local gateway.

*/ inline const Aws::String& GetLocalGatewayId() const{ return m_localGatewayId; } /** *

The ID of the local gateway.

*/ inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; } /** *

The ID of the local gateway.

*/ inline void SetLocalGatewayId(const Aws::String& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = value; } /** *

The ID of the local gateway.

*/ inline void SetLocalGatewayId(Aws::String&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::move(value); } /** *

The ID of the local gateway.

*/ inline void SetLocalGatewayId(const char* value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId.assign(value); } /** *

The ID of the local gateway.

*/ inline LocalGatewayRouteTable& WithLocalGatewayId(const Aws::String& value) { SetLocalGatewayId(value); return *this;} /** *

The ID of the local gateway.

*/ inline LocalGatewayRouteTable& WithLocalGatewayId(Aws::String&& value) { SetLocalGatewayId(std::move(value)); return *this;} /** *

The ID of the local gateway.

*/ inline LocalGatewayRouteTable& WithLocalGatewayId(const char* value) { SetLocalGatewayId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline LocalGatewayRouteTable& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline LocalGatewayRouteTable& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline LocalGatewayRouteTable& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline LocalGatewayRouteTable& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline LocalGatewayRouteTable& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the local gateway route * table.

*/ inline LocalGatewayRouteTable& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The state of the local gateway route table.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The state of the local gateway route table.

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

The state of the local gateway route table.

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

The state of the local gateway route table.

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

The state of the local gateway route table.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The state of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The state of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The state of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithState(const char* value) { SetState(value); return *this;} /** *

The tags assigned to the local gateway route table.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags assigned to the local gateway route table.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags assigned to the local gateway route table.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags assigned to the local gateway route table.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags assigned to the local gateway route table.

*/ inline LocalGatewayRouteTable& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags assigned to the local gateway route table.

*/ inline LocalGatewayRouteTable& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to the local gateway route table.

*/ inline LocalGatewayRouteTable& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags assigned to the local gateway route table.

*/ inline LocalGatewayRouteTable& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The mode of the local gateway route table.

*/ inline const LocalGatewayRouteTableMode& GetMode() const{ return m_mode; } /** *

The mode of the local gateway route table.

*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *

The mode of the local gateway route table.

*/ inline void SetMode(const LocalGatewayRouteTableMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *

The mode of the local gateway route table.

*/ inline void SetMode(LocalGatewayRouteTableMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *

The mode of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithMode(const LocalGatewayRouteTableMode& value) { SetMode(value); return *this;} /** *

The mode of the local gateway route table.

*/ inline LocalGatewayRouteTable& WithMode(LocalGatewayRouteTableMode&& value) { SetMode(std::move(value)); return *this;} /** *

Information about the state change.

*/ inline const StateReason& GetStateReason() const{ return m_stateReason; } /** *

Information about the state change.

*/ inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; } /** *

Information about the state change.

*/ inline void SetStateReason(const StateReason& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; } /** *

Information about the state change.

*/ inline void SetStateReason(StateReason&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); } /** *

Information about the state change.

*/ inline LocalGatewayRouteTable& WithStateReason(const StateReason& value) { SetStateReason(value); return *this;} /** *

Information about the state change.

*/ inline LocalGatewayRouteTable& WithStateReason(StateReason&& value) { SetStateReason(std::move(value)); return *this;} private: Aws::String m_localGatewayRouteTableId; bool m_localGatewayRouteTableIdHasBeenSet = false; Aws::String m_localGatewayRouteTableArn; bool m_localGatewayRouteTableArnHasBeenSet = false; Aws::String m_localGatewayId; bool m_localGatewayIdHasBeenSet = false; Aws::String m_outpostArn; bool m_outpostArnHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; LocalGatewayRouteTableMode m_mode; bool m_modeHasBeenSet = false; StateReason m_stateReason; bool m_stateReasonHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws