Struct aws_sdk_codeartifact::operation::update_package_group_origin_configuration::builders::UpdatePackageGroupOriginConfigurationInputBuilder
source · #[non_exhaustive]pub struct UpdatePackageGroupOriginConfigurationInputBuilder { /* private fields */ }
Expand description
A builder for UpdatePackageGroupOriginConfigurationInput
.
Implementations§
source§impl UpdatePackageGroupOriginConfigurationInputBuilder
impl UpdatePackageGroupOriginConfigurationInputBuilder
sourcepub fn domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The name of the domain which contains the package group for which to update the origin configuration.
This field is required.sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The name of the domain which contains the package group for which to update the origin configuration.
sourcepub fn get_domain(&self) -> &Option<String>
pub fn get_domain(&self) -> &Option<String>
The name of the domain which contains the package group for which to update the origin configuration.
sourcepub fn domain_owner(self, input: impl Into<String>) -> Self
pub fn domain_owner(self, input: impl Into<String>) -> Self
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
sourcepub fn set_domain_owner(self, input: Option<String>) -> Self
pub fn set_domain_owner(self, input: Option<String>) -> Self
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
sourcepub fn get_domain_owner(&self) -> &Option<String>
pub fn get_domain_owner(&self) -> &Option<String>
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
sourcepub fn package_group(self, input: impl Into<String>) -> Self
pub fn package_group(self, input: impl Into<String>) -> Self
The pattern of the package group for which to update the origin configuration.
This field is required.sourcepub fn set_package_group(self, input: Option<String>) -> Self
pub fn set_package_group(self, input: Option<String>) -> Self
The pattern of the package group for which to update the origin configuration.
sourcepub fn get_package_group(&self) -> &Option<String>
pub fn get_package_group(&self) -> &Option<String>
The pattern of the package group for which to update the origin configuration.
sourcepub fn restrictions(
self,
k: PackageGroupOriginRestrictionType,
v: PackageGroupOriginRestrictionMode
) -> Self
pub fn restrictions( self, k: PackageGroupOriginRestrictionType, v: PackageGroupOriginRestrictionMode ) -> Self
Adds a key-value pair to restrictions
.
To override the contents of this collection use set_restrictions
.
The origin configuration settings that determine how package versions can enter repositories.
sourcepub fn set_restrictions(
self,
input: Option<HashMap<PackageGroupOriginRestrictionType, PackageGroupOriginRestrictionMode>>
) -> Self
pub fn set_restrictions( self, input: Option<HashMap<PackageGroupOriginRestrictionType, PackageGroupOriginRestrictionMode>> ) -> Self
The origin configuration settings that determine how package versions can enter repositories.
sourcepub fn get_restrictions(
&self
) -> &Option<HashMap<PackageGroupOriginRestrictionType, PackageGroupOriginRestrictionMode>>
pub fn get_restrictions( &self ) -> &Option<HashMap<PackageGroupOriginRestrictionType, PackageGroupOriginRestrictionMode>>
The origin configuration settings that determine how package versions can enter repositories.
sourcepub fn add_allowed_repositories(
self,
input: PackageGroupAllowedRepository
) -> Self
pub fn add_allowed_repositories( self, input: PackageGroupAllowedRepository ) -> Self
Appends an item to add_allowed_repositories
.
To override the contents of this collection use set_add_allowed_repositories
.
The repository name and restrictions to add to the allowed repository list of the specified package group.
sourcepub fn set_add_allowed_repositories(
self,
input: Option<Vec<PackageGroupAllowedRepository>>
) -> Self
pub fn set_add_allowed_repositories( self, input: Option<Vec<PackageGroupAllowedRepository>> ) -> Self
The repository name and restrictions to add to the allowed repository list of the specified package group.
sourcepub fn get_add_allowed_repositories(
&self
) -> &Option<Vec<PackageGroupAllowedRepository>>
pub fn get_add_allowed_repositories( &self ) -> &Option<Vec<PackageGroupAllowedRepository>>
The repository name and restrictions to add to the allowed repository list of the specified package group.
sourcepub fn remove_allowed_repositories(
self,
input: PackageGroupAllowedRepository
) -> Self
pub fn remove_allowed_repositories( self, input: PackageGroupAllowedRepository ) -> Self
Appends an item to remove_allowed_repositories
.
To override the contents of this collection use set_remove_allowed_repositories
.
The repository name and restrictions to remove from the allowed repository list of the specified package group.
sourcepub fn set_remove_allowed_repositories(
self,
input: Option<Vec<PackageGroupAllowedRepository>>
) -> Self
pub fn set_remove_allowed_repositories( self, input: Option<Vec<PackageGroupAllowedRepository>> ) -> Self
The repository name and restrictions to remove from the allowed repository list of the specified package group.
sourcepub fn get_remove_allowed_repositories(
&self
) -> &Option<Vec<PackageGroupAllowedRepository>>
pub fn get_remove_allowed_repositories( &self ) -> &Option<Vec<PackageGroupAllowedRepository>>
The repository name and restrictions to remove from the allowed repository list of the specified package group.
sourcepub fn build(
self
) -> Result<UpdatePackageGroupOriginConfigurationInput, BuildError>
pub fn build( self ) -> Result<UpdatePackageGroupOriginConfigurationInput, BuildError>
Consumes the builder and constructs a UpdatePackageGroupOriginConfigurationInput
.
source§impl UpdatePackageGroupOriginConfigurationInputBuilder
impl UpdatePackageGroupOriginConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdatePackageGroupOriginConfigurationOutput, SdkError<UpdatePackageGroupOriginConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdatePackageGroupOriginConfigurationOutput, SdkError<UpdatePackageGroupOriginConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdatePackageGroupOriginConfigurationInputBuilder
impl Clone for UpdatePackageGroupOriginConfigurationInputBuilder
source§fn clone(&self) -> UpdatePackageGroupOriginConfigurationInputBuilder
fn clone(&self) -> UpdatePackageGroupOriginConfigurationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdatePackageGroupOriginConfigurationInputBuilder
impl Default for UpdatePackageGroupOriginConfigurationInputBuilder
source§fn default() -> UpdatePackageGroupOriginConfigurationInputBuilder
fn default() -> UpdatePackageGroupOriginConfigurationInputBuilder
source§impl PartialEq for UpdatePackageGroupOriginConfigurationInputBuilder
impl PartialEq for UpdatePackageGroupOriginConfigurationInputBuilder
source§fn eq(&self, other: &UpdatePackageGroupOriginConfigurationInputBuilder) -> bool
fn eq(&self, other: &UpdatePackageGroupOriginConfigurationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.