#[non_exhaustive]pub struct DateTimeDatasetParameterBuilder { /* private fields */ }
Expand description
A builder for DateTimeDatasetParameter
.
Implementations§
source§impl DateTimeDatasetParameterBuilder
impl DateTimeDatasetParameterBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
An identifier for the 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 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 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 date time 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 date time 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 date time 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 time_granularity(self, input: TimeGranularity) -> Self
pub fn time_granularity(self, input: TimeGranularity) -> Self
The time granularity of the date time parameter.
sourcepub fn set_time_granularity(self, input: Option<TimeGranularity>) -> Self
pub fn set_time_granularity(self, input: Option<TimeGranularity>) -> Self
The time granularity of the date time parameter.
sourcepub fn get_time_granularity(&self) -> &Option<TimeGranularity>
pub fn get_time_granularity(&self) -> &Option<TimeGranularity>
The time granularity of the date time parameter.
sourcepub fn default_values(
self,
input: DateTimeDatasetParameterDefaultValues
) -> Self
pub fn default_values( self, input: DateTimeDatasetParameterDefaultValues ) -> Self
A list of default values for a given date time parameter. This structure only accepts static values.
sourcepub fn set_default_values(
self,
input: Option<DateTimeDatasetParameterDefaultValues>
) -> Self
pub fn set_default_values( self, input: Option<DateTimeDatasetParameterDefaultValues> ) -> Self
A list of default values for a given date time parameter. This structure only accepts static values.
sourcepub fn get_default_values(
&self
) -> &Option<DateTimeDatasetParameterDefaultValues>
pub fn get_default_values( &self ) -> &Option<DateTimeDatasetParameterDefaultValues>
A list of default values for a given date time parameter. This structure only accepts static values.
sourcepub fn build(self) -> Result<DateTimeDatasetParameter, BuildError>
pub fn build(self) -> Result<DateTimeDatasetParameter, BuildError>
Consumes the builder and constructs a DateTimeDatasetParameter
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DateTimeDatasetParameterBuilder
impl Clone for DateTimeDatasetParameterBuilder
source§fn clone(&self) -> DateTimeDatasetParameterBuilder
fn clone(&self) -> DateTimeDatasetParameterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DateTimeDatasetParameterBuilder
impl Default for DateTimeDatasetParameterBuilder
source§fn default() -> DateTimeDatasetParameterBuilder
fn default() -> DateTimeDatasetParameterBuilder
source§impl PartialEq for DateTimeDatasetParameterBuilder
impl PartialEq for DateTimeDatasetParameterBuilder
source§fn eq(&self, other: &DateTimeDatasetParameterBuilder) -> bool
fn eq(&self, other: &DateTimeDatasetParameterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.