Interface DefinitionRepositoryDetails.Builder

  • Method Details

    • connectionArn

      DefinitionRepositoryDetails.Builder connectionArn(String connectionArn)

      The Amazon Resource Name (ARN) of the connection to the source code repository.

      Parameters:
      connectionArn - The Amazon Resource Name (ARN) of the connection to the source code repository.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fullRepositoryId

      DefinitionRepositoryDetails.Builder fullRepositoryId(String fullRepositoryId)

      The full repository identifier, including the repository owner and name. For example, 'repository-owner/repository-name'.

      Parameters:
      fullRepositoryId - The full repository identifier, including the repository owner and name. For example, 'repository-owner/repository-name'.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceReference

      DefinitionRepositoryDetails.Builder sourceReference(SourceReference sourceReference)

      The source reference for the repository, such as a branch name, tag, or commit ID.

      Parameters:
      sourceReference - The source reference for the repository, such as a branch name, tag, or commit ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceReference

      default DefinitionRepositoryDetails.Builder sourceReference(Consumer<SourceReference.Builder> sourceReference)

      The source reference for the repository, such as a branch name, tag, or commit ID.

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

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

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

      DefinitionRepositoryDetails.Builder providerType(String providerType)

      The provider type of the source code repository, such as Bitbucket, GitHub, GitHubEnterpriseServer, GitLab, and GitLabSelfManaged.

      Parameters:
      providerType - The provider type of the source code repository, such as Bitbucket, GitHub, GitHubEnterpriseServer, GitLab, and GitLabSelfManaged.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • providerEndpoint

      DefinitionRepositoryDetails.Builder providerEndpoint(String providerEndpoint)

      The endpoint URL of the source code repository provider.

      Parameters:
      providerEndpoint - The endpoint URL of the source code repository provider.
      Returns:
      Returns a reference to this object so that method calls can be chained together.