Interface ReplicationRule.Builder

    • Method Detail

      • destinations

        ReplicationRule.Builder destinations​(Collection<ReplicationDestination> destinations)

        An array of objects representing the destination for a replication rule.

        Parameters:
        destinations - An array of objects representing the destination for a replication rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destinations

        ReplicationRule.Builder destinations​(ReplicationDestination... destinations)

        An array of objects representing the destination for a replication rule.

        Parameters:
        destinations - An array of objects representing the destination for a replication rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repositoryFilters

        ReplicationRule.Builder repositoryFilters​(Collection<RepositoryFilter> repositoryFilters)

        An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.

        Parameters:
        repositoryFilters - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repositoryFilters

        ReplicationRule.Builder repositoryFilters​(RepositoryFilter... repositoryFilters)

        An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.

        Parameters:
        repositoryFilters - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repositoryFilters

        ReplicationRule.Builder repositoryFilters​(Consumer<RepositoryFilter.Builder>... repositoryFilters)

        An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #repositoryFilters(List).

        Parameters:
        repositoryFilters - a consumer that will call methods on RepositoryFilter.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #repositoryFilters(java.util.Collection)