Record Class CAPreferenceServerBookmark
java.lang.Object
java.lang.Record
com.io7m.cardant.client.preferences.api.CAPreferenceServerBookmark
- Record Components:
name- The bookmark namehost- The server hostport- The server portisHTTPs-trueif https is to be enabledloginTimeout- The login timeoutcommandTimeout- The command timeoutcredentials- The credentials
-
Constructor Summary
ConstructorsConstructorDescriptionCAPreferenceServerBookmark(String name, String host, int port, boolean isHTTPs, Duration loginTimeout, Duration commandTimeout, CAPreferenceServerCredentialsType credentials) A server bookmark. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandTimeoutrecord component.Returns the value of thecredentialsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.booleanisHTTPs()Returns the value of theisHTTPsrecord component.Returns the value of theloginTimeoutrecord component.name()Returns the value of thenamerecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAPreferenceServerBookmark
public CAPreferenceServerBookmark(String name, String host, int port, boolean isHTTPs, Duration loginTimeout, Duration commandTimeout, CAPreferenceServerCredentialsType credentials) A server bookmark.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
host
-
port
-
isHTTPs
-
loginTimeout
Returns the value of theloginTimeoutrecord component.- Returns:
- the value of the
loginTimeoutrecord component
-
commandTimeout
Returns the value of thecommandTimeoutrecord component.- Returns:
- the value of the
commandTimeoutrecord component
-
credentials
Returns the value of thecredentialsrecord component.- Returns:
- the value of the
credentialsrecord component
-