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 ImageStoreBackupStorageConfig complex type.
* <p>
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <complexType name="ImageStoreBackupStorageConfig">
* <complexContent>
* <extension base="{http://zstack.org/schema/zstack}BackupStorageConfigBase">
* <attribute name="hostname" type="{http://www.w3.org/2001/XMLSchema}string" default="localhost" />
* <attribute name="username" type="{http://www.w3.org/2001/XMLSchema}string" default="root" />
* <attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" default="password" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ImageStoreBackupStorageConfig")
public class ImageStoreBackupStorageConfig
extends BackupStorageConfigBase {
@XmlAttribute(name = "hostname")
protected String hostname;
@XmlAttribute(name = "username")
protected String username;
@XmlAttribute(name = "password")
protected String password;
/**
* Gets the value of the hostname property.
*
* @return possible object is
* {@link String }
*/
public String getHostname() {
if (hostname == null) {
return "localhost";
} else {
return hostname;
}
}
/**
* Sets the value of the hostname property.
*
* @param value allowed object is
* {@link String }
*/
public void setHostname(String value) {
this.hostname = value;
}
/**
* Gets the value of the username property.
*
* @return possible object is
* {@link String }
*/
public String getUsername() {
if (username == null) {
return "root";
} else {
return username;
}
}
/**
* Sets the value of the username property.
*
* @param value allowed object is
* {@link String }
*/
public void setUsername(String value) {
this.username = value;
}
/**
* Gets the value of the password property.
*
* @return possible object is
* {@link String }
*/
public String getPassword() {
if (password == null) {
return "password";
} else {
return password;
}
}
/**
* Sets the value of the password property.
*
* @param value allowed object is
* {@link String }
*/
public void setPassword(String value) {
this.password = value;
}
}