pub struct Builder { /* private fields */ }
Expand description
A builder for DateTimeParameterDeclaration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the parameter that is being declared.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the parameter that is being declared.
sourcepub fn default_values(self, input: DateTimeDefaultValues) -> Self
pub fn default_values(self, input: DateTimeDefaultValues) -> Self
The default values of a parameter. If the parameter is a single-value parameter, a maximum of one default value can be provided.
sourcepub fn set_default_values(self, input: Option<DateTimeDefaultValues>) -> Self
pub fn set_default_values(self, input: Option<DateTimeDefaultValues>) -> Self
The default values of a parameter. If the parameter is a single-value parameter, a maximum of one default value can be provided.
sourcepub fn time_granularity(self, input: TimeGranularity) -> Self
pub fn time_granularity(self, input: TimeGranularity) -> Self
The level of time precision that is used to aggregate DateTime
values.
sourcepub fn set_time_granularity(self, input: Option<TimeGranularity>) -> Self
pub fn set_time_granularity(self, input: Option<TimeGranularity>) -> Self
The level of time precision that is used to aggregate DateTime
values.
sourcepub fn value_when_unset(self, input: DateTimeValueWhenUnsetConfiguration) -> Self
pub fn value_when_unset(self, input: DateTimeValueWhenUnsetConfiguration) -> Self
The configuration that defines the default value of a DateTime
parameter when a value has not been set.
sourcepub fn set_value_when_unset(
self,
input: Option<DateTimeValueWhenUnsetConfiguration>
) -> Self
pub fn set_value_when_unset(
self,
input: Option<DateTimeValueWhenUnsetConfiguration>
) -> Self
The configuration that defines the default value of a DateTime
parameter when a value has not been set.
sourcepub fn build(self) -> DateTimeParameterDeclaration
pub fn build(self) -> DateTimeParameterDeclaration
Consumes the builder and constructs a DateTimeParameterDeclaration
.