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

com.softlayer.api.service.container.virtual.guest.PendingMaintenanceAction Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Ticket;
import java.util.GregorianCalendar;

/**
 * The SoftLayer_Container_Virtual_Guest_PendingMaintenanceAction data type contains information relating to a SoftLayer_Virtual_Guest's pending maintenance actions. 
 *
 * @see SoftLayer_Container_Virtual_Guest_PendingMaintenanceAction
 */
@ApiType("SoftLayer_Container_Virtual_Guest_PendingMaintenanceAction")
public class PendingMaintenanceAction extends Entity {

    /**
     * The ID of the associated action. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long actionId;

    public Long getActionId() {
        return actionId;
    }

    public void setActionId(Long actionId) {
        actionIdSpecified = true;
        this.actionId = actionId;
    }

    protected boolean actionIdSpecified;

    public boolean isActionIdSpecified() {
        return actionIdSpecified;
    }

    public void unsetActionId() {
        actionId = null;
        actionIdSpecified = false;
    }

    /**
     * The datetime at which this action will be initiated regardless of customer action (if it has not already been completed). 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar dueDate;

    public GregorianCalendar getDueDate() {
        return dueDate;
    }

    public void setDueDate(GregorianCalendar dueDate) {
        dueDateSpecified = true;
        this.dueDate = dueDate;
    }

    protected boolean dueDateSpecified;

    public boolean isDueDateSpecified() {
        return dueDateSpecified;
    }

    public void unsetDueDate() {
        dueDate = null;
        dueDateSpecified = false;
    }

    /**
     * User-friendly status. 
*
* The Completed status means that it is done, no further action is required. The Scheduled status means that the action is pending and will start on the dueDate if no customer action is taken before such time. The In Progress status means the action is currently being executed. */ @ApiProperty(canBeNullOrNotSet = true) protected String status; public String getStatus() { return status; } public void setStatus(String status) { statusSpecified = true; this.status = status; } protected boolean statusSpecified; public boolean isStatusSpecified() { return statusSpecified; } public void unsetStatus() { status = null; statusSpecified = false; } /** * The ticket associated with this maintenance action. */ @ApiProperty(canBeNullOrNotSet = true) protected Ticket ticket; public Ticket getTicket() { return ticket; } public void setTicket(Ticket ticket) { ticketSpecified = true; this.ticket = ticket; } protected boolean ticketSpecified; public boolean isTicketSpecified() { return ticketSpecified; } public void unsetTicket() { ticket = null; ticketSpecified = false; } /** * The Title for the associated action. */ @ApiProperty(canBeNullOrNotSet = true) protected String title; public String getTitle() { return title; } public void setTitle(String title) { titleSpecified = true; this.title = title; } protected boolean titleSpecified; public boolean isTitleSpecified() { return titleSpecified; } public void unsetTitle() { title = null; titleSpecified = false; } /** * The Trigger Explanation for the associated action. */ @ApiProperty(canBeNullOrNotSet = true) protected String triggerExplanation; public String getTriggerExplanation() { return triggerExplanation; } public void setTriggerExplanation(String triggerExplanation) { triggerExplanationSpecified = true; this.triggerExplanation = triggerExplanation; } protected boolean triggerExplanationSpecified; public boolean isTriggerExplanationSpecified() { return triggerExplanationSpecified; } public void unsetTriggerExplanation() { triggerExplanation = null; triggerExplanationSpecified = false; } public static class Mask extends com.softlayer.api.service.Entity.Mask { public Mask actionId() { withLocalProperty("actionId"); return this; } public Mask dueDate() { withLocalProperty("dueDate"); return this; } public Mask status() { withLocalProperty("status"); return this; } public com.softlayer.api.service.Ticket.Mask ticket() { return withSubMask("ticket", com.softlayer.api.service.Ticket.Mask.class); } public Mask title() { withLocalProperty("title"); return this; } public Mask triggerExplanation() { withLocalProperty("triggerExplanation"); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy