#[non_exhaustive]pub struct ComponentParameterDetailBuilder { /* private fields */ }
Expand description
A builder for ComponentParameterDetail
.
Implementations§
source§impl ComponentParameterDetailBuilder
impl ComponentParameterDetailBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of this input parameter.
This field is required.sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of input this parameter provides. The currently supported value is "string".
This field is required.sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of input this parameter provides. The currently supported value is "string".
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The type of input this parameter provides. The currently supported value is "string".
sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
Appends an item to default_value
.
To override the contents of this collection use set_default_value
.
The default value of this parameter if no input is provided.
sourcepub fn set_default_value(self, input: Option<Vec<String>>) -> Self
pub fn set_default_value(self, input: Option<Vec<String>>) -> Self
The default value of this parameter if no input is provided.
sourcepub fn get_default_value(&self) -> &Option<Vec<String>>
pub fn get_default_value(&self) -> &Option<Vec<String>>
The default value of this parameter if no input is provided.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Describes this parameter.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Describes this parameter.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Describes this parameter.
sourcepub fn build(self) -> Result<ComponentParameterDetail, BuildError>
pub fn build(self) -> Result<ComponentParameterDetail, BuildError>
Consumes the builder and constructs a ComponentParameterDetail
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ComponentParameterDetailBuilder
impl Clone for ComponentParameterDetailBuilder
source§fn clone(&self) -> ComponentParameterDetailBuilder
fn clone(&self) -> ComponentParameterDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ComponentParameterDetailBuilder
impl Default for ComponentParameterDetailBuilder
source§fn default() -> ComponentParameterDetailBuilder
fn default() -> ComponentParameterDetailBuilder
source§impl PartialEq for ComponentParameterDetailBuilder
impl PartialEq for ComponentParameterDetailBuilder
source§fn eq(&self, other: &ComponentParameterDetailBuilder) -> bool
fn eq(&self, other: &ComponentParameterDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.