#[non_exhaustive]pub struct ComponentRequestBuilder { /* private fields */ }Expand description
A builder for ComponentRequest.
Implementations§
source§impl ComponentRequestBuilder
impl ComponentRequestBuilder
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 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.
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 properties(self, k: impl Into<String>, v: PropertyRequest) -> Self
pub fn properties(self, k: impl Into<String>, v: PropertyRequest) -> Self
Adds a key-value pair to properties.
To override the contents of this collection use set_properties.
An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
sourcepub fn set_properties(
self,
input: Option<HashMap<String, PropertyRequest>>
) -> Self
pub fn set_properties( self, input: Option<HashMap<String, PropertyRequest>> ) -> Self
An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
sourcepub fn get_properties(&self) -> &Option<HashMap<String, PropertyRequest>>
pub fn get_properties(&self) -> &Option<HashMap<String, PropertyRequest>>
An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
sourcepub fn property_groups(
self,
k: impl Into<String>,
v: ComponentPropertyGroupRequest
) -> Self
pub fn property_groups( self, k: impl Into<String>, v: ComponentPropertyGroupRequest ) -> 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, ComponentPropertyGroupRequest>>
) -> Self
pub fn set_property_groups( self, input: Option<HashMap<String, ComponentPropertyGroupRequest>> ) -> Self
The property groups.
sourcepub fn get_property_groups(
&self
) -> &Option<HashMap<String, ComponentPropertyGroupRequest>>
pub fn get_property_groups( &self ) -> &Option<HashMap<String, ComponentPropertyGroupRequest>>
The property groups.
sourcepub fn build(self) -> ComponentRequest
pub fn build(self) -> ComponentRequest
Consumes the builder and constructs a ComponentRequest.
Trait Implementations§
source§impl Clone for ComponentRequestBuilder
impl Clone for ComponentRequestBuilder
source§fn clone(&self) -> ComponentRequestBuilder
fn clone(&self) -> ComponentRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentRequestBuilder
impl Debug for ComponentRequestBuilder
source§impl Default for ComponentRequestBuilder
impl Default for ComponentRequestBuilder
source§fn default() -> ComponentRequestBuilder
fn default() -> ComponentRequestBuilder
source§impl PartialEq for ComponentRequestBuilder
impl PartialEq for ComponentRequestBuilder
source§fn eq(&self, other: &ComponentRequestBuilder) -> bool
fn eq(&self, other: &ComponentRequestBuilder) -> bool
self and other values to be equal, and is used
by ==.