#[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 ==
.impl StructuralPartialEq for DateTimeDatasetParameterBuilder
Auto Trait Implementations§
impl Freeze for DateTimeDatasetParameterBuilder
impl RefUnwindSafe for DateTimeDatasetParameterBuilder
impl Send for DateTimeDatasetParameterBuilder
impl Sync for DateTimeDatasetParameterBuilder
impl Unpin for DateTimeDatasetParameterBuilder
impl UnwindSafe for DateTimeDatasetParameterBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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