Class EcrConfig.Builder

Enclosing class:
EcrConfig

public static class EcrConfig.Builder extends AbstractServiceConfigBuilder<EcrConfig.Builder,EcrConfig>
Builder for EcrConfig.
  • Method Details

    • registryImage

      public EcrConfig.Builder registryImage(String registryImage)
      Sets the Docker image for the ECR registry.
      Parameters:
      registryImage - the image name (default "registry:2")
      Returns:
      this builder
    • registryContainerName

      public EcrConfig.Builder registryContainerName(String registryContainerName)
      Sets the container name for the ECR registry.
      Parameters:
      registryContainerName - the container name (default "floci-ecr-registry")
      Returns:
      this builder
    • registryPortRange

      public EcrConfig.Builder registryPortRange(int basePort, int amount)
      Sets the port range for the ECR registry.
      Parameters:
      basePort - the base port (default 5100)
      amount - the amount of ports (default 10)
      Returns:
      this builder
    • tlsEnabled

      public EcrConfig.Builder tlsEnabled(boolean tlsEnabled)
      Sets whether TLS is enabled for the ECR registry.
      Parameters:
      tlsEnabled - true to enable TLS (default false)
      Returns:
      this builder
    • uriStyle

      public EcrConfig.Builder uriStyle(String uriStyle)
      Sets the URI style for repositoryUri responses.
      Parameters:
      uriStyle - "hostname" or "path" (default "hostname")
      Returns:
      this builder
    • dockerNetwork

      public EcrConfig.Builder dockerNetwork(String dockerNetwork)
      Sets the Docker network that ECR registry containers should join.
      Parameters:
      dockerNetwork - the network name, or null to use the default bridge
      Returns:
      this builder
    • build

      public EcrConfig build()
      Creates an immutable EcrConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<EcrConfig.Builder,EcrConfig>
      Returns:
      the ECR configuration