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

com.softlayer.api.service.provisioning.version1.Transaction Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Hardware;
import com.softlayer.api.service.provisioning.version1.transaction.Group;
import com.softlayer.api.service.provisioning.version1.transaction.Status;
import com.softlayer.api.service.ticket.Attachment;
import com.softlayer.api.service.virtual.Guest;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;

/**
 * The SoftLayer_Provisioning_Version1_Transaction data type contains general information relating to a single SoftLayer hardware transaction. 
*
* SoftLayer customers are unable to change their hardware transactions. * * @see SoftLayer_Provisioning_Version1_Transaction */ @ApiType("SoftLayer_Provisioning_Version1_Transaction") public class Transaction extends Entity { /** * The account that a transaction belongs to. */ @ApiProperty protected Account account; public Account getAccount() { return account; } public void setAccount(Account account) { this.account = account; } /** * The guest record for this transaction. */ @ApiProperty protected Guest guest; public Guest getGuest() { return guest; } public void setGuest(Guest guest) { this.guest = guest; } /** * The hardware object for this transaction. */ @ApiProperty protected Hardware hardware; public Hardware getHardware() { return hardware; } public void setHardware(Hardware hardware) { this.hardware = hardware; } @ApiProperty protected List loopback; public List getLoopback() { if (loopback == null) { loopback = new ArrayList(); } return loopback; } @ApiProperty protected List pendingTransactions; public List getPendingTransactions() { if (pendingTransactions == null) { pendingTransactions = new ArrayList(); } return pendingTransactions; } @ApiProperty protected List ticketScheduledActionReference; public List getTicketScheduledActionReference() { if (ticketScheduledActionReference == null) { ticketScheduledActionReference = new ArrayList(); } return ticketScheduledActionReference; } /** * A transaction's group. This group object determines what type of service is being done on the hardware. */ @ApiProperty protected Group transactionGroup; public Group getTransactionGroup() { return transactionGroup; } public void setTransactionGroup(Group transactionGroup) { this.transactionGroup = transactionGroup; } /** * A transaction's status. This status object determines the state it is in the transaction group. */ @ApiProperty protected Status transactionStatus; public Status getTransactionStatus() { return transactionStatus; } public void setTransactionStatus(Status transactionStatus) { this.transactionStatus = transactionStatus; } /** * The date a transaction was created. */ @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; } /** * The amount of seconds that have elapsed since the transaction was last modified. */ @ApiProperty(canBeNullOrNotSet = true) protected Long elapsedSeconds; public Long getElapsedSeconds() { return elapsedSeconds; } public void setElapsedSeconds(Long elapsedSeconds) { elapsedSecondsSpecified = true; this.elapsedSeconds = elapsedSeconds; } protected boolean elapsedSecondsSpecified; public boolean isElapsedSecondsSpecified() { return elapsedSecondsSpecified; } public void unsetElapsedSeconds() { elapsedSeconds = null; elapsedSecondsSpecified = false; } /** * A transaction's associated guest identification number. */ @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; } /** * A transaction's associated hardware identification number. */ @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; } /** * A transaction's identifying number. */ @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 date a transaction was last modified. */ @ApiProperty(canBeNullOrNotSet = true) protected GregorianCalendar modifyDate; public GregorianCalendar getModifyDate() { return modifyDate; } public void setModifyDate(GregorianCalendar modifyDate) { modifyDateSpecified = true; this.modifyDate = modifyDate; } protected boolean modifyDateSpecified; public boolean isModifyDateSpecified() { return modifyDateSpecified; } public void unsetModifyDate() { modifyDate = null; modifyDateSpecified = false; } /** * The date the transaction status was last modified. */ @ApiProperty(canBeNullOrNotSet = true) protected GregorianCalendar statusChangeDate; public GregorianCalendar getStatusChangeDate() { return statusChangeDate; } public void setStatusChangeDate(GregorianCalendar statusChangeDate) { statusChangeDateSpecified = true; this.statusChangeDate = statusChangeDate; } protected boolean statusChangeDateSpecified; public boolean isStatusChangeDateSpecified() { return statusChangeDateSpecified; } public void unsetStatusChangeDate() { statusChangeDate = null; statusChangeDateSpecified = false; } /** * A count of */ @ApiProperty protected Long loopbackCount; public Long getLoopbackCount() { return loopbackCount; } public void setLoopbackCount(Long loopbackCount) { this.loopbackCount = loopbackCount; } /** * A count of */ @ApiProperty protected Long pendingTransactionCount; public Long getPendingTransactionCount() { return pendingTransactionCount; } public void setPendingTransactionCount(Long pendingTransactionCount) { this.pendingTransactionCount = pendingTransactionCount; } /** * A count of */ @ApiProperty protected Long ticketScheduledActionReferenceCount; public Long getTicketScheduledActionReferenceCount() { return ticketScheduledActionReferenceCount; } public void setTicketScheduledActionReferenceCount(Long ticketScheduledActionReferenceCount) { this.ticketScheduledActionReferenceCount = ticketScheduledActionReferenceCount; } public static class Mask extends com.softlayer.api.service.Entity.Mask { public com.softlayer.api.service.Account.Mask account() { return withSubMask("account", com.softlayer.api.service.Account.Mask.class); } 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 Transaction.Mask loopback() { return withSubMask("loopback", Transaction.Mask.class); } public Transaction.Mask pendingTransactions() { return withSubMask("pendingTransactions", Transaction.Mask.class); } public com.softlayer.api.service.ticket.Attachment.Mask ticketScheduledActionReference() { return withSubMask("ticketScheduledActionReference", com.softlayer.api.service.ticket.Attachment.Mask.class); } public com.softlayer.api.service.provisioning.version1.transaction.Group.Mask transactionGroup() { return withSubMask("transactionGroup", com.softlayer.api.service.provisioning.version1.transaction.Group.Mask.class); } public com.softlayer.api.service.provisioning.version1.transaction.Status.Mask transactionStatus() { return withSubMask("transactionStatus", com.softlayer.api.service.provisioning.version1.transaction.Status.Mask.class); } public Mask createDate() { withLocalProperty("createDate"); return this; } public Mask elapsedSeconds() { withLocalProperty("elapsedSeconds"); return this; } public Mask guestId() { withLocalProperty("guestId"); return this; } public Mask hardwareId() { withLocalProperty("hardwareId"); return this; } public Mask id() { withLocalProperty("id"); return this; } public Mask modifyDate() { withLocalProperty("modifyDate"); return this; } public Mask statusChangeDate() { withLocalProperty("statusChangeDate"); return this; } public Mask loopbackCount() { withLocalProperty("loopbackCount"); return this; } public Mask pendingTransactionCount() { withLocalProperty("pendingTransactionCount"); return this; } public Mask ticketScheduledActionReferenceCount() { withLocalProperty("ticketScheduledActionReferenceCount"); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy