#[non_exhaustive]pub struct StringDatasetParameterBuilder { /* private fields */ }
Expand description
A builder for StringDatasetParameter
.
Implementations§
source§impl StringDatasetParameterBuilder
impl StringDatasetParameterBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
An identifier for the string parameter that is created in the dataset.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
An identifier for the string parameter that is created in the dataset.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
An identifier for the string parameter that is created in the dataset.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the string parameter that is created in the dataset.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the string parameter that is created in the dataset.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the string parameter that is created in the dataset.
sourcepub fn value_type(self, input: DatasetParameterValueType) -> Self
pub fn value_type(self, input: DatasetParameterValueType) -> Self
The value type of the dataset parameter. Valid values are single value
or multi value
.
sourcepub fn set_value_type(self, input: Option<DatasetParameterValueType>) -> Self
pub fn set_value_type(self, input: Option<DatasetParameterValueType>) -> Self
The value type of the dataset parameter. Valid values are single value
or multi value
.
sourcepub fn get_value_type(&self) -> &Option<DatasetParameterValueType>
pub fn get_value_type(&self) -> &Option<DatasetParameterValueType>
The value type of the dataset parameter. Valid values are single value
or multi value
.
sourcepub fn default_values(self, input: StringDatasetParameterDefaultValues) -> Self
pub fn default_values(self, input: StringDatasetParameterDefaultValues) -> Self
A list of default values for a given string dataset parameter type. This structure only accepts static values.
sourcepub fn set_default_values(
self,
input: Option<StringDatasetParameterDefaultValues>
) -> Self
pub fn set_default_values( self, input: Option<StringDatasetParameterDefaultValues> ) -> Self
A list of default values for a given string dataset parameter type. This structure only accepts static values.
sourcepub fn get_default_values(&self) -> &Option<StringDatasetParameterDefaultValues>
pub fn get_default_values(&self) -> &Option<StringDatasetParameterDefaultValues>
A list of default values for a given string dataset parameter type. This structure only accepts static values.
sourcepub fn build(self) -> Result<StringDatasetParameter, BuildError>
pub fn build(self) -> Result<StringDatasetParameter, BuildError>
Consumes the builder and constructs a StringDatasetParameter
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StringDatasetParameterBuilder
impl Clone for StringDatasetParameterBuilder
source§fn clone(&self) -> StringDatasetParameterBuilder
fn clone(&self) -> StringDatasetParameterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StringDatasetParameterBuilder
impl Default for StringDatasetParameterBuilder
source§fn default() -> StringDatasetParameterBuilder
fn default() -> StringDatasetParameterBuilder
source§impl PartialEq for StringDatasetParameterBuilder
impl PartialEq for StringDatasetParameterBuilder
source§fn eq(&self, other: &StringDatasetParameterBuilder) -> bool
fn eq(&self, other: &StringDatasetParameterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.