com.softlayer.api.service.software.description.RequiredUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
The newest version!
package com.softlayer.api.service.software.description;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
/**
* This class represents a software description's required user
*
* @see SoftLayer_Software_Description_RequiredUser
*/
@ApiType("SoftLayer_Software_Description_RequiredUser")
public class RequiredUser extends Entity {
/**
* If the default password is set the user will be created with that password, otherwise a random password is generated.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String defaultPassword;
public String getDefaultPassword() {
return defaultPassword;
}
public void setDefaultPassword(String defaultPassword) {
defaultPasswordSpecified = true;
this.defaultPassword = defaultPassword;
}
protected boolean defaultPasswordSpecified;
public boolean isDefaultPasswordSpecified() {
return defaultPasswordSpecified;
}
public void unsetDefaultPassword() {
defaultPassword = null;
defaultPasswordSpecified = false;
}
/**
* If this software has a required user (such as "root") this string contains it's name.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String username;
public String getUsername() {
return username;
}
public void setUsername(String username) {
usernameSpecified = true;
this.username = username;
}
protected boolean usernameSpecified;
public boolean isUsernameSpecified() {
return usernameSpecified;
}
public void unsetUsername() {
username = null;
usernameSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask defaultPassword() {
withLocalProperty("defaultPassword");
return this;
}
public Mask username() {
withLocalProperty("username");
return this;
}
}
}