com.softlayer.api.service.ticket.attachment.dedicated.Host 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.dedicated;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.ticket.Attachment;
import com.softlayer.api.service.virtual.DedicatedHost;
/**
* SoftLayer tickets have the ability to be associated with specific dedicated hosts in a customer's inventory. Attaching a dedicated host to a ticket can greatly increase response time from SoftLayer for issues that are related to one or more specific hosts on a customer's account. The SoftLayer_Ticket_Attachment_Dedicated_Host data type models the relationship between a dedicated host and a ticket. Only one attachment record can exist per dedicated host item per ticket.
*
* @see SoftLayer_Ticket_Attachment_Dedicated_Host
*/
@ApiType("SoftLayer_Ticket_Attachment_Dedicated_Host")
public class Host extends Attachment {
/**
* The dedicated dost that is attached to a ticket.
*/
@ApiProperty
protected DedicatedHost dedicatedHost;
public DedicatedHost getDedicatedHost() {
return dedicatedHost;
}
public void setDedicatedHost(DedicatedHost dedicatedHost) {
this.dedicatedHost = dedicatedHost;
}
/**
* The Dedicated Host that is attached to a ticket.
*/
@ApiProperty
protected DedicatedHost resource;
public DedicatedHost getResource() {
return resource;
}
public void setResource(DedicatedHost resource) {
this.resource = resource;
}
/**
* The internal identifier of the Dedicated Host that is attached to a ticket.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long dedicatedHostId;
public Long getDedicatedHostId() {
return dedicatedHostId;
}
public void setDedicatedHostId(Long dedicatedHostId) {
dedicatedHostIdSpecified = true;
this.dedicatedHostId = dedicatedHostId;
}
protected boolean dedicatedHostIdSpecified;
public boolean isDedicatedHostIdSpecified() {
return dedicatedHostIdSpecified;
}
public void unsetDedicatedHostId() {
dedicatedHostId = null;
dedicatedHostIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.ticket.Attachment.Mask {
public com.softlayer.api.service.virtual.DedicatedHost.Mask dedicatedHost() {
return withSubMask("dedicatedHost", com.softlayer.api.service.virtual.DedicatedHost.Mask.class);
}
public com.softlayer.api.service.virtual.DedicatedHost.Mask resource() {
return withSubMask("resource", com.softlayer.api.service.virtual.DedicatedHost.Mask.class);
}
public Mask dedicatedHostId() {
withLocalProperty("dedicatedHostId");
return this;
}
}
}