Struct aws_sdk_glue::types::builders::PartitionInputBuilder
source · #[non_exhaustive]pub struct PartitionInputBuilder { /* private fields */ }
Expand description
A builder for PartitionInput
.
Implementations§
source§impl PartitionInputBuilder
impl PartitionInputBuilder
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The values of the partition. Although this parameter is not required by the SDK, you must specify this parameter for a valid input.
The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise Glue will add the values to the wrong keys.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The values of the partition. Although this parameter is not required by the SDK, you must specify this parameter for a valid input.
The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise Glue will add the values to the wrong keys.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The values of the partition. Although this parameter is not required by the SDK, you must specify this parameter for a valid input.
The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise Glue will add the values to the wrong keys.
sourcepub fn last_access_time(self, input: DateTime) -> Self
pub fn last_access_time(self, input: DateTime) -> Self
The last time at which the partition was accessed.
sourcepub fn set_last_access_time(self, input: Option<DateTime>) -> Self
pub fn set_last_access_time(self, input: Option<DateTime>) -> Self
The last time at which the partition was accessed.
sourcepub fn get_last_access_time(&self) -> &Option<DateTime>
pub fn get_last_access_time(&self) -> &Option<DateTime>
The last time at which the partition was accessed.
sourcepub fn storage_descriptor(self, input: StorageDescriptor) -> Self
pub fn storage_descriptor(self, input: StorageDescriptor) -> Self
Provides information about the physical location where the partition is stored.
sourcepub fn set_storage_descriptor(self, input: Option<StorageDescriptor>) -> Self
pub fn set_storage_descriptor(self, input: Option<StorageDescriptor>) -> Self
Provides information about the physical location where the partition is stored.
sourcepub fn get_storage_descriptor(&self) -> &Option<StorageDescriptor>
pub fn get_storage_descriptor(&self) -> &Option<StorageDescriptor>
Provides information about the physical location where the partition is stored.
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
These key-value pairs define partition parameters.
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
These key-value pairs define partition parameters.
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_parameters(&self) -> &Option<HashMap<String, String>>
These key-value pairs define partition parameters.
sourcepub fn last_analyzed_time(self, input: DateTime) -> Self
pub fn last_analyzed_time(self, input: DateTime) -> Self
The last time at which column statistics were computed for this partition.
sourcepub fn set_last_analyzed_time(self, input: Option<DateTime>) -> Self
pub fn set_last_analyzed_time(self, input: Option<DateTime>) -> Self
The last time at which column statistics were computed for this partition.
sourcepub fn get_last_analyzed_time(&self) -> &Option<DateTime>
pub fn get_last_analyzed_time(&self) -> &Option<DateTime>
The last time at which column statistics were computed for this partition.
sourcepub fn build(self) -> PartitionInput
pub fn build(self) -> PartitionInput
Consumes the builder and constructs a PartitionInput
.
Trait Implementations§
source§impl Clone for PartitionInputBuilder
impl Clone for PartitionInputBuilder
source§fn clone(&self) -> PartitionInputBuilder
fn clone(&self) -> PartitionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionInputBuilder
impl Debug for PartitionInputBuilder
source§impl Default for PartitionInputBuilder
impl Default for PartitionInputBuilder
source§fn default() -> PartitionInputBuilder
fn default() -> PartitionInputBuilder
source§impl PartialEq for PartitionInputBuilder
impl PartialEq for PartitionInputBuilder
source§fn eq(&self, other: &PartitionInputBuilder) -> bool
fn eq(&self, other: &PartitionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PartitionInputBuilder
Auto Trait Implementations§
impl Freeze for PartitionInputBuilder
impl RefUnwindSafe for PartitionInputBuilder
impl Send for PartitionInputBuilder
impl Sync for PartitionInputBuilder
impl Unpin for PartitionInputBuilder
impl UnwindSafe for PartitionInputBuilder
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> 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