Struct aws_sdk_ssm::model::patch_source::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for PatchSource
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name specified to identify the patch source.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name specified to identify the patch source.
sourcepub fn products(self, input: impl Into<String>) -> Self
pub fn products(self, input: impl Into<String>) -> Self
Appends an item to products
.
To override the contents of this collection use set_products
.
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter
.
sourcepub fn set_products(self, input: Option<Vec<String>>) -> Self
pub fn set_products(self, input: Option<Vec<String>>) -> Self
The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter
.
sourcepub fn configuration(self, input: impl Into<String>) -> Self
pub fn configuration(self, input: impl Into<String>) -> Self
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
sourcepub fn set_configuration(self, input: Option<String>) -> Self
pub fn set_configuration(self, input: Option<String>) -> Self
The value of the yum repo configuration. For example:
[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5).
sourcepub fn build(self) -> PatchSource
pub fn build(self) -> PatchSource
Consumes the builder and constructs a PatchSource
.