@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstancePortState extends Object implements Serializable, Cloneable, StructuredPojo
Describes the port state.
Constructor and Description |
---|
InstancePortState() |
Modifier and Type | Method and Description |
---|---|
InstancePortState |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
The first port in the range.
|
String |
getProtocol()
The protocol being used.
|
String |
getState()
Specifies whether the instance port is
open or closed . |
Integer |
getToPort()
The last port in the range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFromPort(Integer fromPort)
The first port in the range.
|
void |
setProtocol(NetworkProtocol protocol)
The protocol being used.
|
void |
setProtocol(String protocol)
The protocol being used.
|
void |
setState(PortState state)
Specifies whether the instance port is
open or closed . |
void |
setState(String state)
Specifies whether the instance port is
open or closed . |
void |
setToPort(Integer toPort)
The last port in the range.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstancePortState |
withFromPort(Integer fromPort)
The first port in the range.
|
InstancePortState |
withProtocol(NetworkProtocol protocol)
The protocol being used.
|
InstancePortState |
withProtocol(String protocol)
The protocol being used.
|
InstancePortState |
withState(PortState state)
Specifies whether the instance port is
open or closed . |
InstancePortState |
withState(String state)
Specifies whether the instance port is
open or closed . |
InstancePortState |
withToPort(Integer toPort)
The last port in the range.
|
public void setFromPort(Integer fromPort)
The first port in the range.
fromPort
- The first port in the range.public Integer getFromPort()
The first port in the range.
public InstancePortState withFromPort(Integer fromPort)
The first port in the range.
fromPort
- The first port in the range.public void setToPort(Integer toPort)
The last port in the range.
toPort
- The last port in the range.public Integer getToPort()
The last port in the range.
public InstancePortState withToPort(Integer toPort)
The last port in the range.
toPort
- The last port in the range.public void setProtocol(String protocol)
The protocol being used. 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.
protocol
- The protocol being used. 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.
NetworkProtocol
public String getProtocol()
The protocol being used. 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.
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.
NetworkProtocol
public InstancePortState withProtocol(String protocol)
The protocol being used. 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.
protocol
- The protocol being used. 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.
NetworkProtocol
public void setProtocol(NetworkProtocol protocol)
The protocol being used. 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.
protocol
- The protocol being used. 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.
NetworkProtocol
public InstancePortState withProtocol(NetworkProtocol protocol)
The protocol being used. 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.
protocol
- The protocol being used. 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.
NetworkProtocol
public void setState(String state)
Specifies whether the instance port is open
or closed
.
state
- Specifies whether the instance port is open
or closed
.PortState
public String getState()
Specifies whether the instance port is open
or closed
.
open
or closed
.PortState
public InstancePortState withState(String state)
Specifies whether the instance port is open
or closed
.
state
- Specifies whether the instance port is open
or closed
.PortState
public void setState(PortState state)
Specifies whether the instance port is open
or closed
.
state
- Specifies whether the instance port is open
or closed
.PortState
public InstancePortState withState(PortState state)
Specifies whether the instance port is open
or closed
.
state
- Specifies whether the instance port is open
or closed
.PortState
public String toString()
toString
in class Object
Object.toString()
public InstancePortState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.