Struct aws_sdk_ecrpublic::input::delete_repository_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DeleteRepositoryInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn registry_id(self, input: impl Into<String>) -> Self
pub fn registry_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that's associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.
sourcepub fn set_registry_id(self, input: Option<String>) -> Self
pub fn set_registry_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID that's associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository to delete.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository to delete.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
The force option can be used to delete a repository that contains images. If the force option is not used, the repository must be empty prior to deletion.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
The force option can be used to delete a repository that contains images. If the force option is not used, the repository must be empty prior to deletion.
sourcepub fn build(self) -> Result<DeleteRepositoryInput, BuildError>
pub fn build(self) -> Result<DeleteRepositoryInput, BuildError>
Consumes the builder and constructs a DeleteRepositoryInput.