#[non_exhaustive]pub struct TransformConfigParameterBuilder { /* private fields */ }
Expand description
A builder for TransformConfigParameter
.
Implementations§
source§impl TransformConfigParameterBuilder
impl TransformConfigParameterBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Specifies the name of the parameter in the config file of the dynamic transform.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Specifies the name of the parameter in the config file of the dynamic transform.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
Specifies the name of the parameter in the config file of the dynamic transform.
sourcepub fn type(self, input: ParamType) -> Self
pub fn type(self, input: ParamType) -> Self
Specifies the parameter type in the config file of the dynamic transform.
This field is required.sourcepub fn set_type(self, input: Option<ParamType>) -> Self
pub fn set_type(self, input: Option<ParamType>) -> Self
Specifies the parameter type in the config file of the dynamic transform.
sourcepub fn get_type(&self) -> &Option<ParamType>
pub fn get_type(&self) -> &Option<ParamType>
Specifies the parameter type in the config file of the dynamic transform.
sourcepub fn validation_rule(self, input: impl Into<String>) -> Self
pub fn validation_rule(self, input: impl Into<String>) -> Self
Specifies the validation rule in the config file of the dynamic transform.
sourcepub fn set_validation_rule(self, input: Option<String>) -> Self
pub fn set_validation_rule(self, input: Option<String>) -> Self
Specifies the validation rule in the config file of the dynamic transform.
sourcepub fn get_validation_rule(&self) -> &Option<String>
pub fn get_validation_rule(&self) -> &Option<String>
Specifies the validation rule in the config file of the dynamic transform.
sourcepub fn validation_message(self, input: impl Into<String>) -> Self
pub fn validation_message(self, input: impl Into<String>) -> Self
Specifies the validation message in the config file of the dynamic transform.
sourcepub fn set_validation_message(self, input: Option<String>) -> Self
pub fn set_validation_message(self, input: Option<String>) -> Self
Specifies the validation message in the config file of the dynamic transform.
sourcepub fn get_validation_message(&self) -> &Option<String>
pub fn get_validation_message(&self) -> &Option<String>
Specifies the validation message in the config file of the dynamic transform.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
Appends an item to value
.
To override the contents of this collection use set_value
.
Specifies the value of the parameter in the config file of the dynamic transform.
sourcepub fn set_value(self, input: Option<Vec<String>>) -> Self
pub fn set_value(self, input: Option<Vec<String>>) -> Self
Specifies the value of the parameter in the config file of the dynamic transform.
sourcepub fn get_value(&self) -> &Option<Vec<String>>
pub fn get_value(&self) -> &Option<Vec<String>>
Specifies the value of the parameter in the config file of the dynamic transform.
sourcepub fn list_type(self, input: ParamType) -> Self
pub fn list_type(self, input: ParamType) -> Self
Specifies the list type of the parameter in the config file of the dynamic transform.
sourcepub fn set_list_type(self, input: Option<ParamType>) -> Self
pub fn set_list_type(self, input: Option<ParamType>) -> Self
Specifies the list type of the parameter in the config file of the dynamic transform.
sourcepub fn get_list_type(&self) -> &Option<ParamType>
pub fn get_list_type(&self) -> &Option<ParamType>
Specifies the list type of the parameter in the config file of the dynamic transform.
sourcepub fn is_optional(self, input: bool) -> Self
pub fn is_optional(self, input: bool) -> Self
Specifies whether the parameter is optional or not in the config file of the dynamic transform.
sourcepub fn set_is_optional(self, input: Option<bool>) -> Self
pub fn set_is_optional(self, input: Option<bool>) -> Self
Specifies whether the parameter is optional or not in the config file of the dynamic transform.
sourcepub fn get_is_optional(&self) -> &Option<bool>
pub fn get_is_optional(&self) -> &Option<bool>
Specifies whether the parameter is optional or not in the config file of the dynamic transform.
sourcepub fn build(self) -> Result<TransformConfigParameter, BuildError>
pub fn build(self) -> Result<TransformConfigParameter, BuildError>
Consumes the builder and constructs a TransformConfigParameter
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TransformConfigParameterBuilder
impl Clone for TransformConfigParameterBuilder
source§fn clone(&self) -> TransformConfigParameterBuilder
fn clone(&self) -> TransformConfigParameterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TransformConfigParameterBuilder
impl Default for TransformConfigParameterBuilder
source§fn default() -> TransformConfigParameterBuilder
fn default() -> TransformConfigParameterBuilder
source§impl PartialEq for TransformConfigParameterBuilder
impl PartialEq for TransformConfigParameterBuilder
source§fn eq(&self, other: &TransformConfigParameterBuilder) -> bool
fn eq(&self, other: &TransformConfigParameterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransformConfigParameterBuilder
Auto Trait Implementations§
impl Freeze for TransformConfigParameterBuilder
impl RefUnwindSafe for TransformConfigParameterBuilder
impl Send for TransformConfigParameterBuilder
impl Sync for TransformConfigParameterBuilder
impl Unpin for TransformConfigParameterBuilder
impl UnwindSafe for TransformConfigParameterBuilder
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> 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