@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkConnectionAction extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the NETWORK_CONNECTION action described in the finding.
Constructor and Description |
---|
NetworkConnectionAction() |
Modifier and Type | Method and Description |
---|---|
NetworkConnectionAction |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBlocked()
Indicates whether EC2 blocked the network connection to your instance.
|
String |
getConnectionDirection()
The network connection direction.
|
LocalIpDetails |
getLocalIpDetails()
The local IP information of the connection.
|
LocalPortDetails |
getLocalPortDetails()
The local port information of the connection.
|
String |
getProtocol()
The network connection protocol.
|
RemoteIpDetails |
getRemoteIpDetails()
The remote IP information of the connection.
|
RemotePortDetails |
getRemotePortDetails()
The remote port information of the connection.
|
int |
hashCode() |
Boolean |
isBlocked()
Indicates whether EC2 blocked the network connection to your instance.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlocked(Boolean blocked)
Indicates whether EC2 blocked the network connection to your instance.
|
void |
setConnectionDirection(String connectionDirection)
The network connection direction.
|
void |
setLocalIpDetails(LocalIpDetails localIpDetails)
The local IP information of the connection.
|
void |
setLocalPortDetails(LocalPortDetails localPortDetails)
The local port information of the connection.
|
void |
setProtocol(String protocol)
The network connection protocol.
|
void |
setRemoteIpDetails(RemoteIpDetails remoteIpDetails)
The remote IP information of the connection.
|
void |
setRemotePortDetails(RemotePortDetails remotePortDetails)
The remote port information of the connection.
|
String |
toString()
Returns a string representation of this object.
|
NetworkConnectionAction |
withBlocked(Boolean blocked)
Indicates whether EC2 blocked the network connection to your instance.
|
NetworkConnectionAction |
withConnectionDirection(String connectionDirection)
The network connection direction.
|
NetworkConnectionAction |
withLocalIpDetails(LocalIpDetails localIpDetails)
The local IP information of the connection.
|
NetworkConnectionAction |
withLocalPortDetails(LocalPortDetails localPortDetails)
The local port information of the connection.
|
NetworkConnectionAction |
withProtocol(String protocol)
The network connection protocol.
|
NetworkConnectionAction |
withRemoteIpDetails(RemoteIpDetails remoteIpDetails)
The remote IP information of the connection.
|
NetworkConnectionAction |
withRemotePortDetails(RemotePortDetails remotePortDetails)
The remote port information of the connection.
|
public void setBlocked(Boolean blocked)
Indicates whether EC2 blocked the network connection to your instance.
blocked
- Indicates whether EC2 blocked the network connection to your instance.public Boolean getBlocked()
Indicates whether EC2 blocked the network connection to your instance.
public NetworkConnectionAction withBlocked(Boolean blocked)
Indicates whether EC2 blocked the network connection to your instance.
blocked
- Indicates whether EC2 blocked the network connection to your instance.public Boolean isBlocked()
Indicates whether EC2 blocked the network connection to your instance.
public void setConnectionDirection(String connectionDirection)
The network connection direction.
connectionDirection
- The network connection direction.public String getConnectionDirection()
The network connection direction.
public NetworkConnectionAction withConnectionDirection(String connectionDirection)
The network connection direction.
connectionDirection
- The network connection direction.public void setLocalPortDetails(LocalPortDetails localPortDetails)
The local port information of the connection.
localPortDetails
- The local port information of the connection.public LocalPortDetails getLocalPortDetails()
The local port information of the connection.
public NetworkConnectionAction withLocalPortDetails(LocalPortDetails localPortDetails)
The local port information of the connection.
localPortDetails
- The local port information of the connection.public void setProtocol(String protocol)
The network connection protocol.
protocol
- The network connection protocol.public String getProtocol()
The network connection protocol.
public NetworkConnectionAction withProtocol(String protocol)
The network connection protocol.
protocol
- The network connection protocol.public void setLocalIpDetails(LocalIpDetails localIpDetails)
The local IP information of the connection.
localIpDetails
- The local IP information of the connection.public LocalIpDetails getLocalIpDetails()
The local IP information of the connection.
public NetworkConnectionAction withLocalIpDetails(LocalIpDetails localIpDetails)
The local IP information of the connection.
localIpDetails
- The local IP information of the connection.public void setRemoteIpDetails(RemoteIpDetails remoteIpDetails)
The remote IP information of the connection.
remoteIpDetails
- The remote IP information of the connection.public RemoteIpDetails getRemoteIpDetails()
The remote IP information of the connection.
public NetworkConnectionAction withRemoteIpDetails(RemoteIpDetails remoteIpDetails)
The remote IP information of the connection.
remoteIpDetails
- The remote IP information of the connection.public void setRemotePortDetails(RemotePortDetails remotePortDetails)
The remote port information of the connection.
remotePortDetails
- The remote port information of the connection.public RemotePortDetails getRemotePortDetails()
The remote port information of the connection.
public NetworkConnectionAction withRemotePortDetails(RemotePortDetails remotePortDetails)
The remote port information of the connection.
remotePortDetails
- The remote port information of the connection.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.