com.softlayer.api.service.hardware.Function 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.hardware;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
/**
* The SoftLayer_Hardware_Function data type contains a generic object type for a piece of hardware, like switch, firewall, server, etc..
*
* @see SoftLayer_Hardware_Function
*/
@ApiType("SoftLayer_Hardware_Function")
public class Function extends Entity {
/**
* The code associated with this hardware function.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String code;
public String getCode() {
return code;
}
public void setCode(String code) {
codeSpecified = true;
this.code = code;
}
protected boolean codeSpecified;
public boolean isCodeSpecified() {
return codeSpecified;
}
public void unsetCode() {
code = null;
codeSpecified = false;
}
/**
* The description for a hardware function.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
descriptionSpecified = true;
this.description = description;
}
protected boolean descriptionSpecified;
public boolean isDescriptionSpecified() {
return descriptionSpecified;
}
public void unsetDescription() {
description = null;
descriptionSpecified = false;
}
/**
* The id associated with a hardware function.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask code() {
withLocalProperty("code");
return this;
}
public Mask description() {
withLocalProperty("description");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
}
}