public class InstancePortInfo extends Object implements Serializable, Cloneable
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 |
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.NetworkProtocol
public String getProtocol()
The protocol.
NetworkProtocol
public InstancePortInfo withProtocol(String protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
public void setProtocol(NetworkProtocol protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
public InstancePortInfo withProtocol(NetworkProtocol protocol)
The protocol.
protocol
- The protocol.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.