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

com.softlayer.api.service.container.provisioning.maintenance.Window Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.product.item.Category;
import com.softlayer.api.service.provisioning.maintenance.Classification;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;

/**
 * This is the datatype that needs to be populated and sent to SoftLayer_Provisioning_Maintenance_Window::addCustomerUpgradeWindow. This datatype has everything required to place an order with SoftLayer. 
 *
 * @see SoftLayer_Container_Provisioning_Maintenance_Window
 */
@ApiType("SoftLayer_Container_Provisioning_Maintenance_Window")
public class Window extends Entity {

    /**
     * Maintenance classifications.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected List classificationIds;

    public List getClassificationIds() {
        if (classificationIds == null) {
            classificationIds = new ArrayList();
        }
        return classificationIds;
    }

    protected boolean classificationIdsSpecified;

    public boolean isClassificationIdsSpecified() {
        return classificationIdsSpecified;
    }

    public void unsetClassificationIds() {
        classificationIds = null;
        classificationIdsSpecified = false;
    }

    /**
     * Maintenance classifications.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected List itemCategoryIds;

    public List getItemCategoryIds() {
        if (itemCategoryIds == null) {
            itemCategoryIds = new ArrayList();
        }
        return itemCategoryIds;
    }

    protected boolean itemCategoryIdsSpecified;

    public boolean isItemCategoryIdsSpecified() {
        return itemCategoryIdsSpecified;
    }

    public void unsetItemCategoryIds() {
        itemCategoryIds = null;
        itemCategoryIdsSpecified = false;
    }

    /**
     * The maintenance window id
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long maintenanceWindowId;

    public Long getMaintenanceWindowId() {
        return maintenanceWindowId;
    }

    public void setMaintenanceWindowId(Long maintenanceWindowId) {
        maintenanceWindowIdSpecified = true;
        this.maintenanceWindowId = maintenanceWindowId;
    }

    protected boolean maintenanceWindowIdSpecified;

    public boolean isMaintenanceWindowIdSpecified() {
        return maintenanceWindowIdSpecified;
    }

    public void unsetMaintenanceWindowId() {
        maintenanceWindowId = null;
        maintenanceWindowIdSpecified = false;
    }

    /**
     * Maintenance window ticket id
     */
    @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;
    }

    /**
     * Maintenance window date
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar windowMaintenanceDate;

    public GregorianCalendar getWindowMaintenanceDate() {
        return windowMaintenanceDate;
    }

    public void setWindowMaintenanceDate(GregorianCalendar windowMaintenanceDate) {
        windowMaintenanceDateSpecified = true;
        this.windowMaintenanceDate = windowMaintenanceDate;
    }

    protected boolean windowMaintenanceDateSpecified;

    public boolean isWindowMaintenanceDateSpecified() {
        return windowMaintenanceDateSpecified;
    }

    public void unsetWindowMaintenanceDate() {
        windowMaintenanceDate = null;
        windowMaintenanceDateSpecified = false;
    }

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

        public com.softlayer.api.service.provisioning.maintenance.Classification.Mask classificationIds() {
            return withSubMask("classificationIds", com.softlayer.api.service.provisioning.maintenance.Classification.Mask.class);
        }

        public com.softlayer.api.service.product.item.Category.Mask itemCategoryIds() {
            return withSubMask("itemCategoryIds", com.softlayer.api.service.product.item.Category.Mask.class);
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy