Package model
Class PingOptions.PingOptionsBuilder
java.lang.Object
model.PingOptions.PingOptionsBuilder
- Enclosing class:
- PingOptions
This class represents a builder for Dns Options.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Final method in the chain to buildPingOptionsobject.withIpVersion(int ipVersion) Chain method for setting value of ipVersion.withPackets(int packets) Chain method for setting value of packets.
-
Constructor Details
-
PingOptionsBuilder
public PingOptionsBuilder()This class represents a builder for Ping Options.
-
-
Method Details
-
withPackets
Chain method for setting value of packets.- Parameters:
packets- int value within the range to 1 to 16.- Returns:
PingOptions.PingOptionsBuilder- Throws:
PayloadException- if the packets param is invalid.
-
withIpVersion
Chain method for setting value of ipVersion.- Parameters:
ipVersion- int value for IP Version 4|6.- Returns:
PingOptions.PingOptionsBuilder- Throws:
PayloadException- if protocol param value is invalid EXPERIMENTAL: The IP version to use. Only allowed if the target is a hostname.
-
build
Final method in the chain to buildPingOptionsobject.- Returns:
PingOptions
-