Record Class BuilderDockerConfiguration
java.lang.Object
java.lang.Record
org.springframework.boot.buildpack.platform.build.BuilderDockerConfiguration
- Record Components:
connection
- the Docker host configurationbindHostToBuilder
- if the host resolved from the connection should be bound to the builderbuilderRegistryAuthentication
- the builderDockerRegistryAuthentication
publishRegistryAuthentication
- the publishDockerRegistryAuthentication
public record BuilderDockerConfiguration(DockerConnectionConfiguration connection, boolean bindHostToBuilder, DockerRegistryAuthentication builderRegistryAuthentication, DockerRegistryAuthentication publishRegistryAuthentication)
extends Record
Builder
configuration options for Docker.- Since:
- 3.5.0
- Author:
- Phillip Webb, Wei Jiang, Scott Frederick
-
Constructor Summary
ConstructorsConstructorDescriptionBuilderDockerConfiguration
(DockerConnectionConfiguration connection, boolean bindHostToBuilder, DockerRegistryAuthentication builderRegistryAuthentication, DockerRegistryAuthentication publishRegistryAuthentication) Creates an instance of aBuilderDockerConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thebindHostToBuilder
record component.Returns the value of thebuilderRegistryAuthentication
record component.Returns the value of theconnection
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepublishRegistryAuthentication
record component.final String
toString()
Returns a string representation of this record class.withBindHostToBuilder
(boolean bindHostToBuilder) withBuilderRegistryAuthentication
(DockerRegistryAuthentication builderRegistryAuthentication) withContext
(String context) withPublishRegistryAuthentication
(DockerRegistryAuthentication publishRegistryAuthentication)
-
Constructor Details
-
BuilderDockerConfiguration
public BuilderDockerConfiguration() -
BuilderDockerConfiguration
public BuilderDockerConfiguration(DockerConnectionConfiguration connection, boolean bindHostToBuilder, DockerRegistryAuthentication builderRegistryAuthentication, DockerRegistryAuthentication publishRegistryAuthentication) Creates an instance of aBuilderDockerConfiguration
record class.- Parameters:
connection
- the value for theconnection
record componentbindHostToBuilder
- the value for thebindHostToBuilder
record componentbuilderRegistryAuthentication
- the value for thebuilderRegistryAuthentication
record componentpublishRegistryAuthentication
- the value for thepublishRegistryAuthentication
record component
-
-
Method Details
-
withContext
-
withHost
-
withBindHostToBuilder
-
withBuilderRegistryAuthentication
public BuilderDockerConfiguration withBuilderRegistryAuthentication(DockerRegistryAuthentication builderRegistryAuthentication) -
withPublishRegistryAuthentication
public BuilderDockerConfiguration withPublishRegistryAuthentication(DockerRegistryAuthentication publishRegistryAuthentication) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
connection
Returns the value of theconnection
record component.- Returns:
- the value of the
connection
record component
-
bindHostToBuilder
public boolean bindHostToBuilder()Returns the value of thebindHostToBuilder
record component.- Returns:
- the value of the
bindHostToBuilder
record component
-
builderRegistryAuthentication
Returns the value of thebuilderRegistryAuthentication
record component.- Returns:
- the value of the
builderRegistryAuthentication
record component
-
publishRegistryAuthentication
Returns the value of thepublishRegistryAuthentication
record component.- Returns:
- the value of the
publishRegistryAuthentication
record component
-