Struct aws_sdk_imagebuilder::types::builders::ComponentBuilder
source · #[non_exhaustive]pub struct ComponentBuilder { /* private fields */ }
Expand description
A builder for Component
.
Implementations§
source§impl ComponentBuilder
impl ComponentBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the component.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the component.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the component.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the component.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the component.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the component.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the component.
sourcepub fn change_description(self, input: impl Into<String>) -> Self
pub fn change_description(self, input: impl Into<String>) -> Self
Describes what change has been made in this version of the component, or what makes this version different from other versions of the component.
sourcepub fn set_change_description(self, input: Option<String>) -> Self
pub fn set_change_description(self, input: Option<String>) -> Self
Describes what change has been made in this version of the component, or what makes this version different from other versions of the component.
sourcepub fn get_change_description(&self) -> &Option<String>
pub fn get_change_description(&self) -> &Option<String>
Describes what change has been made in this version of the component, or what makes this version different from other versions of the component.
sourcepub fn type(self, input: ComponentType) -> Self
pub fn type(self, input: ComponentType) -> Self
The component type specifies whether Image Builder uses the component to build the image or only to test it.
sourcepub fn set_type(self, input: Option<ComponentType>) -> Self
pub fn set_type(self, input: Option<ComponentType>) -> Self
The component type specifies whether Image Builder uses the component to build the image or only to test it.
sourcepub fn get_type(&self) -> &Option<ComponentType>
pub fn get_type(&self) -> &Option<ComponentType>
The component type specifies whether Image Builder uses the component to build the image or only to test it.
sourcepub fn set_platform(self, input: Option<Platform>) -> Self
pub fn set_platform(self, input: Option<Platform>) -> Self
The operating system platform of the component.
sourcepub fn get_platform(&self) -> &Option<Platform>
pub fn get_platform(&self) -> &Option<Platform>
The operating system platform of the component.
sourcepub fn supported_os_versions(self, input: impl Into<String>) -> Self
pub fn supported_os_versions(self, input: impl Into<String>) -> Self
Appends an item to supported_os_versions
.
To override the contents of this collection use set_supported_os_versions
.
The operating system (OS) version supported by the component. If the OS information is available, Image Builder performs a prefix match against the base image OS version during image recipe creation.
sourcepub fn set_supported_os_versions(self, input: Option<Vec<String>>) -> Self
pub fn set_supported_os_versions(self, input: Option<Vec<String>>) -> Self
The operating system (OS) version supported by the component. If the OS information is available, Image Builder performs a prefix match against the base image OS version during image recipe creation.
sourcepub fn get_supported_os_versions(&self) -> &Option<Vec<String>>
pub fn get_supported_os_versions(&self) -> &Option<Vec<String>>
The operating system (OS) version supported by the component. If the OS information is available, Image Builder performs a prefix match against the base image OS version during image recipe creation.
sourcepub fn state(self, input: ComponentState) -> Self
pub fn state(self, input: ComponentState) -> Self
Describes the current status of the component. This is used for components that are no longer active.
sourcepub fn set_state(self, input: Option<ComponentState>) -> Self
pub fn set_state(self, input: Option<ComponentState>) -> Self
Describes the current status of the component. This is used for components that are no longer active.
sourcepub fn get_state(&self) -> &Option<ComponentState>
pub fn get_state(&self) -> &Option<ComponentState>
Describes the current status of the component. This is used for components that are no longer active.
sourcepub fn parameters(self, input: ComponentParameterDetail) -> Self
pub fn parameters(self, input: ComponentParameterDetail) -> Self
Appends an item to parameters
.
To override the contents of this collection use set_parameters
.
Contains parameter details for each of the parameters that the component document defined for the component.
sourcepub fn set_parameters(
self,
input: Option<Vec<ComponentParameterDetail>>
) -> Self
pub fn set_parameters( self, input: Option<Vec<ComponentParameterDetail>> ) -> Self
Contains parameter details for each of the parameters that the component document defined for the component.
sourcepub fn get_parameters(&self) -> &Option<Vec<ComponentParameterDetail>>
pub fn get_parameters(&self) -> &Option<Vec<ComponentParameterDetail>>
Contains parameter details for each of the parameters that the component document defined for the component.
sourcepub fn data(self, input: impl Into<String>) -> Self
pub fn data(self, input: impl Into<String>) -> Self
Component data contains the YAML document content for the component.
sourcepub fn set_data(self, input: Option<String>) -> Self
pub fn set_data(self, input: Option<String>) -> Self
Component data contains the YAML document content for the component.
sourcepub fn get_data(&self) -> &Option<String>
pub fn get_data(&self) -> &Option<String>
Component data contains the YAML document content for the component.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The KMS key identifier used to encrypt the component.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The KMS key identifier used to encrypt the component.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The KMS key identifier used to encrypt the component.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
The encryption status of the component.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
The encryption status of the component.
sourcepub fn date_created(self, input: impl Into<String>) -> Self
pub fn date_created(self, input: impl Into<String>) -> Self
The date that Image Builder created the component.
sourcepub fn set_date_created(self, input: Option<String>) -> Self
pub fn set_date_created(self, input: Option<String>) -> Self
The date that Image Builder created the component.
sourcepub fn get_date_created(&self) -> &Option<String>
pub fn get_date_created(&self) -> &Option<String>
The date that Image Builder created the component.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags that apply to the component.
The tags that apply to the component.
The tags that apply to the component.
sourcepub fn publisher(self, input: impl Into<String>) -> Self
pub fn publisher(self, input: impl Into<String>) -> Self
Contains the name of the publisher if this is a third-party component. Otherwise, this property is empty.
sourcepub fn set_publisher(self, input: Option<String>) -> Self
pub fn set_publisher(self, input: Option<String>) -> Self
Contains the name of the publisher if this is a third-party component. Otherwise, this property is empty.
sourcepub fn get_publisher(&self) -> &Option<String>
pub fn get_publisher(&self) -> &Option<String>
Contains the name of the publisher if this is a third-party component. Otherwise, this property is empty.
sourcepub fn obfuscate(self, input: bool) -> Self
pub fn obfuscate(self, input: bool) -> Self
Indicates whether component source is hidden from view in the console, and from component detail results for API, CLI, or SDK operations.
sourcepub fn set_obfuscate(self, input: Option<bool>) -> Self
pub fn set_obfuscate(self, input: Option<bool>) -> Self
Indicates whether component source is hidden from view in the console, and from component detail results for API, CLI, or SDK operations.
sourcepub fn get_obfuscate(&self) -> &Option<bool>
pub fn get_obfuscate(&self) -> &Option<bool>
Indicates whether component source is hidden from view in the console, and from component detail results for API, CLI, or SDK operations.
Trait Implementations§
source§impl Clone for ComponentBuilder
impl Clone for ComponentBuilder
source§fn clone(&self) -> ComponentBuilder
fn clone(&self) -> ComponentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentBuilder
impl Debug for ComponentBuilder
source§impl Default for ComponentBuilder
impl Default for ComponentBuilder
source§fn default() -> ComponentBuilder
fn default() -> ComponentBuilder
source§impl PartialEq for ComponentBuilder
impl PartialEq for ComponentBuilder
source§fn eq(&self, other: &ComponentBuilder) -> bool
fn eq(&self, other: &ComponentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComponentBuilder
Auto Trait Implementations§
impl Freeze for ComponentBuilder
impl RefUnwindSafe for ComponentBuilder
impl Send for ComponentBuilder
impl Sync for ComponentBuilder
impl Unpin for ComponentBuilder
impl UnwindSafe for ComponentBuilder
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