Struct aws_sdk_databrew::types::builders::DatetimeOptionsBuilder
source · #[non_exhaustive]pub struct DatetimeOptionsBuilder { /* private fields */ }
Expand description
A builder for DatetimeOptions
.
Implementations§
source§impl DatetimeOptionsBuilder
impl DatetimeOptionsBuilder
sourcepub fn format(self, input: impl Into<String>) -> Self
pub fn format(self, input: impl Into<String>) -> Self
Required option, that defines the datetime format used for a date parameter in the Amazon S3 path. Should use only supported datetime specifiers and separation characters, all literal a-z or A-Z characters should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
This field is required.sourcepub fn set_format(self, input: Option<String>) -> Self
pub fn set_format(self, input: Option<String>) -> Self
Required option, that defines the datetime format used for a date parameter in the Amazon S3 path. Should use only supported datetime specifiers and separation characters, all literal a-z or A-Z characters should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
sourcepub fn get_format(&self) -> &Option<String>
pub fn get_format(&self) -> &Option<String>
Required option, that defines the datetime format used for a date parameter in the Amazon S3 path. Should use only supported datetime specifiers and separation characters, all literal a-z or A-Z characters should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
sourcepub fn timezone_offset(self, input: impl Into<String>) -> Self
pub fn timezone_offset(self, input: impl Into<String>) -> Self
Optional value for a timezone offset of the datetime parameter value in the Amazon S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
sourcepub fn set_timezone_offset(self, input: Option<String>) -> Self
pub fn set_timezone_offset(self, input: Option<String>) -> Self
Optional value for a timezone offset of the datetime parameter value in the Amazon S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
sourcepub fn get_timezone_offset(&self) -> &Option<String>
pub fn get_timezone_offset(&self) -> &Option<String>
Optional value for a timezone offset of the datetime parameter value in the Amazon S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
sourcepub fn locale_code(self, input: impl Into<String>) -> Self
pub fn locale_code(self, input: impl Into<String>) -> Self
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
sourcepub fn set_locale_code(self, input: Option<String>) -> Self
pub fn set_locale_code(self, input: Option<String>) -> Self
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
sourcepub fn get_locale_code(&self) -> &Option<String>
pub fn get_locale_code(&self) -> &Option<String>
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
sourcepub fn build(self) -> Result<DatetimeOptions, BuildError>
pub fn build(self) -> Result<DatetimeOptions, BuildError>
Consumes the builder and constructs a DatetimeOptions
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DatetimeOptionsBuilder
impl Clone for DatetimeOptionsBuilder
source§fn clone(&self) -> DatetimeOptionsBuilder
fn clone(&self) -> DatetimeOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DatetimeOptionsBuilder
impl Debug for DatetimeOptionsBuilder
source§impl Default for DatetimeOptionsBuilder
impl Default for DatetimeOptionsBuilder
source§fn default() -> DatetimeOptionsBuilder
fn default() -> DatetimeOptionsBuilder
source§impl PartialEq for DatetimeOptionsBuilder
impl PartialEq for DatetimeOptionsBuilder
source§fn eq(&self, other: &DatetimeOptionsBuilder) -> bool
fn eq(&self, other: &DatetimeOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.