Package org.jclouds.profitbricks.util
Class Preconditions
java.lang.Object
org.jclouds.profitbricks.util.Preconditions
Static convenience methods for validating various ProfitBricks domain preconditions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckCores(Integer cores) static voidcheckIcmp(Integer icmpType, Integer icmpCode, Firewall.Protocol protocol) static voidcheckInvalidChars(String name) static voidstatic voidstatic voidcheckLanId(Integer id) static voidcheckMacAddress(String macAddress) static voidcheckPassword(String password) static voidcheckPortRange(Integer portRangeStart, Integer portRangeEnd, Firewall.Protocol protocol) static voidstatic void
-
Constructor Details
-
Preconditions
public Preconditions()
-
-
Method Details
-
checkInvalidChars
-
checkIp
-
checkIps
-
checkPortRange
public static void checkPortRange(Integer portRangeStart, Integer portRangeEnd, Firewall.Protocol protocol) -
checkMacAddress
-
checkIcmp
-
checkLanId
-
checkCores
-
checkRam
-
checkSize
-
checkPassword
-