Interface ReplicationRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ReplicationRule.Builder,,ReplicationRule> SdkBuilder<ReplicationRule.Builder,,ReplicationRule> SdkPojo
- Enclosing class:
ReplicationRule
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReplicationRule.BuilderdeleteReplication(Consumer<DeleteReplication.Builder> deleteReplication) The delete replication settings for the replication rule.deleteReplication(DeleteReplication deleteReplication) The delete replication settings for the replication rule.destinations(Collection<ReplicationDestination> destinations) An array of objects representing the destination for a replication rule.destinations(Consumer<ReplicationDestination.Builder>... destinations) An array of objects representing the destination for a replication rule.destinations(ReplicationDestination... destinations) An array of objects representing the destination for a replication rule.repositoryFilters(Collection<RepositoryFilter> repositoryFilters) An array of objects representing the filters for a replication rule.repositoryFilters(Consumer<RepositoryFilter.Builder>... repositoryFilters) An array of objects representing the filters for a replication rule.repositoryFilters(RepositoryFilter... repositoryFilters) An array of objects representing the filters for a replication rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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 theReplicationDestination.Builderavoiding the need to create one manually viaReplicationDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestinations(List<ReplicationDestination>).- Parameters:
destinations- a consumer that will call methods onReplicationDestination.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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 theRepositoryFilter.Builderavoiding the need to create one manually viaRepositoryFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torepositoryFilters(List<RepositoryFilter>).- Parameters:
repositoryFilters- a consumer that will call methods onRepositoryFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 theDeleteReplication.Builderavoiding the need to create one manually viaDeleteReplication.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeleteReplication(DeleteReplication).- Parameters:
deleteReplication- a consumer that will call methods onDeleteReplication.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-