#[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
impl StructuralPartialEq for ComponentSummaryBuilder
Auto Trait Implementations§
impl Freeze for ComponentSummaryBuilder
impl RefUnwindSafe for ComponentSummaryBuilder
impl Send for ComponentSummaryBuilder
impl Sync for ComponentSummaryBuilder
impl Unpin for ComponentSummaryBuilder
impl UnwindSafe for ComponentSummaryBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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