Record Class DockerConnectionConfiguration.Host
java.lang.Object
java.lang.Record
org.springframework.boot.buildpack.platform.docker.configuration.DockerConnectionConfiguration.Host
- Record Components:
address- the host addresssecure- if connection is securecertificatePath- a path to the certificate used for secure connections
- All Implemented Interfaces:
DockerConnectionConfiguration
- Enclosing interface:
DockerConnectionConfiguration
public static record DockerConnectionConfiguration.Host(String address, boolean secure, @Nullable String certificatePath)
extends Record
implements DockerConnectionConfiguration
Connect to specific host.
- Since:
- 3.5.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from interface DockerConnectionConfiguration
DockerConnectionConfiguration.Context, DockerConnectionConfiguration.Host -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.@Nullable StringReturns the value of thecertificatePathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleansecure()Returns the value of thesecurerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Host
-
Host
Creates an instance of aHostrecord class.- Parameters:
address- the value for theaddressrecord componentsecure- the value for thesecurerecord componentcertificatePath- the value for thecertificatePathrecord component
-
-
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. -
address
-
secure
-
certificatePath
Returns the value of thecertificatePathrecord component.- Returns:
- the value of the
certificatePathrecord component
-