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(@Nullable DockerConnectionConfiguration connection, boolean bindHostToBuilder, @Nullable DockerRegistryAuthentication builderRegistryAuthentication, @Nullable DockerRegistryAuthentication publishRegistryAuthentication)
extends Record
Builder configuration options for Docker.- Since:
- 3.5.0
- Author:
- Phillip Webb, Wei Jiang, Scott Frederick
-
Constructor Summary
ConstructorsConstructorDescriptionBuilderDockerConfiguration(@Nullable DockerConnectionConfiguration connection, boolean bindHostToBuilder, @Nullable DockerRegistryAuthentication builderRegistryAuthentication, @Nullable DockerRegistryAuthentication publishRegistryAuthentication) Creates an instance of aBuilderDockerConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebindHostToBuilderrecord component.@Nullable DockerRegistryAuthenticationReturns the value of thebuilderRegistryAuthenticationrecord component.@Nullable DockerConnectionConfigurationReturns 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.@Nullable DockerRegistryAuthenticationReturns 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(@Nullable DockerConnectionConfiguration connection, boolean bindHostToBuilder, @Nullable DockerRegistryAuthentication builderRegistryAuthentication, @Nullable 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
public BuilderDockerConfiguration withHost(String address, boolean secure, @Nullable String certificatePath) -
withBindHostToBuilder
-
withBuilderRegistryAuthentication
public BuilderDockerConfiguration withBuilderRegistryAuthentication(DockerRegistryAuthentication builderRegistryAuthentication) -
withPublishRegistryAuthentication
public BuilderDockerConfiguration withPublishRegistryAuthentication(DockerRegistryAuthentication publishRegistryAuthentication) -
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. -
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
-