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)
Tunnel local subnet in IPv4 CIDR Block format.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
setPeerSubnet(java.lang.String peerSubnet)
Tunnel peer subnet in IPv4 CIDR Block format.IpSecVpnTunnelTrafficStatistics.Builder
setPolicyId(java.lang.String policyId)
Policy UUID of IPSec Tunnel.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)
Tunnel local subnet in IPv4 CIDR Block format. 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.
-
setPeerSubnet
public IpSecVpnTunnelTrafficStatistics.Builder setPeerSubnet(java.lang.String peerSubnet)
Tunnel peer subnet in IPv4 CIDR Block format. 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:
peerSubnet
- New value for the property.
-
setPolicyId
public IpSecVpnTunnelTrafficStatistics.Builder setPolicyId(java.lang.String policyId)
Policy UUID of IPSec Tunnel. 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:
policyId
- 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()
-
-