250 lines
8.4 KiB
C++
250 lines
8.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ec2/EC2_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ec2/model/LocalGatewayRouteType.h>
|
|
#include <aws/ec2/model/LocalGatewayRouteState.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace EC2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes a route for a local gateway route table.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LocalGatewayRoute">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_EC2_API LocalGatewayRoute
|
|
{
|
|
public:
|
|
LocalGatewayRoute();
|
|
LocalGatewayRoute(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
LocalGatewayRoute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The CIDR block used for destination matches.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const{ return m_localGatewayVirtualInterfaceGroupId; }
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline void SetLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline void SetLocalGatewayVirtualInterfaceGroupId(const char* value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the virtual interface group.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(const char* value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The route type.</p>
|
|
*/
|
|
inline const LocalGatewayRouteType& GetType() const{ return m_type; }
|
|
|
|
/**
|
|
* <p>The route type.</p>
|
|
*/
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The route type.</p>
|
|
*/
|
|
inline void SetType(const LocalGatewayRouteType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|
|
|
/**
|
|
* <p>The route type.</p>
|
|
*/
|
|
inline void SetType(LocalGatewayRouteType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|
|
|
/**
|
|
* <p>The route type.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithType(const LocalGatewayRouteType& value) { SetType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The route type.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithType(LocalGatewayRouteType&& value) { SetType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The state of the route.</p>
|
|
*/
|
|
inline const LocalGatewayRouteState& GetState() const{ return m_state; }
|
|
|
|
/**
|
|
* <p>The state of the route.</p>
|
|
*/
|
|
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The state of the route.</p>
|
|
*/
|
|
inline void SetState(const LocalGatewayRouteState& value) { m_stateHasBeenSet = true; m_state = value; }
|
|
|
|
/**
|
|
* <p>The state of the route.</p>
|
|
*/
|
|
inline void SetState(LocalGatewayRouteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
|
|
|
|
/**
|
|
* <p>The state of the route.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithState(const LocalGatewayRouteState& value) { SetState(value); return *this;}
|
|
|
|
/**
|
|
* <p>The state of the route.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithState(LocalGatewayRouteState&& value) { SetState(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; }
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the local gateway route table.</p>
|
|
*/
|
|
inline LocalGatewayRoute& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_destinationCidrBlock;
|
|
bool m_destinationCidrBlockHasBeenSet;
|
|
|
|
Aws::String m_localGatewayVirtualInterfaceGroupId;
|
|
bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet;
|
|
|
|
LocalGatewayRouteType m_type;
|
|
bool m_typeHasBeenSet;
|
|
|
|
LocalGatewayRouteState m_state;
|
|
bool m_stateHasBeenSet;
|
|
|
|
Aws::String m_localGatewayRouteTableId;
|
|
bool m_localGatewayRouteTableIdHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|