@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstancePortInfo extends Object implements Serializable, Cloneable, StructuredPojo
Describes information about the instance ports.
Constructor and Description |
---|
InstancePortInfo() |
Modifier and Type | Method and Description |
---|---|
InstancePortInfo |
clone() |
boolean |
equals(Object obj) |
String |
getAccessDirection()
The access direction (
inbound or outbound ). |
String |
getAccessFrom()
The location from which access is allowed (e.g.,
Anywhere (0.0.0.0/0) ). |
String |
getAccessType()
The type of access (
Public or Private ). |
String |
getCommonName()
The common name.
|
Integer |
getFromPort()
The first port in the range.
|
String |
getProtocol()
The protocol being used.
|
Integer |
getToPort()
The last port in the range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessDirection(AccessDirection accessDirection)
The access direction (
inbound or outbound ). |
void |
setAccessDirection(String accessDirection)
The access direction (
inbound or outbound ). |
void |
setAccessFrom(String accessFrom)
The location from which access is allowed (e.g.,
Anywhere (0.0.0.0/0) ). |
void |
setAccessType(PortAccessType accessType)
The type of access (
Public or Private ). |
void |
setAccessType(String accessType)
The type of access (
Public or Private ). |
void |
setCommonName(String commonName)
The common name.
|
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 |
setToPort(Integer toPort)
The last port in the range.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstancePortInfo |
withAccessDirection(AccessDirection accessDirection)
The access direction (
inbound or outbound ). |
InstancePortInfo |
withAccessDirection(String accessDirection)
The access direction (
inbound or outbound ). |
InstancePortInfo |
withAccessFrom(String accessFrom)
The location from which access is allowed (e.g.,
Anywhere (0.0.0.0/0) ). |
InstancePortInfo |
withAccessType(PortAccessType accessType)
The type of access (
Public or Private ). |
InstancePortInfo |
withAccessType(String accessType)
The type of access (
Public or Private ). |
InstancePortInfo |
withCommonName(String commonName)
The common name.
|
InstancePortInfo |
withFromPort(Integer fromPort)
The first port in the range.
|
InstancePortInfo |
withProtocol(NetworkProtocol protocol)
The protocol being used.
|
InstancePortInfo |
withProtocol(String protocol)
The protocol being used.
|
InstancePortInfo |
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 InstancePortInfo 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 InstancePortInfo 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 InstancePortInfo 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 InstancePortInfo 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 setAccessFrom(String accessFrom)
The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)
).
accessFrom
- The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)
).public String getAccessFrom()
The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)
).
Anywhere (0.0.0.0/0)
).public InstancePortInfo withAccessFrom(String accessFrom)
The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)
).
accessFrom
- The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)
).public void setAccessType(String accessType)
The type of access (Public
or Private
).
accessType
- The type of access (Public
or Private
).PortAccessType
public String getAccessType()
The type of access (Public
or Private
).
Public
or Private
).PortAccessType
public InstancePortInfo withAccessType(String accessType)
The type of access (Public
or Private
).
accessType
- The type of access (Public
or Private
).PortAccessType
public void setAccessType(PortAccessType accessType)
The type of access (Public
or Private
).
accessType
- The type of access (Public
or Private
).PortAccessType
public InstancePortInfo withAccessType(PortAccessType accessType)
The type of access (Public
or Private
).
accessType
- The type of access (Public
or Private
).PortAccessType
public void setCommonName(String commonName)
The common name.
commonName
- The common name.public String getCommonName()
The common name.
public InstancePortInfo withCommonName(String commonName)
The common name.
commonName
- The common name.public void setAccessDirection(String accessDirection)
The access direction (inbound
or outbound
).
accessDirection
- The access direction (inbound
or outbound
).AccessDirection
public String getAccessDirection()
The access direction (inbound
or outbound
).
inbound
or outbound
).AccessDirection
public InstancePortInfo withAccessDirection(String accessDirection)
The access direction (inbound
or outbound
).
accessDirection
- The access direction (inbound
or outbound
).AccessDirection
public void setAccessDirection(AccessDirection accessDirection)
The access direction (inbound
or outbound
).
accessDirection
- The access direction (inbound
or outbound
).AccessDirection
public InstancePortInfo withAccessDirection(AccessDirection accessDirection)
The access direction (inbound
or outbound
).
accessDirection
- The access direction (inbound
or outbound
).AccessDirection
public String toString()
toString
in class Object
Object.toString()
public InstancePortInfo 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.