Struct aws_sdk_ecrpublic::types::builders::RegistryAliasBuilder
source · #[non_exhaustive]pub struct RegistryAliasBuilder { /* private fields */ }Expand description
A builder for RegistryAlias.
Implementations§
source§impl RegistryAliasBuilder
impl RegistryAliasBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the registry alias.
This field is required.sourcepub fn status(self, input: RegistryAliasStatus) -> Self
pub fn status(self, input: RegistryAliasStatus) -> Self
The status of the registry alias.
This field is required.sourcepub fn set_status(self, input: Option<RegistryAliasStatus>) -> Self
pub fn set_status(self, input: Option<RegistryAliasStatus>) -> Self
The status of the registry alias.
sourcepub fn get_status(&self) -> &Option<RegistryAliasStatus>
pub fn get_status(&self) -> &Option<RegistryAliasStatus>
The status of the registry alias.
sourcepub fn primary_registry_alias(self, input: bool) -> Self
pub fn primary_registry_alias(self, input: bool) -> Self
Indicates whether the registry alias is the primary alias for the registry. If true, the alias is the primary registry alias and is displayed in both the repository URL and the image URI used in the docker pull commands on the Amazon ECR Public Gallery.
A registry alias that isn't the primary registry alias can be used in the repository URI in a docker pull command.
sourcepub fn set_primary_registry_alias(self, input: Option<bool>) -> Self
pub fn set_primary_registry_alias(self, input: Option<bool>) -> Self
Indicates whether the registry alias is the primary alias for the registry. If true, the alias is the primary registry alias and is displayed in both the repository URL and the image URI used in the docker pull commands on the Amazon ECR Public Gallery.
A registry alias that isn't the primary registry alias can be used in the repository URI in a docker pull command.
sourcepub fn get_primary_registry_alias(&self) -> &Option<bool>
pub fn get_primary_registry_alias(&self) -> &Option<bool>
Indicates whether the registry alias is the primary alias for the registry. If true, the alias is the primary registry alias and is displayed in both the repository URL and the image URI used in the docker pull commands on the Amazon ECR Public Gallery.
A registry alias that isn't the primary registry alias can be used in the repository URI in a docker pull command.
sourcepub fn default_registry_alias(self, input: bool) -> Self
pub fn default_registry_alias(self, input: bool) -> Self
Indicates whether the registry alias is the default alias for the registry. When the first public repository is created, your public registry is assigned a default registry alias.
This field is required.sourcepub fn set_default_registry_alias(self, input: Option<bool>) -> Self
pub fn set_default_registry_alias(self, input: Option<bool>) -> Self
Indicates whether the registry alias is the default alias for the registry. When the first public repository is created, your public registry is assigned a default registry alias.
sourcepub fn get_default_registry_alias(&self) -> &Option<bool>
pub fn get_default_registry_alias(&self) -> &Option<bool>
Indicates whether the registry alias is the default alias for the registry. When the first public repository is created, your public registry is assigned a default registry alias.
sourcepub fn build(self) -> Result<RegistryAlias, BuildError>
pub fn build(self) -> Result<RegistryAlias, BuildError>
Consumes the builder and constructs a RegistryAlias.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RegistryAliasBuilder
impl Clone for RegistryAliasBuilder
source§fn clone(&self) -> RegistryAliasBuilder
fn clone(&self) -> RegistryAliasBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RegistryAliasBuilder
impl Debug for RegistryAliasBuilder
source§impl Default for RegistryAliasBuilder
impl Default for RegistryAliasBuilder
source§fn default() -> RegistryAliasBuilder
fn default() -> RegistryAliasBuilder
source§impl PartialEq for RegistryAliasBuilder
impl PartialEq for RegistryAliasBuilder
source§fn eq(&self, other: &RegistryAliasBuilder) -> bool
fn eq(&self, other: &RegistryAliasBuilder) -> bool
self and other values to be equal, and is used
by ==.