#[non_exhaustive]pub struct ComponentSummaryBuilder { /* private fields */ }
Expand description
A builder for ComponentSummary
.
Implementations§
source§impl ComponentSummaryBuilder
impl ComponentSummaryBuilder
sourcepub fn component_name(self, input: impl Into<String>) -> Self
pub fn component_name(self, input: impl Into<String>) -> Self
The name of the component.
This field is required.sourcepub fn set_component_name(self, input: Option<String>) -> Self
pub fn set_component_name(self, input: Option<String>) -> Self
The name of the component.
sourcepub fn get_component_name(&self) -> &Option<String>
pub fn get_component_name(&self) -> &Option<String>
The name of the component.
sourcepub fn component_type_id(self, input: impl Into<String>) -> Self
pub fn component_type_id(self, input: impl Into<String>) -> Self
The ID of the component type.
This field is required.sourcepub fn set_component_type_id(self, input: Option<String>) -> Self
pub fn set_component_type_id(self, input: Option<String>) -> Self
The ID of the component type.
sourcepub fn get_component_type_id(&self) -> &Option<String>
pub fn get_component_type_id(&self) -> &Option<String>
The ID of the component type.
sourcepub fn defined_in(self, input: impl Into<String>) -> Self
pub fn defined_in(self, input: impl Into<String>) -> Self
The name of the property definition set in the request.
sourcepub fn set_defined_in(self, input: Option<String>) -> Self
pub fn set_defined_in(self, input: Option<String>) -> Self
The name of the property definition set in the request.
sourcepub fn get_defined_in(&self) -> &Option<String>
pub fn get_defined_in(&self) -> &Option<String>
The name of the property definition set in the request.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the component request.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the component request.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the component request.
sourcepub fn property_groups(
self,
k: impl Into<String>,
v: ComponentPropertyGroupResponse
) -> Self
pub fn property_groups( self, k: impl Into<String>, v: ComponentPropertyGroupResponse ) -> Self
Adds a key-value pair to property_groups
.
To override the contents of this collection use set_property_groups
.
The property groups.
sourcepub fn set_property_groups(
self,
input: Option<HashMap<String, ComponentPropertyGroupResponse>>
) -> Self
pub fn set_property_groups( self, input: Option<HashMap<String, ComponentPropertyGroupResponse>> ) -> Self
The property groups.
sourcepub fn get_property_groups(
&self
) -> &Option<HashMap<String, ComponentPropertyGroupResponse>>
pub fn get_property_groups( &self ) -> &Option<HashMap<String, ComponentPropertyGroupResponse>>
The property groups.
sourcepub fn status(self, input: Status) -> Self
pub fn status(self, input: Status) -> Self
The status of the component type.
This field is required.sourcepub fn set_status(self, input: Option<Status>) -> Self
pub fn set_status(self, input: Option<Status>) -> Self
The status of the component type.
sourcepub fn get_status(&self) -> &Option<Status>
pub fn get_status(&self) -> &Option<Status>
The status of the component type.
sourcepub fn sync_source(self, input: impl Into<String>) -> Self
pub fn sync_source(self, input: impl Into<String>) -> Self
The syncSource
of the sync job, if this entity was created by a sync job.
sourcepub fn set_sync_source(self, input: Option<String>) -> Self
pub fn set_sync_source(self, input: Option<String>) -> Self
The syncSource
of the sync job, if this entity was created by a sync job.
sourcepub fn get_sync_source(&self) -> &Option<String>
pub fn get_sync_source(&self) -> &Option<String>
The syncSource
of the sync job, if this entity was created by a sync job.
sourcepub fn component_path(self, input: impl Into<String>) -> Self
pub fn component_path(self, input: impl Into<String>) -> Self
This string specifies the path to the composite component, starting from the top-level component.
sourcepub fn set_component_path(self, input: Option<String>) -> Self
pub fn set_component_path(self, input: Option<String>) -> Self
This string specifies the path to the composite component, starting from the top-level component.
sourcepub fn get_component_path(&self) -> &Option<String>
pub fn get_component_path(&self) -> &Option<String>
This string specifies the path to the composite component, starting from the top-level component.
sourcepub fn build(self) -> Result<ComponentSummary, BuildError>
pub fn build(self) -> Result<ComponentSummary, BuildError>
Consumes the builder and constructs a ComponentSummary
.
This method will fail if any of the following fields are not set:
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 ==
.