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')?.text;
  noncurrentVersionExpiration = NoncurrentVersionExpiration.fromXml(
      getProp(xml, 'NoncurrentVersionExpiration'));
  noncurrentVersionTransitions = NoncurrentVersionTransition.fromXml(
      getProp(xml, 'NoncurrentVersionTransitions'));
  prefix = getProp(xml, 'Prefix')?.text;
  status = getProp(xml, 'Status')?.text;
  transitions = Transition.fromXml(getProp(xml, 'Transitions'));
}