Package com.vmware.nsx_policy.model
Class IPSecVpnTunnelTrafficStatistics.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.IPSecVpnTunnelTrafficStatistics.Builder
-
- Enclosing class:
- IPSecVpnTunnelTrafficStatistics
public static final class IPSecVpnTunnelTrafficStatistics.Builder extends java.lang.Object
Builder class forIPSecVpnTunnelTrafficStatistics
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofIPSecVpnTunnelTrafficStatistics
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPSecVpnTunnelTrafficStatistics
build()
IPSecVpnTunnelTrafficStatistics.Builder
setBytesIn(java.lang.Long bytesIn)
Total number of incoming bytes on inbound Security association.IPSecVpnTunnelTrafficStatistics.Builder
setBytesOut(java.lang.Long bytesOut)
Total number of outgoing bytes on outbound Security association.IPSecVpnTunnelTrafficStatistics.Builder
setDecryptionFailures(java.lang.Long decryptionFailures)
Total number of packets dropped due to decryption failures.IPSecVpnTunnelTrafficStatistics.Builder
setDroppedPacketsIn(java.lang.Long droppedPacketsIn)
Total number of incoming packets dropped on inbound security association.IPSecVpnTunnelTrafficStatistics.Builder
setDroppedPacketsOut(java.lang.Long droppedPacketsOut)
Total number of outgoing packets dropped on outbound security association.IPSecVpnTunnelTrafficStatistics.Builder
setEncryptionFailures(java.lang.Long encryptionFailures)
Total number of packets dropped because of failure in encryption.IPSecVpnTunnelTrafficStatistics.Builder
setIntegrityFailures(java.lang.Long integrityFailures)
Total number of packets dropped due to integrity failures.IPSecVpnTunnelTrafficStatistics.Builder
setLocalSubnet(java.lang.String localSubnet)
Local subnet to which a tunnel belongs.IPSecVpnTunnelTrafficStatistics.Builder
setNomatchingPolicyErrors(java.lang.Long nomatchingPolicyErrors)
Number of packets dropped because of no matching policy is available.IPSecVpnTunnelTrafficStatistics.Builder
setPacketsIn(java.lang.Long packetsIn)
Total number of incoming packets on inbound Security association.IPSecVpnTunnelTrafficStatistics.Builder
setPacketsOut(java.lang.Long packetsOut)
Total number of outgoing packets on outbound Security association.IPSecVpnTunnelTrafficStatistics.Builder
setPacketsReceivedOtherError(java.lang.Long packetsReceivedOtherError)
Total number of incoming packets dropped on inbound Security association.IPSecVpnTunnelTrafficStatistics.Builder
setPacketsSentOtherError(java.lang.Long packetsSentOtherError)
Total number of packets dropped while sending for any reason.IPSecVpnTunnelTrafficStatistics.Builder
setRemoteSubnet(java.lang.String remoteSubnet)
Peer subnet to which a tunnel belongs.IPSecVpnTunnelTrafficStatistics.Builder
setReplayErrors(java.lang.Long replayErrors)
Total number of packets dropped due to replay check on that Security association.IPSecVpnTunnelTrafficStatistics.Builder
setSaMismatchErrorsIn(java.lang.Long saMismatchErrorsIn)
Totoal number of security association mismatch errors on incoming packets.IPSecVpnTunnelTrafficStatistics.Builder
setSaMismatchErrorsOut(java.lang.Long saMismatchErrorsOut)
Totoal number of security association mismatch errors on outgoing packets.IPSecVpnTunnelTrafficStatistics.Builder
setSeqNumberOverflowError(java.lang.Long seqNumberOverflowError)
Total number of packets dropped while sending due to overflow in sequence number.IPSecVpnTunnelTrafficStatistics.Builder
setTunnelDownReason(java.lang.String tunnelDownReason)
Gives the detailed reason about the tunnel when it is down.IPSecVpnTunnelTrafficStatistics.Builder
setTunnelStatus(java.lang.String tunnelStatus)
Possible values are:IPSecVpnTunnelTrafficStatistics.TUNNEL_STATUS_UP
IPSecVpnTunnelTrafficStatistics.TUNNEL_STATUS_DOWN
Specifies the status of tunnel, if it is UP/DOWN.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofIPSecVpnTunnelTrafficStatistics
.
-
-
Method Detail
-
setBytesIn
public IPSecVpnTunnelTrafficStatistics.Builder setBytesIn(java.lang.Long bytesIn)
Total number of incoming bytes on inbound Security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
bytesIn
- New value for the property.
-
setBytesOut
public IPSecVpnTunnelTrafficStatistics.Builder setBytesOut(java.lang.Long bytesOut)
Total number of outgoing bytes on outbound Security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
bytesOut
- New value for the property.
-
setDecryptionFailures
public IPSecVpnTunnelTrafficStatistics.Builder setDecryptionFailures(java.lang.Long decryptionFailures)
Total number of packets dropped due to decryption failures. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
decryptionFailures
- New value for the property.
-
setDroppedPacketsIn
public IPSecVpnTunnelTrafficStatistics.Builder setDroppedPacketsIn(java.lang.Long droppedPacketsIn)
Total number of incoming packets dropped on inbound security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
droppedPacketsIn
- New value for the property.
-
setDroppedPacketsOut
public IPSecVpnTunnelTrafficStatistics.Builder setDroppedPacketsOut(java.lang.Long droppedPacketsOut)
Total number of outgoing packets dropped on outbound security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
droppedPacketsOut
- New value for the property.
-
setEncryptionFailures
public IPSecVpnTunnelTrafficStatistics.Builder setEncryptionFailures(java.lang.Long encryptionFailures)
Total number of packets dropped because of failure in encryption. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
encryptionFailures
- New value for the property.
-
setIntegrityFailures
public IPSecVpnTunnelTrafficStatistics.Builder setIntegrityFailures(java.lang.Long integrityFailures)
Total number of packets dropped due to integrity failures. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
integrityFailures
- New value for the property.
-
setLocalSubnet
public IPSecVpnTunnelTrafficStatistics.Builder setLocalSubnet(java.lang.String localSubnet)
Local subnet to which a tunnel belongs. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
localSubnet
- New value for the property.
-
setNomatchingPolicyErrors
public IPSecVpnTunnelTrafficStatistics.Builder setNomatchingPolicyErrors(java.lang.Long nomatchingPolicyErrors)
Number of packets dropped because of no matching policy is available. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
nomatchingPolicyErrors
- New value for the property.
-
setPacketsIn
public IPSecVpnTunnelTrafficStatistics.Builder setPacketsIn(java.lang.Long packetsIn)
Total number of incoming packets on inbound Security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
packetsIn
- New value for the property.
-
setPacketsOut
public IPSecVpnTunnelTrafficStatistics.Builder setPacketsOut(java.lang.Long packetsOut)
Total number of outgoing packets on outbound Security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
packetsOut
- New value for the property.
-
setPacketsReceivedOtherError
public IPSecVpnTunnelTrafficStatistics.Builder setPacketsReceivedOtherError(java.lang.Long packetsReceivedOtherError)
Total number of incoming packets dropped on inbound Security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
packetsReceivedOtherError
- New value for the property.
-
setPacketsSentOtherError
public IPSecVpnTunnelTrafficStatistics.Builder setPacketsSentOtherError(java.lang.Long packetsSentOtherError)
Total number of packets dropped while sending for any reason. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
packetsSentOtherError
- New value for the property.
-
setRemoteSubnet
public IPSecVpnTunnelTrafficStatistics.Builder setRemoteSubnet(java.lang.String remoteSubnet)
Peer subnet to which a tunnel belongs. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
remoteSubnet
- New value for the property.
-
setReplayErrors
public IPSecVpnTunnelTrafficStatistics.Builder setReplayErrors(java.lang.Long replayErrors)
Total number of packets dropped due to replay check on that Security association. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
replayErrors
- New value for the property.
-
setSaMismatchErrorsIn
public IPSecVpnTunnelTrafficStatistics.Builder setSaMismatchErrorsIn(java.lang.Long saMismatchErrorsIn)
Totoal number of security association mismatch errors on incoming packets. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
saMismatchErrorsIn
- New value for the property.
-
setSaMismatchErrorsOut
public IPSecVpnTunnelTrafficStatistics.Builder setSaMismatchErrorsOut(java.lang.Long saMismatchErrorsOut)
Totoal number of security association mismatch errors on outgoing packets. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
saMismatchErrorsOut
- New value for the property.
-
setSeqNumberOverflowError
public IPSecVpnTunnelTrafficStatistics.Builder setSeqNumberOverflowError(java.lang.Long seqNumberOverflowError)
Total number of packets dropped while sending due to overflow in sequence number. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
seqNumberOverflowError
- New value for the property.
-
setTunnelDownReason
public IPSecVpnTunnelTrafficStatistics.Builder setTunnelDownReason(java.lang.String tunnelDownReason)
Gives the detailed reason about the tunnel when it is down. If tunnel is UP tunnel down reason will be empty. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
tunnelDownReason
- New value for the property.
-
setTunnelStatus
public IPSecVpnTunnelTrafficStatistics.Builder setTunnelStatus(java.lang.String tunnelStatus)
Possible values are: Specifies the status of tunnel, if it is UP/DOWN. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
tunnelStatus
- New value for the property.
-
build
public IPSecVpnTunnelTrafficStatistics build()
-
-