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

com.softlayer.api.service.billing.item.association.History Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.billing.item.association;

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

/**
 * The SoftLayer_Billing_Item_Association_History type keeps a record of which server billing items an "orphan" item has been associated with. Orphan billing items are billable items for secondary portable services (such as secondary subnets and StorageLayer accounts) that are not associated with a server and appear at the bottom of a SoftLayer invoice. The [[SoftLayer_Billing_Item::setAssociationId]] method allows you to associate these kinds of items with servers, making them appear as a child item of the server on your invoice. A SoftLayer_Billing_Item_Association_History record is created every time one of these associations are set. 
 *
 * @see SoftLayer_Billing_Item_Association_History
 */
@ApiType("SoftLayer_Billing_Item_Association_History")
public class History extends Entity {

    /**
     * The server billing item that an orphaned billing item was associated with.
     */
    @ApiProperty
    protected Item associatedBillingItem;

    public Item getAssociatedBillingItem() {
        return associatedBillingItem;
    }

    public void setAssociatedBillingItem(Item associatedBillingItem) {
        this.associatedBillingItem = associatedBillingItem;
    }

    /**
     * The billing item that was associated with a server billing item.
     */
    @ApiProperty
    protected Item billingItem;

    public Item getBillingItem() {
        return billingItem;
    }

    public void setBillingItem(Item billingItem) {
        this.billingItem = billingItem;
    }

    /**
     * The internal identifier of the server billing item that an orphaned billing item was associated with.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long associatedBillingItemId;

    public Long getAssociatedBillingItemId() {
        return associatedBillingItemId;
    }

    public void setAssociatedBillingItemId(Long associatedBillingItemId) {
        associatedBillingItemIdSpecified = true;
        this.associatedBillingItemId = associatedBillingItemId;
    }

    protected boolean associatedBillingItemIdSpecified;

    public boolean isAssociatedBillingItemIdSpecified() {
        return associatedBillingItemIdSpecified;
    }

    public void unsetAssociatedBillingItemId() {
        associatedBillingItemId = null;
        associatedBillingItemIdSpecified = false;
    }

    /**
     * The internal identifier of the billing item that was associated with a server billing item.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long billingItemId;

    public Long getBillingItemId() {
        return billingItemId;
    }

    public void setBillingItemId(Long billingItemId) {
        billingItemIdSpecified = true;
        this.billingItemId = billingItemId;
    }

    protected boolean billingItemIdSpecified;

    public boolean isBillingItemIdSpecified() {
        return billingItemIdSpecified;
    }

    public void unsetBillingItemId() {
        billingItemId = null;
        billingItemIdSpecified = false;
    }

    /**
     * The date that a billing item association was last changed.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar createDate;

    public GregorianCalendar getCreateDate() {
        return createDate;
    }

    public void setCreateDate(GregorianCalendar createDate) {
        createDateSpecified = true;
        this.createDate = createDate;
    }

    protected boolean createDateSpecified;

    public boolean isCreateDateSpecified() {
        return createDateSpecified;
    }

    public void unsetCreateDate() {
        createDate = null;
        createDateSpecified = false;
    }

    /**
     * A billing item association history's internal identifier.
     */
    @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;
    }

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

        public com.softlayer.api.service.billing.Item.Mask associatedBillingItem() {
            return withSubMask("associatedBillingItem", com.softlayer.api.service.billing.Item.Mask.class);
        }

        public com.softlayer.api.service.billing.Item.Mask billingItem() {
            return withSubMask("billingItem", com.softlayer.api.service.billing.Item.Mask.class);
        }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy