#[non_exhaustive]pub struct JobManifestGeneratorFilter {
pub eligible_for_replication: Option<bool>,
pub created_after: Option<DateTime>,
pub created_before: Option<DateTime>,
pub object_replication_statuses: Option<Vec<ReplicationStatus>>,
pub key_name_constraint: Option<KeyNameConstraint>,
pub object_size_greater_than_bytes: Option<i64>,
pub object_size_less_than_bytes: Option<i64>,
pub match_any_storage_class: Option<Vec<S3StorageClass>>,
}
Expand description
The filter used to describe a set of objects for the job's manifest.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.eligible_for_replication: Option<bool>
Include objects in the generated manifest only if they are eligible for replication according to the Replication configuration on the source bucket.
created_after: Option<DateTime>
If provided, the generated manifest includes only source bucket objects that were created after this time.
created_before: Option<DateTime>
If provided, the generated manifest includes only source bucket objects that were created before this time.
object_replication_statuses: Option<Vec<ReplicationStatus>>
If provided, the generated manifest includes only source bucket objects that have one of the specified Replication statuses.
key_name_constraint: Option<KeyNameConstraint>
If provided, the generated manifest includes only source bucket objects whose object keys match the string constraints specified for MatchAnyPrefix
, MatchAnySuffix
, and MatchAnySubstring
.
object_size_greater_than_bytes: Option<i64>
If provided, the generated manifest includes only source bucket objects whose file size is greater than the specified number of bytes.
object_size_less_than_bytes: Option<i64>
If provided, the generated manifest includes only source bucket objects whose file size is less than the specified number of bytes.
match_any_storage_class: Option<Vec<S3StorageClass>>
If provided, the generated manifest includes only source bucket objects that are stored with the specified storage class.
Implementations§
source§impl JobManifestGeneratorFilter
impl JobManifestGeneratorFilter
sourcepub fn eligible_for_replication(&self) -> Option<bool>
pub fn eligible_for_replication(&self) -> Option<bool>
Include objects in the generated manifest only if they are eligible for replication according to the Replication configuration on the source bucket.
sourcepub fn created_after(&self) -> Option<&DateTime>
pub fn created_after(&self) -> Option<&DateTime>
If provided, the generated manifest includes only source bucket objects that were created after this time.
sourcepub fn created_before(&self) -> Option<&DateTime>
pub fn created_before(&self) -> Option<&DateTime>
If provided, the generated manifest includes only source bucket objects that were created before this time.
sourcepub fn object_replication_statuses(&self) -> &[ReplicationStatus]
pub fn object_replication_statuses(&self) -> &[ReplicationStatus]
If provided, the generated manifest includes only source bucket objects that have one of the specified Replication statuses.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .object_replication_statuses.is_none()
.
sourcepub fn key_name_constraint(&self) -> Option<&KeyNameConstraint>
pub fn key_name_constraint(&self) -> Option<&KeyNameConstraint>
If provided, the generated manifest includes only source bucket objects whose object keys match the string constraints specified for MatchAnyPrefix
, MatchAnySuffix
, and MatchAnySubstring
.
sourcepub fn object_size_greater_than_bytes(&self) -> Option<i64>
pub fn object_size_greater_than_bytes(&self) -> Option<i64>
If provided, the generated manifest includes only source bucket objects whose file size is greater than the specified number of bytes.
sourcepub fn object_size_less_than_bytes(&self) -> Option<i64>
pub fn object_size_less_than_bytes(&self) -> Option<i64>
If provided, the generated manifest includes only source bucket objects whose file size is less than the specified number of bytes.
sourcepub fn match_any_storage_class(&self) -> &[S3StorageClass]
pub fn match_any_storage_class(&self) -> &[S3StorageClass]
If provided, the generated manifest includes only source bucket objects that are stored with the specified storage class.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .match_any_storage_class.is_none()
.
source§impl JobManifestGeneratorFilter
impl JobManifestGeneratorFilter
sourcepub fn builder() -> JobManifestGeneratorFilterBuilder
pub fn builder() -> JobManifestGeneratorFilterBuilder
Creates a new builder-style object to manufacture JobManifestGeneratorFilter
.
Trait Implementations§
source§impl Clone for JobManifestGeneratorFilter
impl Clone for JobManifestGeneratorFilter
source§fn clone(&self) -> JobManifestGeneratorFilter
fn clone(&self) -> JobManifestGeneratorFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobManifestGeneratorFilter
impl Debug for JobManifestGeneratorFilter
source§impl PartialEq for JobManifestGeneratorFilter
impl PartialEq for JobManifestGeneratorFilter
source§fn eq(&self, other: &JobManifestGeneratorFilter) -> bool
fn eq(&self, other: &JobManifestGeneratorFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JobManifestGeneratorFilter
Auto Trait Implementations§
impl Freeze for JobManifestGeneratorFilter
impl RefUnwindSafe for JobManifestGeneratorFilter
impl Send for JobManifestGeneratorFilter
impl Sync for JobManifestGeneratorFilter
impl Unpin for JobManifestGeneratorFilter
impl UnwindSafe for JobManifestGeneratorFilter
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