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 builderDockerRegistryAuthenticationpublishRegistryAuthentication- 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 aBuilderDockerConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebindHostToBuilderrecord component.Returns the value of thebuilderRegistryAuthenticationrecord component.Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepublishRegistryAuthenticationrecord component.final StringtoString()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 aBuilderDockerConfigurationrecord class.- Parameters:
connection- the value for theconnectionrecord componentbindHostToBuilder- the value for thebindHostToBuilderrecord componentbuilderRegistryAuthentication- the value for thebuilderRegistryAuthenticationrecord componentpublishRegistryAuthentication- the value for thepublishRegistryAuthenticationrecord 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 theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
bindHostToBuilder
public boolean bindHostToBuilder()Returns the value of thebindHostToBuilderrecord component.- Returns:
- the value of the
bindHostToBuilderrecord component
-
builderRegistryAuthentication
Returns the value of thebuilderRegistryAuthenticationrecord component.- Returns:
- the value of the
builderRegistryAuthenticationrecord component
-
publishRegistryAuthentication
Returns the value of thepublishRegistryAuthenticationrecord component.- Returns:
- the value of the
publishRegistryAuthenticationrecord component
-