Interface ReplicationRule.Builder

  • Method Details

    • 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.
    • destinations

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to destinations(List<ReplicationDestination>).

      Parameters:
      destinations - a consumer that will call methods on ReplicationDestination.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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<RepositoryFilter>).

      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:
    • deleteReplication

      ReplicationRule.Builder deleteReplication(DeleteReplication deleteReplication)

      The delete replication settings for the replication rule. When delete replication is enabled, the service replicates image deletions and image tag removals from the source registry to the replication destinations. If you do not specify this parameter, the service does not replicate image deletions or image tag removals for the replication rule.

      Parameters:
      deleteReplication - The delete replication settings for the replication rule. When delete replication is enabled, the service replicates image deletions and image tag removals from the source registry to the replication destinations. If you do not specify this parameter, the service does not replicate image deletions or image tag removals for the replication rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deleteReplication

      default ReplicationRule.Builder deleteReplication(Consumer<DeleteReplication.Builder> deleteReplication)

      The delete replication settings for the replication rule. When delete replication is enabled, the service replicates image deletions and image tag removals from the source registry to the replication destinations. If you do not specify this parameter, the service does not replicate image deletions or image tag removals for the replication rule.

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

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

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