AWS SDK for C++  1.8.96
AWS SDK for C++
Public Member Functions | List of all members
Aws::Lightsail::Model::InstancePortState Class Reference

#include <InstancePortState.h>

Public Member Functions

 InstancePortState ()
 
 InstancePortState (Aws::Utils::Json::JsonView jsonValue)
 
InstancePortStateoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
int GetFromPort () const
 
bool FromPortHasBeenSet () const
 
void SetFromPort (int value)
 
InstancePortStateWithFromPort (int value)
 
int GetToPort () const
 
bool ToPortHasBeenSet () const
 
void SetToPort (int value)
 
InstancePortStateWithToPort (int value)
 
const NetworkProtocolGetProtocol () const
 
bool ProtocolHasBeenSet () const
 
void SetProtocol (const NetworkProtocol &value)
 
void SetProtocol (NetworkProtocol &&value)
 
InstancePortStateWithProtocol (const NetworkProtocol &value)
 
InstancePortStateWithProtocol (NetworkProtocol &&value)
 
const PortStateGetState () const
 
bool StateHasBeenSet () const
 
void SetState (const PortState &value)
 
void SetState (PortState &&value)
 
InstancePortStateWithState (const PortState &value)
 
InstancePortStateWithState (PortState &&value)
 
const Aws::Vector< Aws::String > & GetCidrs () const
 
bool CidrsHasBeenSet () const
 
void SetCidrs (const Aws::Vector< Aws::String > &value)
 
void SetCidrs (Aws::Vector< Aws::String > &&value)
 
InstancePortStateWithCidrs (const Aws::Vector< Aws::String > &value)
 
InstancePortStateWithCidrs (Aws::Vector< Aws::String > &&value)
 
InstancePortStateAddCidrs (const Aws::String &value)
 
InstancePortStateAddCidrs (Aws::String &&value)
 
InstancePortStateAddCidrs (const char *value)
 
const Aws::Vector< Aws::String > & GetCidrListAliases () const
 
bool CidrListAliasesHasBeenSet () const
 
void SetCidrListAliases (const Aws::Vector< Aws::String > &value)
 
void SetCidrListAliases (Aws::Vector< Aws::String > &&value)
 
InstancePortStateWithCidrListAliases (const Aws::Vector< Aws::String > &value)
 
InstancePortStateWithCidrListAliases (Aws::Vector< Aws::String > &&value)
 
InstancePortStateAddCidrListAliases (const Aws::String &value)
 
InstancePortStateAddCidrListAliases (Aws::String &&value)
 
InstancePortStateAddCidrListAliases (const char *value)
 

Detailed Description

Describes open ports on an instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.

See Also:

AWS API Reference

Definition at line 35 of file InstancePortState.h.

Constructor & Destructor Documentation

◆ InstancePortState() [1/2]

Aws::Lightsail::Model::InstancePortState::InstancePortState ( )

◆ InstancePortState() [2/2]

