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.
This field is required.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) -> Result<PatchSource, BuildError>
pub fn build(self) -> Result<PatchSource, BuildError>
Consumes the builder and constructs a PatchSource
.
This method will fail if any of the following fields are not set:
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 ==
.impl StructuralPartialEq for PatchSourceBuilder
Auto Trait Implementations§
impl Freeze for PatchSourceBuilder
impl RefUnwindSafe for PatchSourceBuilder
impl Send for PatchSourceBuilder
impl Sync for PatchSourceBuilder
impl Unpin for PatchSourceBuilder
impl UnwindSafe for PatchSourceBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more