LifecycleRule.fromXml constructor

LifecycleRule.fromXml(
  1. XmlElement? xml
)

Implementation

LifecycleRule.fromXml(XmlElement? xml) {
  abortIncompleteMultipartUpload = AbortIncompleteMultipartUpload.fromXml(
    getProp(xml, 'AbortIncompleteMultipartUpload'),
  );
  expiration = LifecycleExpiration.fromXml(getProp(xml, 'Expiration'));
  filter = LifecycleRuleFilter.fromXml(getProp(xml, 'Filter'));
  iD = getProp(xml, 'ID')?.innerText;
  noncurrentVersionExpiration = NoncurrentVersionExpiration.fromXml(
    getProp(xml, 'NoncurrentVersionExpiration'),
  );
  noncurrentVersionTransitions = NoncurrentVersionTransition.fromXml(
    getProp(xml, 'NoncurrentVersionTransitions'),
  );
  prefix = getProp(xml, 'Prefix')?.innerText;
  status = getProp(xml, 'Status')?.innerText;
  transitions = Transition.fromXml(getProp(xml, 'Transitions'));
}