Aws::Lightsail::Model::InstancePortState::InstancePortState ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddCidrListAliases() [1/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrListAliases ( const Aws::String value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 487 of file InstancePortState.h.

◆ AddCidrListAliases() [2/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrListAliases ( Aws::String &&  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 495 of file InstancePortState.h.

◆ AddCidrListAliases() [3/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrListAliases ( const char *  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 503 of file InstancePortState.h.

◆ AddCidrs() [1/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrs ( const Aws::String value)
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 410 of file InstancePortState.h.

◆ AddCidrs() [2/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrs ( Aws::String &&  value)
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 420 of file InstancePortState.h.

◆ AddCidrs() [3/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrs ( const char *  value)
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 430 of file InstancePortState.h.

◆ CidrListAliasesHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::CidrListAliasesHasBeenSet ( ) const
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 447 of file InstancePortState.h.

◆ CidrsHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::CidrsHasBeenSet ( ) const
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 360 of file InstancePortState.h.

◆ FromPortHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::FromPortHasBeenSet ( ) const
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 66 of file InstancePortState.h.

◆ GetCidrListAliases()

const Aws::Vector<Aws::String>& Aws::Lightsail::Model::InstancePortState::GetCidrListAliases ( ) const
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 439 of file InstancePortState.h.

◆ GetCidrs()

const Aws::Vector<Aws::String>& Aws::Lightsail::Model::InstancePortState::GetCidrs ( ) const
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 350 of file InstancePortState.h.

◆ GetFromPort()

int Aws::Lightsail::Model::InstancePortState::GetFromPort ( ) const
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 54 of file InstancePortState.h.

◆ GetProtocol()

const NetworkProtocol& Aws::Lightsail::Model::InstancePortState::GetProtocol ( ) const
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 166 of file InstancePortState.h.

◆ GetState()

const PortState& Aws::Lightsail::Model::InstancePortState::GetState ( ) const
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 304 of file InstancePortState.h.

◆ GetToPort()

int Aws::Lightsail::Model::InstancePortState::GetToPort ( ) const
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 103 of file InstancePortState.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::Lightsail::Model::InstancePortState::Jsonize ( ) const

◆ operator=()

InstancePortState& Aws::Lightsail::Model::InstancePortState::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ ProtocolHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::ProtocolHasBeenSet ( ) const
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 192 of file InstancePortState.h.

◆ SetCidrListAliases() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrListAliases ( const Aws::Vector< Aws::String > &  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 455 of file InstancePortState.h.

◆ SetCidrListAliases() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrListAliases ( Aws::Vector< Aws::String > &&  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 463 of file InstancePortState.h.

◆ SetCidrs() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrs ( const Aws::Vector< Aws::String > &  value)
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 370 of file InstancePortState.h.

◆ SetCidrs() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrs ( Aws::Vector< Aws::String > &&  value)
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 380 of file InstancePortState.h.

◆ SetFromPort()

void Aws::Lightsail::Model::InstancePortState::SetFromPort ( int  value)
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 78 of file InstancePortState.h.

◆ SetProtocol() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetProtocol ( const NetworkProtocol value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 218 of file InstancePortState.h.

◆ SetProtocol() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetProtocol ( NetworkProtocol &&  value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 244 of file InstancePortState.h.

◆ SetState() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetState ( const PortState value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 318 of file InstancePortState.h.

◆ SetState() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetState ( PortState &&  value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 325 of file InstancePortState.h.

◆ SetToPort()

void Aws::Lightsail::Model::InstancePortState::SetToPort ( int  value)
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 127 of file InstancePortState.h.

◆ StateHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::StateHasBeenSet ( ) const
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 311 of file InstancePortState.h.

◆ ToPortHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::ToPortHasBeenSet ( ) const
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 115 of file InstancePortState.h.

◆ WithCidrListAliases() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrListAliases ( const Aws::Vector< Aws::String > &  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 471 of file InstancePortState.h.

◆ WithCidrListAliases() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrListAliases ( Aws::Vector< Aws::String > &&  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 479 of file InstancePortState.h.

◆ WithCidrs() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrs ( const Aws::Vector< Aws::String > &  value)
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 390 of file InstancePortState.h.

◆ WithCidrs() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrs ( Aws::Vector< Aws::String > &&  value)
inline

The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 400 of file InstancePortState.h.

◆ WithFromPort()

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithFromPort ( int  value)
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 90 of file InstancePortState.h.

◆ WithProtocol() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithProtocol ( const NetworkProtocol value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 270 of file InstancePortState.h.

◆ WithProtocol() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithProtocol ( NetworkProtocol &&  value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 296 of file InstancePortState.h.

◆ WithState() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithState ( const PortState value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 332 of file InstancePortState.h.

◆ WithState() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithState ( PortState &&  value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 339 of file InstancePortState.h.

◆ WithToPort()

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithToPort ( int  value)
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

Definition at line 139 of file InstancePortState.h.


The documentation for this class was generated from the following file: