#[non_exhaustive]pub struct JobManifestGeneratorFilter { /* private fields */ }
Expand description
The filter used to describe a set of objects for the job's manifest.
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 should include 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 should include only source bucket objects that were created before this time.
sourcepub fn object_replication_statuses(&self) -> Option<&[ReplicationStatus]>
pub fn object_replication_statuses(&self) -> Option<&[ReplicationStatus]>
If provided, the generated manifest should include only source bucket objects that have one of the specified Replication statuses.
source§impl JobManifestGeneratorFilter
impl JobManifestGeneratorFilter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture JobManifestGeneratorFilter
.
Examples found in repository?
src/xml_deser.rs (line 6123)
6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183
pub fn deser_structure_crate_model_job_manifest_generator_filter(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::JobManifestGeneratorFilter, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::JobManifestGeneratorFilter::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("EligibleForReplication") /* EligibleForReplication com.amazonaws.s3control#JobManifestGeneratorFilter$EligibleForReplication */ => {
let var_290 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.s3control#Boolean`)"))
}
?
)
;
builder = builder.set_eligible_for_replication(var_290);
}
,
s if s.matches("CreatedAfter") /* CreatedAfter com.amazonaws.s3control#JobManifestGeneratorFilter$CreatedAfter */ => {
let var_291 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.s3control#ObjectCreationTime`)"))
?
)
;
builder = builder.set_created_after(var_291);
}
,
s if s.matches("CreatedBefore") /* CreatedBefore com.amazonaws.s3control#JobManifestGeneratorFilter$CreatedBefore */ => {
let var_292 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.s3control#ObjectCreationTime`)"))
?
)
;
builder = builder.set_created_before(var_292);
}
,
s if s.matches("ObjectReplicationStatuses") /* ObjectReplicationStatuses com.amazonaws.s3control#JobManifestGeneratorFilter$ObjectReplicationStatuses */ => {
let var_293 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3control_replication_status_filter_list(&mut tag)
?
)
;
builder = builder.set_object_replication_statuses(var_293);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for JobManifestGeneratorFilter
impl Clone for JobManifestGeneratorFilter
source§fn clone(&self) -> JobManifestGeneratorFilter
fn clone(&self) -> JobManifestGeneratorFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more