Class DockerBuildRequest

java.lang.Object
com.microsoft.azure.management.containerregistry.RunRequest
com.microsoft.azure.management.containerregistry.DockerBuildRequest

public class DockerBuildRequest extends RunRequest
The parameters for a docker quick build.
  • Constructor Details

    • DockerBuildRequest

      public DockerBuildRequest()
  • Method Details

    • imageNames

      public List<String> imageNames()
      Get the fully qualified image names including the repository and tag.
      Returns:
      the imageNames value
    • withImageNames

      public DockerBuildRequest withImageNames(List<String> imageNames)
      Set the fully qualified image names including the repository and tag.
      Parameters:
      imageNames - the imageNames value to set
      Returns:
      the DockerBuildRequest object itself.
    • isPushEnabled

      public Boolean isPushEnabled()
      Get the value of this property indicates whether the image built should be pushed to the registry or not.
      Returns:
      the isPushEnabled value
    • withIsPushEnabled

      public DockerBuildRequest withIsPushEnabled(Boolean isPushEnabled)
      Set the value of this property indicates whether the image built should be pushed to the registry or not.
      Parameters:
      isPushEnabled - the isPushEnabled value to set
      Returns:
      the DockerBuildRequest object itself.
    • noCache

      public Boolean noCache()
      Get the value of this property indicates whether the image cache is enabled or not.
      Returns:
      the noCache value
    • withNoCache

      public DockerBuildRequest withNoCache(Boolean noCache)
      Set the value of this property indicates whether the image cache is enabled or not.
      Parameters:
      noCache - the noCache value to set
      Returns:
      the DockerBuildRequest object itself.
    • dockerFilePath

      public String dockerFilePath()
      Get the Docker file path relative to the source location.
      Returns:
      the dockerFilePath value
    • withDockerFilePath

      public DockerBuildRequest withDockerFilePath(String dockerFilePath)
      Set the Docker file path relative to the source location.
      Parameters:
      dockerFilePath - the dockerFilePath value to set
      Returns:
      the DockerBuildRequest object itself.
    • arguments

      public List<Argument> arguments()
      Get the collection of override arguments to be used when executing the run.
      Returns:
      the arguments value
    • withArguments

      public DockerBuildRequest withArguments(List<Argument> arguments)
      Set the collection of override arguments to be used when executing the run.
      Parameters:
      arguments - the arguments value to set
      Returns:
      the DockerBuildRequest object itself.
    • timeout

      public Integer timeout()
      Get run timeout in seconds.
      Returns:
      the timeout value
    • withTimeout

      public DockerBuildRequest withTimeout(Integer timeout)
      Set run timeout in seconds.
      Parameters:
      timeout - the timeout value to set
      Returns:
      the DockerBuildRequest object itself.
    • platform

      public PlatformProperties platform()
      Get the platform properties against which the run has to happen.
      Returns:
      the platform value
    • withPlatform

      public DockerBuildRequest withPlatform(PlatformProperties platform)
      Set the platform properties against which the run has to happen.
      Parameters:
      platform - the platform value to set
      Returns:
      the DockerBuildRequest object itself.
    • agentConfiguration

      public AgentProperties agentConfiguration()
      Get the machine configuration of the run agent.
      Returns:
      the agentConfiguration value
    • withAgentConfiguration

      public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfiguration)
      Set the machine configuration of the run agent.
      Parameters:
      agentConfiguration - the agentConfiguration value to set
      Returns:
      the DockerBuildRequest object itself.
    • sourceLocation

      public String sourceLocation()
      Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
      Returns:
      the sourceLocation value
    • withSourceLocation

      public DockerBuildRequest withSourceLocation(String sourceLocation)
      Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
      Parameters:
      sourceLocation - the sourceLocation value to set
      Returns:
      the DockerBuildRequest object itself.