Interface GetFileRequest.Builder

  • Method Details

    • provider

      GetFileRequest.Builder provider(String provider)

      The Git provider.

      Parameters:
      provider - The Git provider.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • provider

      GetFileRequest.Builder provider(GitProvider provider)

      The Git provider.

      Parameters:
      provider - The Git provider.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • owner

      The account that the Git connection is for. The value depends on the provider:

      • For GitHub, specify the user or organization name.

      • For GitLab, specify the user name.

      To get this value, call ListGitConnections.

      Parameters:
      owner - The account that the Git connection is for. The value depends on the provider:

      • For GitHub, specify the user or organization name.

      • For GitLab, specify the user name.

      To get this value, call ListGitConnections.

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

      GetFileRequest.Builder repositoryName(String repositoryName)

      The name of the repository, which is the last segment of RepositoryPath.

      Parameters:
      repositoryName - The name of the repository, which is the last segment of RepositoryPath.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • repositoryPath

      GetFileRequest.Builder repositoryPath(String repositoryPath)

      The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.

      Parameters:
      repositoryPath - The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filePath

      GetFileRequest.Builder filePath(String filePath)

      The path of the file, relative to the root of the repository, for example package.json.

      Parameters:
      filePath - The path of the file, relative to the root of the repository, for example package.json.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branch

      The name of the branch to read from.

      Parameters:
      branch - The name of the branch to read from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetFileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.