com.softlayer.api.service.container.network.authentication.Data 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
package com.softlayer.api.service.container.network.authentication;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
/**
* This object holds authentication data to a server.
*
* @see SoftLayer_Container_Network_Authentication_Data
*/
@ApiType("SoftLayer_Container_Network_Authentication_Data")
public class Data extends Entity {
/**
* The name of a host
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String host;
public String getHost() {
return host;
}
public void setHost(String host) {
hostSpecified = true;
this.host = host;
}
protected boolean hostSpecified;
public boolean isHostSpecified() {
return hostSpecified;
}
public void unsetHost() {
host = null;
hostSpecified = false;
}
/**
* The authentication password
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String password;
public String getPassword() {
return password;
}
public void setPassword(String password) {
passwordSpecified = true;
this.password = password;
}
protected boolean passwordSpecified;
public boolean isPasswordSpecified() {
return passwordSpecified;
}
public void unsetPassword() {
password = null;
passwordSpecified = false;
}
/**
* The port number
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long port;
public Long getPort() {
return port;
}
public void setPort(Long port) {
portSpecified = true;
this.port = port;
}
protected boolean portSpecified;
public boolean isPortSpecified() {
return portSpecified;
}
public void unsetPort() {
port = null;
portSpecified = false;
}
/**
* The type of network protocol. This can be ftp, ssh and so on.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String type;
public String getType() {
return type;
}
public void setType(String type) {
typeSpecified = true;
this.type = type;
}
protected boolean typeSpecified;
public boolean isTypeSpecified() {
return typeSpecified;
}
public void unsetType() {
type = null;
typeSpecified = false;
}
/**
* The authentication username
*/
@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 host() {
withLocalProperty("host");
return this;
}
public Mask password() {
withLocalProperty("password");
return this;
}
public Mask port() {
withLocalProperty("port");
return this;
}
public Mask type() {
withLocalProperty("type");
return this;
}
public Mask username() {
withLocalProperty("username");
return this;
}
}
}