Record Class Database.OpenSearchDashboard
java.lang.Object
java.lang.Record
com.github.cowwoc.digitalocean.resource.Database.OpenSearchDashboard
- Record Components:
uri- the URI of the dashboardhostname- the hostname of the dashboardport- the port of the dashboardusername- the name of the default userpassword- the password of the default userssl-trueif the connection should be made over SSL
- Enclosing class:
Database
public static record Database.OpenSearchDashboard(URI uri, String hostname, int port, String username, String password, boolean ssl)
extends Record
Connection details for an OpenSearch dashboard.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchDashboard(URI uri, String hostname, int port, String username, String password, boolean ssl) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.password()Returns the value of thepasswordrecord component.intport()Returns the value of theportrecord component.booleanssl()Returns the value of thesslrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
OpenSearchDashboard
public OpenSearchDashboard(URI uri, String hostname, int port, String username, String password, boolean ssl) Creates a new instance.- Parameters:
uri- the URI of the dashboardhostname- the hostname of the dashboardport- the port of the dashboardusername- the name of the default userpassword- the password of the default userssl-trueif the connection should be made over SSL- Throws:
NullPointerException- if any of the arguments are nullIllegalArgumentException- if:- if any of the arguments contain leading or trailing whitespace or are empty.
- if
portis negative or zero.
-
-
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. -
uri
-
hostname
-
port
-
username
-
password
-
ssl
-