@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkConnectionAction extends Object implements Serializable, Cloneable, StructuredPojo
Provided if ActionType
is NETWORK_CONNECTION
. It provides details about the attempted
network connection that was detected.
Constructor and Description |
---|
NetworkConnectionAction() |
Modifier and Type | Method and Description |
---|---|
NetworkConnectionAction |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBlocked()
Indicates whether the network connection attempt was blocked.
|
String |
getConnectionDirection()
The direction of the network connection request (
IN or OUT ). |
ActionLocalPortDetails |
getLocalPortDetails()
Information about the port on the EC2 instance.
|
String |
getProtocol()
The protocol used to make the network connection request.
|
ActionRemoteIpDetails |
getRemoteIpDetails()
Information about the remote IP address that issued the network connection request.
|
ActionRemotePortDetails |
getRemotePortDetails()
Information about the port on the remote IP address.
|
int |
hashCode() |
Boolean |
isBlocked()
Indicates whether the network connection attempt was blocked.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlocked(Boolean blocked)
Indicates whether the network connection attempt was blocked.
|
void |
setConnectionDirection(String connectionDirection)
The direction of the network connection request (
IN or OUT ). |
void |
setLocalPortDetails(ActionLocalPortDetails localPortDetails)
Information about the port on the EC2 instance.
|
void |
setProtocol(String protocol)
The protocol used to make the network connection request.
|
void |
setRemoteIpDetails(ActionRemoteIpDetails remoteIpDetails)
Information about the remote IP address that issued the network connection request.
|
void |
setRemotePortDetails(ActionRemotePortDetails remotePortDetails)
Information about the port on the remote IP address.
|
String |
toString()
Returns a string representation of this object.
|
NetworkConnectionAction |
withBlocked(Boolean blocked)
Indicates whether the network connection attempt was blocked.
|
NetworkConnectionAction |
withConnectionDirection(String connectionDirection)
The direction of the network connection request (
IN or OUT ). |
NetworkConnectionAction |
withLocalPortDetails(ActionLocalPortDetails localPortDetails)
Information about the port on the EC2 instance.
|
NetworkConnectionAction |
withProtocol(String protocol)
The protocol used to make the network connection request.
|
NetworkConnectionAction |
withRemoteIpDetails(ActionRemoteIpDetails remoteIpDetails)
Information about the remote IP address that issued the network connection request.
|
NetworkConnectionAction |
withRemotePortDetails(ActionRemotePortDetails remotePortDetails)
Information about the port on the remote IP address.
|
public void setConnectionDirection(String connectionDirection)
The direction of the network connection request (IN
or OUT
).
connectionDirection
- The direction of the network connection request (IN
or OUT
).public String getConnectionDirection()
The direction of the network connection request (IN
or OUT
).
IN
or OUT
).public NetworkConnectionAction withConnectionDirection(String connectionDirection)
The direction of the network connection request (IN
or OUT
).
connectionDirection
- The direction of the network connection request (IN
or OUT
).public void setRemoteIpDetails(ActionRemoteIpDetails remoteIpDetails)
Information about the remote IP address that issued the network connection request.
remoteIpDetails
- Information about the remote IP address that issued the network connection request.public ActionRemoteIpDetails getRemoteIpDetails()
Information about the remote IP address that issued the network connection request.
public NetworkConnectionAction withRemoteIpDetails(ActionRemoteIpDetails remoteIpDetails)
Information about the remote IP address that issued the network connection request.
remoteIpDetails
- Information about the remote IP address that issued the network connection request.public void setRemotePortDetails(ActionRemotePortDetails remotePortDetails)
Information about the port on the remote IP address.
remotePortDetails
- Information about the port on the remote IP address.public ActionRemotePortDetails getRemotePortDetails()
Information about the port on the remote IP address.
public NetworkConnectionAction withRemotePortDetails(ActionRemotePortDetails remotePortDetails)
Information about the port on the remote IP address.
remotePortDetails
- Information about the port on the remote IP address.public void setLocalPortDetails(ActionLocalPortDetails localPortDetails)
Information about the port on the EC2 instance.
localPortDetails
- Information about the port on the EC2 instance.public ActionLocalPortDetails getLocalPortDetails()
Information about the port on the EC2 instance.
public NetworkConnectionAction withLocalPortDetails(ActionLocalPortDetails localPortDetails)
Information about the port on the EC2 instance.
localPortDetails
- Information about the port on the EC2 instance.public void setProtocol(String protocol)
The protocol used to make the network connection request.
protocol
- The protocol used to make the network connection request.public String getProtocol()
The protocol used to make the network connection request.
public NetworkConnectionAction withProtocol(String protocol)
The protocol used to make the network connection request.
protocol
- The protocol used to make the network connection request.public void setBlocked(Boolean blocked)
Indicates whether the network connection attempt was blocked.
blocked
- Indicates whether the network connection attempt was blocked.public Boolean getBlocked()
Indicates whether the network connection attempt was blocked.
public NetworkConnectionAction withBlocked(Boolean blocked)
Indicates whether the network connection attempt was blocked.
blocked
- Indicates whether the network connection attempt was blocked.public Boolean isBlocked()
Indicates whether the network connection attempt was blocked.
public String toString()
toString
in class Object
Object.toString()
public NetworkConnectionAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.