InstancesDistribution.fromXml constructor
InstancesDistribution.fromXml(
- XmlElement elem
Implementation
factory InstancesDistribution.fromXml(_s.XmlElement elem) {
return InstancesDistribution(
onDemandAllocationStrategy:
_s.extractXmlStringValue(elem, 'OnDemandAllocationStrategy'),
onDemandBaseCapacity: _s.extractXmlIntValue(elem, 'OnDemandBaseCapacity'),
onDemandPercentageAboveBaseCapacity:
_s.extractXmlIntValue(elem, 'OnDemandPercentageAboveBaseCapacity'),
spotAllocationStrategy:
_s.extractXmlStringValue(elem, 'SpotAllocationStrategy'),
spotInstancePools: _s.extractXmlIntValue(elem, 'SpotInstancePools'),
spotMaxPrice: _s.extractXmlStringValue(elem, 'SpotMaxPrice'),
);
}