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

com.softlayer.api.service.provisioning.maintenance.Ticket Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.provisioning.maintenance;

import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.provisioning.maintenance.Classification;
import com.softlayer.api.service.provisioning.maintenance.Slots;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_Provisioning_Maintenance_Ticket
 */
@ApiType("SoftLayer_Provisioning_Maintenance_Ticket")
public class Ticket extends Entity {

    @ApiProperty
    protected Slots availableSlots;

    public Slots getAvailableSlots() {
        return availableSlots;
    }

    public void setAvailableSlots(Slots availableSlots) {
        this.availableSlots = availableSlots;
    }

    @ApiProperty
    protected Classification maintenanceClass;

    public Classification getMaintenanceClass() {
        return maintenanceClass;
    }

    public void setMaintenanceClass(Classification maintenanceClass) {
        this.maintenanceClass = maintenanceClass;
    }

    @ApiProperty
    protected com.softlayer.api.service.Ticket ticket;

    public com.softlayer.api.service.Ticket getTicket() {
        return ticket;
    }

    public void setTicket(com.softlayer.api.service.Ticket ticket) {
        this.ticket = ticket;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long maintClassId;

    public Long getMaintClassId() {
        return maintClassId;
    }

    public void setMaintClassId(Long maintClassId) {
        maintClassIdSpecified = true;
        this.maintClassId = maintClassId;
    }

    protected boolean maintClassIdSpecified;

    public boolean isMaintClassIdSpecified() {
        return maintClassIdSpecified;
    }

    public void unsetMaintClassId() {
        maintClassId = null;
        maintClassIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long maintWindowId;

    public Long getMaintWindowId() {
        return maintWindowId;
    }

    public void setMaintWindowId(Long maintWindowId) {
        maintWindowIdSpecified = true;
        this.maintWindowId = maintWindowId;
    }

    protected boolean maintWindowIdSpecified;

    public boolean isMaintWindowIdSpecified() {
        return maintWindowIdSpecified;
    }

    public void unsetMaintWindowId() {
        maintWindowId = null;
        maintWindowIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar maintenanceDate;

    public GregorianCalendar getMaintenanceDate() {
        return maintenanceDate;
    }

    public void setMaintenanceDate(GregorianCalendar maintenanceDate) {
        maintenanceDateSpecified = true;
        this.maintenanceDate = maintenanceDate;
    }

    protected boolean maintenanceDateSpecified;

    public boolean isMaintenanceDateSpecified() {
        return maintenanceDateSpecified;
    }

    public void unsetMaintenanceDate() {
        maintenanceDate = null;
        maintenanceDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long ticketId;

    public Long getTicketId() {
        return ticketId;
    }

    public void setTicketId(Long ticketId) {
        ticketIdSpecified = true;
        this.ticketId = ticketId;
    }

    protected boolean ticketIdSpecified;

    public boolean isTicketIdSpecified() {
        return ticketIdSpecified;
    }

    public void unsetTicketId() {
        ticketId = null;
        ticketIdSpecified = false;
    }

    public static Service service(ApiClient client) {
        return client.createService(Service.class, null);
    }

    /**
     * @see SoftLayer_Provisioning_Maintenance_Ticket
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Provisioning_Maintenance_Ticket")
    public static interface Service extends com.softlayer.api.Service {

        public ServiceAsync asAsync();
        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * @see SoftLayer_Provisioning_Maintenance_Ticket::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Ticket getObject();

        /**
         * @see SoftLayer_Provisioning_Maintenance_Ticket::getAvailableSlots
         */
        @ApiMethod(instanceRequired = true)
        public Slots getAvailableSlots();

        /**
         * @see SoftLayer_Provisioning_Maintenance_Ticket::getMaintenanceClass
         */
        @ApiMethod(instanceRequired = true)
        public Classification getMaintenanceClass();

        /**
         * @see SoftLayer_Provisioning_Maintenance_Ticket::getTicket
         */
        @ApiMethod(instanceRequired = true)
        public com.softlayer.api.service.Ticket getTicket();

    }

    public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {

        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * Async version of {@link Service#getObject}
         */
        public Future getObject();

        public Future getObject(ResponseHandler callback);

        /**
         * Async version of {@link Service#getAvailableSlots}
         */
        public Future getAvailableSlots();

        /**
         * Async callback version of {@link Service#getAvailableSlots}
         */
        public Future getAvailableSlots(ResponseHandler callback);

        /**
         * Async version of {@link Service#getMaintenanceClass}
         */
        public Future getMaintenanceClass();

        /**
         * Async callback version of {@link Service#getMaintenanceClass}
         */
        public Future getMaintenanceClass(ResponseHandler callback);

        /**
         * Async version of {@link Service#getTicket}
         */
        public Future getTicket();

        /**
         * Async callback version of {@link Service#getTicket}
         */
        public Future getTicket(ResponseHandler callback);

    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public Slots.Mask availableSlots() {
            return withSubMask("availableSlots", Slots.Mask.class);
        }

        public Classification.Mask maintenanceClass() {
            return withSubMask("maintenanceClass", Classification.Mask.class);
        }

        public com.softlayer.api.service.Ticket.Mask ticket() {
            return withSubMask("ticket", com.softlayer.api.service.Ticket.Mask.class);
        }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy