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
impl StructuralPartialEq for DatetimeOptionsBuilder
Auto Trait Implementations§
impl Freeze for DatetimeOptionsBuilder
impl RefUnwindSafe for DatetimeOptionsBuilder
impl Send for DatetimeOptionsBuilder
impl Sync for DatetimeOptionsBuilder
impl Unpin for DatetimeOptionsBuilder
impl UnwindSafe for DatetimeOptionsBuilder
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