package org.zstack.test.deployer.schema;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DiskOfferingConfig complex type.
* <p>
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <complexType name="DiskOfferingConfig">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="accountRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="diskSize" type="{http://www.w3.org/2001/XMLSchema}string" default="50G" />
* <attribute name="allocatorStrategy" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DiskOfferingConfig", propOrder = {
"accountRef"
})
public class DiskOfferingConfig {
protected String accountRef;
@XmlAttribute(name = "name", required = true)
protected String name;
@XmlAttribute(name = "description")
protected String description;
@XmlAttribute(name = "diskSize")
protected String diskSize;
@XmlAttribute(name = "allocatorStrategy")
protected String allocatorStrategy;
/**
* Gets the value of the accountRef property.
*
* @return possible object is
* {@link String }
*/
public String getAccountRef() {
return accountRef;
}
/**
* Sets the value of the accountRef property.
*
* @param value allowed object is
* {@link String }
*/
public void setAccountRef(String value) {
this.accountRef = value;
}
/**
* Gets the value of the name property.
*
* @return possible object is
* {@link String }
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value allowed object is
* {@link String }
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the description property.
*
* @return possible object is
* {@link String }
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value allowed object is
* {@link String }
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the diskSize property.
*
* @return possible object is
* {@link String }
*/
public String getDiskSize() {
if (diskSize == null) {
return "50G";
} else {
return diskSize;
}
}
/**
* Sets the value of the diskSize property.
*
* @param value allowed object is
* {@link String }
*/
public void setDiskSize(String value) {
this.diskSize = value;
}
/**
* Gets the value of the allocatorStrategy property.
*
* @return possible object is
* {@link String }
*/
public String getAllocatorStrategy() {
return allocatorStrategy;
}
/**
* Sets the value of the allocatorStrategy property.
*
* @param value allowed object is
* {@link String }
*/
public void setAllocatorStrategy(String value) {
this.allocatorStrategy = value;
}
}