Record Class CAClientConnectionParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.client.api.CAClientConnectionParameters
- Record Components:
host- The target hostport- The target porthttps-trueif https should be usedusername- The usernamepassword- The passwordmetadata- The extra metadataloginTimeout- The login timeoutcommandTimeout- The command timeout
- All Implemented Interfaces:
com.io7m.hibiscus.api.HBConnectionParametersType
public record CAClientConnectionParameters(String host, int port, boolean https, com.io7m.idstore.model.IdName username, String password, Map<String,String> metadata, Duration loginTimeout, Duration commandTimeout)
extends Record
implements com.io7m.hibiscus.api.HBConnectionParametersType
The client credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseURI()Returns the value of thecommandTimeoutrecord 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.booleanhttps()Returns the value of thehttpsrecord component.Returns the value of theloginTimeoutrecord component.metadata()Returns the value of themetadatarecord component.password()Returns the value of thepasswordrecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.com.io7m.idstore.model.IdNameusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
CAClientConnectionParameters
public CAClientConnectionParameters(String host, int port, boolean https, com.io7m.idstore.model.IdName username, String password, Map<String, String> metadata, Duration loginTimeout, Duration commandTimeout) The client credentials.- Parameters:
host- The target hostport- The target porthttps-trueif https should be usedusername- The usernamepassword- The passwordmetadata- The extra metadataloginTimeout- The login timeoutcommandTimeout- The command timeout
-
-
Method Details
-
baseURI
- Returns:
- The server base URI
-
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. -
host
-
port
-
https
-
username
-
password
-
metadata
-
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
-