Struct aws_sdk_opsworks::types::builders::OperatingSystemBuilder
source · #[non_exhaustive]pub struct OperatingSystemBuilder { /* private fields */ }
Expand description
A builder for OperatingSystem
.
Implementations§
source§impl OperatingSystemBuilder
impl OperatingSystemBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the operating system, such as Amazon Linux 2
.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the operating system, such as Amazon Linux 2
.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the operating system, such as Amazon Linux 2
.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of a supported operating system, such as Amazon Linux 2
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of a supported operating system, such as Amazon Linux 2
.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of a supported operating system, such as Amazon Linux 2
.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of a supported operating system, either Linux
or Windows
.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of a supported operating system, either Linux
or Windows
.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The type of a supported operating system, either Linux
or Windows
.
sourcepub fn configuration_managers(
self,
input: OperatingSystemConfigurationManager
) -> Self
pub fn configuration_managers( self, input: OperatingSystemConfigurationManager ) -> Self
Appends an item to configuration_managers
.
To override the contents of this collection use set_configuration_managers
.
Supported configuration manager name and versions for an OpsWorks Stacks operating system.
sourcepub fn set_configuration_managers(
self,
input: Option<Vec<OperatingSystemConfigurationManager>>
) -> Self
pub fn set_configuration_managers( self, input: Option<Vec<OperatingSystemConfigurationManager>> ) -> Self
Supported configuration manager name and versions for an OpsWorks Stacks operating system.
sourcepub fn get_configuration_managers(
&self
) -> &Option<Vec<OperatingSystemConfigurationManager>>
pub fn get_configuration_managers( &self ) -> &Option<Vec<OperatingSystemConfigurationManager>>
Supported configuration manager name and versions for an OpsWorks Stacks operating system.
sourcepub fn reported_name(self, input: impl Into<String>) -> Self
pub fn reported_name(self, input: impl Into<String>) -> Self
A short name for the operating system manufacturer.
sourcepub fn set_reported_name(self, input: Option<String>) -> Self
pub fn set_reported_name(self, input: Option<String>) -> Self
A short name for the operating system manufacturer.
sourcepub fn get_reported_name(&self) -> &Option<String>
pub fn get_reported_name(&self) -> &Option<String>
A short name for the operating system manufacturer.
sourcepub fn reported_version(self, input: impl Into<String>) -> Self
pub fn reported_version(self, input: impl Into<String>) -> Self
The version of the operating system, including the release and edition, if applicable.
sourcepub fn set_reported_version(self, input: Option<String>) -> Self
pub fn set_reported_version(self, input: Option<String>) -> Self
The version of the operating system, including the release and edition, if applicable.
sourcepub fn get_reported_version(&self) -> &Option<String>
pub fn get_reported_version(&self) -> &Option<String>
The version of the operating system, including the release and edition, if applicable.
sourcepub fn supported(self, input: bool) -> Self
pub fn supported(self, input: bool) -> Self
Indicates that an operating system is not supported for new instances.
sourcepub fn set_supported(self, input: Option<bool>) -> Self
pub fn set_supported(self, input: Option<bool>) -> Self
Indicates that an operating system is not supported for new instances.
sourcepub fn get_supported(&self) -> &Option<bool>
pub fn get_supported(&self) -> &Option<bool>
Indicates that an operating system is not supported for new instances.
sourcepub fn build(self) -> OperatingSystem
pub fn build(self) -> OperatingSystem
Consumes the builder and constructs a OperatingSystem
.
Trait Implementations§
source§impl Clone for OperatingSystemBuilder
impl Clone for OperatingSystemBuilder
source§fn clone(&self) -> OperatingSystemBuilder
fn clone(&self) -> OperatingSystemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OperatingSystemBuilder
impl Debug for OperatingSystemBuilder
source§impl Default for OperatingSystemBuilder
impl Default for OperatingSystemBuilder
source§fn default() -> OperatingSystemBuilder
fn default() -> OperatingSystemBuilder
source§impl PartialEq for OperatingSystemBuilder
impl PartialEq for OperatingSystemBuilder
source§fn eq(&self, other: &OperatingSystemBuilder) -> bool
fn eq(&self, other: &OperatingSystemBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OperatingSystemBuilder
Auto Trait Implementations§
impl Freeze for OperatingSystemBuilder
impl RefUnwindSafe for OperatingSystemBuilder
impl Send for OperatingSystemBuilder
impl Sync for OperatingSystemBuilder
impl Unpin for OperatingSystemBuilder
impl UnwindSafe for OperatingSystemBuilder
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