Struct aws_sdk_ssm::types::builders::PatchSourceBuilder
source · #[non_exhaustive]pub struct PatchSourceBuilder { /* private fields */ }
Expand description
A builder for PatchSource
.
Implementations§
source§impl PatchSourceBuilder
impl PatchSourceBuilder
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 get_products(&self) -> &Option<Vec<String>>
pub fn get_products(&self) -> &Option<Vec<String>>
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 get_configuration(&self) -> &Option<String>
pub fn get_configuration(&self) -> &Option<String>
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
.
Trait Implementations§
source§impl Clone for PatchSourceBuilder
impl Clone for PatchSourceBuilder
source§fn clone(&self) -> PatchSourceBuilder
fn clone(&self) -> PatchSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PatchSourceBuilder
impl Debug for PatchSourceBuilder
source§impl Default for PatchSourceBuilder
impl Default for PatchSourceBuilder
source§fn default() -> PatchSourceBuilder
fn default() -> PatchSourceBuilder
source§impl PartialEq for PatchSourceBuilder
impl PartialEq for PatchSourceBuilder
source§fn eq(&self, other: &PatchSourceBuilder) -> bool
fn eq(&self, other: &PatchSourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.