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
-true
if 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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.hostname()
Returns the value of thehostname
record component.password()
Returns the value of thepassword
record component.int
port()
Returns the value of theport
record component.boolean
ssl()
Returns the value of thessl
record component.final String
toString()
Returns a string representation of this record class.uri()
Returns the value of theuri
record component.username()
Returns the value of theusername
record 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
-true
if 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
port
is 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 thecompare
method from their corresponding wrapper classes. -
uri
-
hostname
-
port
-
username
-
password
-
ssl
-