Struct aws_sdk_cloudsearch::model::OptionStatus
source · #[non_exhaustive]pub struct OptionStatus { /* private fields */ }Expand description
The status of domain configuration option.
Implementations§
source§impl OptionStatus
impl OptionStatus
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
A timestamp for when this option was created.
sourcepub fn update_date(&self) -> Option<&DateTime>
pub fn update_date(&self) -> Option<&DateTime>
A timestamp for when this option was last updated.
sourcepub fn update_version(&self) -> i32
pub fn update_version(&self) -> i32
A unique integer that indicates when this option was last updated.
sourcepub fn state(&self) -> Option<&OptionState>
pub fn state(&self) -> Option<&OptionState>
The state of processing a change to an option. Possible values:
RequiresIndexDocuments: the option's latest value will not be deployed untilIndexDocumentshas been called and indexing is complete.Processing: the option's latest value is in the process of being activated.Active: the option's latest value is completely deployed.FailedToValidate: the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
sourcepub fn pending_deletion(&self) -> Option<bool>
pub fn pending_deletion(&self) -> Option<bool>
Indicates that the option will be deleted once processing is complete.
source§impl OptionStatus
impl OptionStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OptionStatus.
Examples found in repository?
src/xml_deser.rs (line 2396)
2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475
pub fn deser_structure_crate_model_option_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OptionStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OptionStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CreationDate") /* CreationDate com.amazonaws.cloudsearch#OptionStatus$CreationDate */ => {
let var_78 =
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.cloudsearch#UpdateTimestamp`)"))
?
)
;
builder = builder.set_creation_date(var_78);
}
,
s if s.matches("UpdateDate") /* UpdateDate com.amazonaws.cloudsearch#OptionStatus$UpdateDate */ => {
let var_79 =
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.cloudsearch#UpdateTimestamp`)"))
?
)
;
builder = builder.set_update_date(var_79);
}
,
s if s.matches("UpdateVersion") /* UpdateVersion com.amazonaws.cloudsearch#OptionStatus$UpdateVersion */ => {
let var_80 =
Some(
{
<i32 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 (integer: `com.amazonaws.cloudsearch#UIntValue`)"))
}
?
)
;
builder = builder.set_update_version(var_80);
}
,
s if s.matches("State") /* State com.amazonaws.cloudsearch#OptionStatus$State */ => {
let var_81 =
Some(
Result::<crate::model::OptionState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::OptionState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_81);
}
,
s if s.matches("PendingDeletion") /* PendingDeletion com.amazonaws.cloudsearch#OptionStatus$PendingDeletion */ => {
let var_82 =
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.cloudsearch#Boolean`)"))
}
?
)
;
builder = builder.set_pending_deletion(var_82);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for OptionStatus
impl Clone for OptionStatus
source§fn clone(&self) -> OptionStatus
fn clone(&self) -> OptionStatus
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