All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.ticket.attachment.virtual.Guest Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.ticket.attachment.virtual;

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 virtual guests in a customer's inventory. Attaching virtual guests 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_Virtual_Guest data type models the relationship between a virtual guest and a ticket. Only one attachment record may exist per virtual guest per ticket. 
 *
 * @see SoftLayer_Ticket_Attachment_Virtual_Guest
 */
@ApiType("SoftLayer_Ticket_Attachment_Virtual_Guest")
public class Guest extends Attachment {

    /**
     * The virtualized guest or CloudLayer Computing Instance that is attached to a ticket.
     */
    @ApiProperty
    protected com.softlayer.api.service.virtual.Guest resource;

    public com.softlayer.api.service.virtual.Guest getResource() {
        return resource;
    }

    public void setResource(com.softlayer.api.service.virtual.Guest resource) {
        this.resource = resource;
    }

    /**
     * The virtualized guest or CloudLayer Computing Instance that is attached to a ticket.
     */
    @ApiProperty
    protected com.softlayer.api.service.virtual.Guest virtualGuest;

    public com.softlayer.api.service.virtual.Guest getVirtualGuest() {
        return virtualGuest;
    }

    public void setVirtualGuest(com.softlayer.api.service.virtual.Guest virtualGuest) {
        this.virtualGuest = virtualGuest;
    }

    /**
     * The internal identifier of the virtualized guest or CloudLayer Computing Instance that is attached to a ticket.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long virtualGuestId;

    public Long getVirtualGuestId() {
        return virtualGuestId;
    }

    public void setVirtualGuestId(Long virtualGuestId) {
        virtualGuestIdSpecified = true;
        this.virtualGuestId = virtualGuestId;
    }

    protected boolean virtualGuestIdSpecified;

    public boolean isVirtualGuestIdSpecified() {
        return virtualGuestIdSpecified;
    }

    public void unsetVirtualGuestId() {
        virtualGuestId = null;
        virtualGuestIdSpecified = false;
    }

    public static class Mask extends com.softlayer.api.service.ticket.Attachment.Mask {

        public com.softlayer.api.service.virtual.Guest.Mask resource() {
            return withSubMask("resource", com.softlayer.api.service.virtual.Guest.Mask.class);
        }

        public com.softlayer.api.service.virtual.Guest.Mask virtualGuest() {
            return withSubMask("virtualGuest", com.softlayer.api.service.virtual.Guest.Mask.class);
        }

        public Mask virtualGuestId() {
            withLocalProperty("virtualGuestId");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy