Interface CodeRepository.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CodeRepository.Builder,CodeRepository>, SdkBuilder<CodeRepository.Builder,CodeRepository>, SdkPojo
Enclosing class:
CodeRepository

public static interface CodeRepository.Builder extends SdkPojo, CopyableBuilder<CodeRepository.Builder,CodeRepository>
  • Method Details

    • repositoryUrl

      CodeRepository.Builder repositoryUrl(String repositoryUrl)

      The location of the repository that contains the source code.

      Parameters:
      repositoryUrl - The location of the repository that contains the source code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCodeVersion

      CodeRepository.Builder sourceCodeVersion(SourceCodeVersion sourceCodeVersion)

      The version that should be used within the source code repository.

      Parameters:
      sourceCodeVersion - The version that should be used within the source code repository.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCodeVersion

      default CodeRepository.Builder sourceCodeVersion(Consumer<SourceCodeVersion.Builder> sourceCodeVersion)

      The version that should be used within the source code repository.

      This is a convenience method that creates an instance of the SourceCodeVersion.Builder avoiding the need to create one manually via SourceCodeVersion.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourceCodeVersion(SourceCodeVersion).

      Parameters:
      sourceCodeVersion - a consumer that will call methods on SourceCodeVersion.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • codeConfiguration

      CodeRepository.Builder codeConfiguration(CodeConfiguration codeConfiguration)

      Configuration for building and running the service from a source code repository.

      CodeConfiguration is required only for CreateService request.

      Parameters:
      codeConfiguration - Configuration for building and running the service from a source code repository.

      CodeConfiguration is required only for CreateService request.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeConfiguration

      default CodeRepository.Builder codeConfiguration(Consumer<CodeConfiguration.Builder> codeConfiguration)

      Configuration for building and running the service from a source code repository.

      CodeConfiguration is required only for CreateService request.

      This is a convenience method that creates an instance of the CodeConfiguration.Builder avoiding the need to create one manually via CodeConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to codeConfiguration(CodeConfiguration).

      Parameters:
      codeConfiguration - a consumer that will call methods on CodeConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceDirectory

      CodeRepository.Builder sourceDirectory(String sourceDirectory)

      The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.

      Parameters:
      sourceDirectory - The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
      Returns:
      Returns a reference to this object so that method calls can be chained together.