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

com.softlayer.api.service.provisioning.version1.transaction.History Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Hardware;
import com.softlayer.api.service.provisioning.version1.Transaction;
import com.softlayer.api.service.provisioning.version1.transaction.Status;
import com.softlayer.api.service.virtual.Guest;
import java.util.GregorianCalendar;

/**
 * @see SoftLayer_Provisioning_Version1_Transaction_History
 */
@ApiType("SoftLayer_Provisioning_Version1_Transaction_History")
public class History extends Entity {

    /**
     * The guest from where transaction history originates.
     */
    @ApiProperty
    protected Guest guest;

    public Guest getGuest() {
        return guest;
    }

    public void setGuest(Guest guest) {
        this.guest = guest;
    }

    /**
     * The hardware from where transaction history originates.
     */
    @ApiProperty
    protected Hardware hardware;

    public Hardware getHardware() {
        return hardware;
    }

    public void setHardware(Hardware hardware) {
        this.hardware = hardware;
    }

    /**
     * The transaction from where transaction history originates.
     */
    @ApiProperty
    protected Transaction transaction;

    public Transaction getTransaction() {
        return transaction;
    }

    public void setTransaction(Transaction transaction) {
        this.transaction = transaction;
    }

    /**
     * The transaction status of a transaction history.
     */
    @ApiProperty
    protected Status transactionStatus;

    public Status getTransactionStatus() {
        return transactionStatus;
    }

    public void setTransactionStatus(Status transactionStatus) {
        this.transactionStatus = transactionStatus;
    }

    /**
     * The finish date of a transaction history record.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar finishDate;

    public GregorianCalendar getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(GregorianCalendar finishDate) {
        finishDateSpecified = true;
        this.finishDate = finishDate;
    }

    protected boolean finishDateSpecified;

    public boolean isFinishDateSpecified() {
        return finishDateSpecified;
    }

    public void unsetFinishDate() {
        finishDate = null;
        finishDateSpecified = false;
    }

    /**
     * The guest ID associated with a transaction history.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long guestId;

    public Long getGuestId() {
        return guestId;
    }

    public void setGuestId(Long guestId) {
        guestIdSpecified = true;
        this.guestId = guestId;
    }

    protected boolean guestIdSpecified;

    public boolean isGuestIdSpecified() {
        return guestIdSpecified;
    }

    public void unsetGuestId() {
        guestId = null;
        guestIdSpecified = false;
    }

    /**
     * The hardware ID associated with a transaction history.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareId;

    public Long getHardwareId() {
        return hardwareId;
    }

    public void setHardwareId(Long hardwareId) {
        hardwareIdSpecified = true;
        this.hardwareId = hardwareId;
    }

    protected boolean hardwareIdSpecified;

    public boolean isHardwareIdSpecified() {
        return hardwareIdSpecified;
    }

    public void unsetHardwareId() {
        hardwareId = null;
        hardwareIdSpecified = false;
    }

    /**
     * The host ID associated with a transaction history.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hostId;

    public Long getHostId() {
        return hostId;
    }

    public void setHostId(Long hostId) {
        hostIdSpecified = true;
        this.hostId = hostId;
    }

    protected boolean hostIdSpecified;

    public boolean isHostIdSpecified() {
        return hostIdSpecified;
    }

    public void unsetHostId() {
        hostId = null;
        hostIdSpecified = false;
    }

    /**
     * The ID associated with a transaction history.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * The start date of a transaction history record.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar startDate;

    public GregorianCalendar getStartDate() {
        return startDate;
    }

    public void setStartDate(GregorianCalendar startDate) {
        startDateSpecified = true;
        this.startDate = startDate;
    }

    protected boolean startDateSpecified;

    public boolean isStartDateSpecified() {
        return startDateSpecified;
    }

    public void unsetStartDate() {
        startDate = null;
        startDateSpecified = false;
    }

    /**
     * The transaction ID associated with a transaction history.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long transactionId;

    public Long getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(Long transactionId) {
        transactionIdSpecified = true;
        this.transactionId = transactionId;
    }

    protected boolean transactionIdSpecified;

    public boolean isTransactionIdSpecified() {
        return transactionIdSpecified;
    }

    public void unsetTransactionId() {
        transactionId = null;
        transactionIdSpecified = false;
    }

    /**
     * The transaction status ID associated with a transaction history.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long transactionStatusId;

    public Long getTransactionStatusId() {
        return transactionStatusId;
    }

    public void setTransactionStatusId(Long transactionStatusId) {
        transactionStatusIdSpecified = true;
        this.transactionStatusId = transactionStatusId;
    }

    protected boolean transactionStatusIdSpecified;

    public boolean isTransactionStatusIdSpecified() {
        return transactionStatusIdSpecified;
    }

    public void unsetTransactionStatusId() {
        transactionStatusId = null;
        transactionStatusIdSpecified = false;
    }

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

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

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

        public com.softlayer.api.service.provisioning.version1.Transaction.Mask transaction() {
            return withSubMask("transaction", com.softlayer.api.service.provisioning.version1.Transaction.Mask.class);
        }

        public Status.Mask transactionStatus() {
            return withSubMask("transactionStatus", Status.Mask.class);
        }

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

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy