@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.
|
Integer |
getToPort()
The last port in the range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller 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.
|
void |
setProtocol(String protocol)
The protocol.
|
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.
|
InstancePortInfo |
withProtocol(String protocol)
The protocol.
|
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.
protocol - The protocol.NetworkProtocolpublic String getProtocol()
The protocol.
NetworkProtocolpublic InstancePortInfo withProtocol(String protocol)
The protocol.
protocol - The protocol.NetworkProtocolpublic void setProtocol(NetworkProtocol protocol)
The protocol.
protocol - The protocol.NetworkProtocolpublic InstancePortInfo withProtocol(NetworkProtocol protocol)
The protocol.
protocol - The protocol.NetworkProtocolpublic 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).PortAccessTypepublic String getAccessType()
The type of access (Public or Private).
Public or Private).PortAccessTypepublic InstancePortInfo withAccessType(String accessType)
The type of access (Public or Private).
accessType - The type of access (Public or Private).PortAccessTypepublic void setAccessType(PortAccessType accessType)
The type of access (Public or Private).
accessType - The type of access (Public or Private).PortAccessTypepublic InstancePortInfo withAccessType(PortAccessType accessType)
The type of access (Public or Private).
accessType - The type of access (Public or Private).PortAccessTypepublic 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).AccessDirectionpublic String getAccessDirection()
The access direction (inbound or outbound).
inbound or outbound).AccessDirectionpublic InstancePortInfo withAccessDirection(String accessDirection)
The access direction (inbound or outbound).
accessDirection - The access direction (inbound or outbound).AccessDirectionpublic void setAccessDirection(AccessDirection accessDirection)
The access direction (inbound or outbound).
accessDirection - The access direction (inbound or outbound).AccessDirectionpublic InstancePortInfo withAccessDirection(AccessDirection accessDirection)
The access direction (inbound or outbound).
accessDirection - The access direction (inbound or outbound).AccessDirectionpublic String toString()
toString in class ObjectObject.toString()public InstancePortInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2017. All rights reserved.