#[non_exhaustive]pub struct ComponentSummaryBuilder { /* private fields */ }
Expand description
A builder for ComponentSummary
.
Implementations§
source§impl ComponentSummaryBuilder
impl ComponentSummaryBuilder
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 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 that the component supports. 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 that the component supports. 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 that the component supports. 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.
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.
sourcepub fn get_state(&self) -> &Option<ComponentState>
pub fn get_state(&self) -> &Option<ComponentState>
Describes the current status 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 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
The change description for the current version of the component.
sourcepub fn set_change_description(self, input: Option<String>) -> Self
pub fn set_change_description(self, input: Option<String>) -> Self
The change description for the current version of the component.
sourcepub fn get_change_description(&self) -> &Option<String>
pub fn get_change_description(&self) -> &Option<String>
The change description for the current version of the component.
sourcepub fn date_created(self, input: impl Into<String>) -> Self
pub fn date_created(self, input: impl Into<String>) -> Self
The original creation date of the component.
sourcepub fn set_date_created(self, input: Option<String>) -> Self
pub fn set_date_created(self, input: Option<String>) -> Self
The original creation date of the component.
sourcepub fn get_date_created(&self) -> &Option<String>
pub fn get_date_created(&self) -> &Option<String>
The original creation date of 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.
sourcepub fn build(self) -> ComponentSummary
pub fn build(self) -> ComponentSummary
Consumes the builder and constructs a ComponentSummary
.
Trait Implementations§
source§impl Clone for ComponentSummaryBuilder
impl Clone for ComponentSummaryBuilder
source§fn clone(&self) -> ComponentSummaryBuilder
fn clone(&self) -> ComponentSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentSummaryBuilder
impl Debug for ComponentSummaryBuilder
source§impl Default for ComponentSummaryBuilder
impl Default for ComponentSummaryBuilder
source§fn default() -> ComponentSummaryBuilder
fn default() -> ComponentSummaryBuilder
source§impl PartialEq for ComponentSummaryBuilder
impl PartialEq for ComponentSummaryBuilder
source§fn eq(&self, other: &ComponentSummaryBuilder) -> bool
fn eq(&self, other: &ComponentSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.