com.softlayer.api.service.ticket.attachment.Hardware 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.ticket.attachment;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.ticket.Attachment;
/**
* SoftLayer tickets have the ability to be associated with specific pieces of hardware in a customer's inventory. Attaching hardware to a ticket can greatly increase response time from SoftLayer for issues that are related to one or more specific servers on a customer's account. The SoftLayer_Ticket_Attachment_Hardware data type models the relationship between a piece of hardware and a ticket. Only one attachment record may exist per hardware item per ticket.
*
* @see SoftLayer_Ticket_Attachment_Hardware
*/
@ApiType("SoftLayer_Ticket_Attachment_Hardware")
public class Hardware extends Attachment {
/**
* The hardware that is attached to a ticket.
*/
@ApiProperty
protected com.softlayer.api.service.Hardware hardware;
public com.softlayer.api.service.Hardware getHardware() {
return hardware;
}
public void setHardware(com.softlayer.api.service.Hardware hardware) {
this.hardware = hardware;
}
/**
* The hardware that is attached to a ticket.
*/
@ApiProperty
protected com.softlayer.api.service.Hardware resource;
public com.softlayer.api.service.Hardware getResource() {
return resource;
}
public void setResource(com.softlayer.api.service.Hardware resource) {
this.resource = resource;
}
/**
* The internal identifier of a piece of hardware that is attached to a ticket.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long hardwareId;
public Long getHardwareId() {
return hardwareId;
}
public void setHardwareId(Long hardwareId) {
hardwareIdSpecified = true;
this.hardwareId = hardwareId;
}
protected boolean hardwareIdSpecified;
public boolean isHardwareIdSpecified() {
return hardwareIdSpecified;
}
public void unsetHardwareId() {
hardwareId = null;
hardwareIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.ticket.Attachment.Mask {
public com.softlayer.api.service.Hardware.Mask hardware() {
return withSubMask("hardware", com.softlayer.api.service.Hardware.Mask.class);
}
public com.softlayer.api.service.Hardware.Mask resource() {
return withSubMask("resource", com.softlayer.api.service.Hardware.Mask.class);
}
public Mask hardwareId() {
withLocalProperty("hardwareId");
return this;
}
}
}