com.softlayer.api.service.hardware.component.Firmware 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.component;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.hardware.component.Model;
import com.softlayer.api.service.hardware.component.Revision;
import com.softlayer.api.service.hardware.component.firmware.Attribute;
import com.softlayer.api.service.hardware.component.firmware.QualificationTypes;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
/**
* @see SoftLayer_Hardware_Component_Firmware
*/
@ApiType("SoftLayer_Hardware_Component_Firmware")
public class Firmware extends Entity {
@ApiProperty
protected List attributes;
public List getAttributes() {
if (attributes == null) {
attributes = new ArrayList();
}
return attributes;
}
/**
* The Hardware Component Model this Firmware applies to.
*/
@ApiProperty
protected Model hardwareComponentModel;
public Model getHardwareComponentModel() {
return hardwareComponentModel;
}
public void setHardwareComponentModel(Model hardwareComponentModel) {
this.hardwareComponentModel = hardwareComponentModel;
}
@ApiProperty
protected QualificationTypes qualificationType;
public QualificationTypes getQualificationType() {
return qualificationType;
}
public void setQualificationType(QualificationTypes qualificationType) {
this.qualificationType = qualificationType;
}
/**
* All revisions of this firmware.
*/
@ApiProperty
protected List revisions;
public List getRevisions() {
if (revisions == null) {
revisions = new ArrayList();
}
return revisions;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar buildDate;
public GregorianCalendar getBuildDate() {
return buildDate;
}
public void setBuildDate(GregorianCalendar buildDate) {
buildDateSpecified = true;
this.buildDate = buildDate;
}
protected boolean buildDateSpecified;
public boolean isBuildDateSpecified() {
return buildDateSpecified;
}
public void unsetBuildDate() {
buildDate = null;
buildDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar createDate;
public GregorianCalendar getCreateDate() {
return createDate;
}
public void setCreateDate(GregorianCalendar createDate) {
createDateSpecified = true;
this.createDate = createDate;
}
protected boolean createDateSpecified;
public boolean isCreateDateSpecified() {
return createDateSpecified;
}
public void unsetCreateDate() {
createDate = null;
createDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long hardwareComponentModelId;
public Long getHardwareComponentModelId() {
return hardwareComponentModelId;
}
public void setHardwareComponentModelId(Long hardwareComponentModelId) {
hardwareComponentModelIdSpecified = true;
this.hardwareComponentModelId = hardwareComponentModelId;
}
protected boolean hardwareComponentModelIdSpecified;
public boolean isHardwareComponentModelIdSpecified() {
return hardwareComponentModelIdSpecified;
}
public void unsetHardwareComponentModelId() {
hardwareComponentModelId = null;
hardwareComponentModelIdSpecified = false;
}
@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;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long isQualified;
public Long getIsQualified() {
return isQualified;
}
public void setIsQualified(Long isQualified) {
isQualifiedSpecified = true;
this.isQualified = isQualified;
}
protected boolean isQualifiedSpecified;
public boolean isIsQualifiedSpecified() {
return isQualifiedSpecified;
}
public void unsetIsQualified() {
isQualified = null;
isQualifiedSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String releaseNotes;
public String getReleaseNotes() {
return releaseNotes;
}
public void setReleaseNotes(String releaseNotes) {
releaseNotesSpecified = true;
this.releaseNotes = releaseNotes;
}
protected boolean releaseNotesSpecified;
public boolean isReleaseNotesSpecified() {
return releaseNotesSpecified;
}
public void unsetReleaseNotes() {
releaseNotes = null;
releaseNotesSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long severity;
public Long getSeverity() {
return severity;
}
public void setSeverity(Long severity) {
severitySpecified = true;
this.severity = severity;
}
protected boolean severitySpecified;
public boolean isSeveritySpecified() {
return severitySpecified;
}
public void unsetSeverity() {
severity = null;
severitySpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String version;
public String getVersion() {
return version;
}
public void setVersion(String version) {
versionSpecified = true;
this.version = version;
}
protected boolean versionSpecified;
public boolean isVersionSpecified() {
return versionSpecified;
}
public void unsetVersion() {
version = null;
versionSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long attributeCount;
public Long getAttributeCount() {
return attributeCount;
}
public void setAttributeCount(Long attributeCount) {
this.attributeCount = attributeCount;
}
/**
* A count of all revisions of this firmware.
*/
@ApiProperty
protected Long revisionCount;
public Long getRevisionCount() {
return revisionCount;
}
public void setRevisionCount(Long revisionCount) {
this.revisionCount = revisionCount;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.hardware.component.firmware.Attribute.Mask attributes() {
return withSubMask("attributes", com.softlayer.api.service.hardware.component.firmware.Attribute.Mask.class);
}
public Model.Mask hardwareComponentModel() {
return withSubMask("hardwareComponentModel", Model.Mask.class);
}
public com.softlayer.api.service.hardware.component.firmware.QualificationTypes.Mask qualificationType() {
return withSubMask("qualificationType", com.softlayer.api.service.hardware.component.firmware.QualificationTypes.Mask.class);
}
public Revision.Mask revisions() {
return withSubMask("revisions", Revision.Mask.class);
}
public Mask buildDate() {
withLocalProperty("buildDate");
return this;
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask hardwareComponentModelId() {
withLocalProperty("hardwareComponentModelId");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask isQualified() {
withLocalProperty("isQualified");
return this;
}
public Mask releaseNotes() {
withLocalProperty("releaseNotes");
return this;
}
public Mask severity() {
withLocalProperty("severity");
return this;
}
public Mask version() {
withLocalProperty("version");
return this;
}
public Mask attributeCount() {
withLocalProperty("attributeCount");
return this;
}
public Mask revisionCount() {
withLocalProperty("revisionCount");
return this;
}
}
}