Class Event
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.sales.presale.Event
-
@ApiType("SoftLayer_Sales_Presale_Event") public class Event extends Entity
The presale event data types indicate the information regarding an individual presale event. The '''locationId''' will indicate the datacenter associated with the presale event. The '''itemId''' will indicate the product item associated with a particular presale event - however these are more rare. The '''startDate''' and '''endDate''' will provide information regarding when the presale event is available for use. At the end of the presale event, the server or services purchased will be available once approved and provisioned.- See Also:
- SoftLayer_Sales_Presale_Event
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Event.Mask
static interface
Event.Service
Presale events are related to datacenters or products that are not yet currently available, but will be in the near future.static interface
Event.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Boolean
activeFlag
A flag to indicate that the presale event is currently active.protected String
description
Description of the presale event.protected boolean
descriptionSpecified
protected GregorianCalendar
endDate
End date of the presale event.protected boolean
endDateSpecified
protected Boolean
expiredFlag
A flag to indicate that the presale event is expired.protected Long
id
Presale event unique identifier.protected boolean
idSpecified
protected Item
item
The [[SoftLayer_Product_Item]] associated with the presale event.protected Long
itemId
[[SoftLayer_Product_Item]] id associated with the presale event.protected boolean
itemIdSpecified
protected Location
location
The [[SoftLayer_Location]] associated with the presale event.protected Long
locationId
[[SoftLayer_Location]] id for the presale event.protected boolean
locationIdSpecified
protected Long
orderCount
A count of the orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.protected List<Order>
orders
The orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.protected GregorianCalendar
startDate
Start date of the presale event.protected boolean
startDateSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
activeFlag
@ApiProperty protected Boolean activeFlag
A flag to indicate that the presale event is currently active. A presale event is active if the current time is between the start and end dates.
-
expiredFlag
@ApiProperty protected Boolean expiredFlag
A flag to indicate that the presale event is expired. A presale event is expired if the current time is after the end date.
-
item
@ApiProperty protected Item item
The [[SoftLayer_Product_Item]] associated with the presale event.
-
location
@ApiProperty protected Location location
The [[SoftLayer_Location]] associated with the presale event.
-
orders
@ApiProperty protected List<Order> orders
The orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.
-
description
@ApiProperty(canBeNullOrNotSet=true) protected String description
Description of the presale event.
-
descriptionSpecified
protected boolean descriptionSpecified
-
endDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar endDate
End date of the presale event. Orders can be approved and provisioned after this date.
-
endDateSpecified
protected boolean endDateSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
Presale event unique identifier.
-
idSpecified
protected boolean idSpecified
-
itemId
@ApiProperty(canBeNullOrNotSet=true) protected Long itemId
[[SoftLayer_Product_Item]] id associated with the presale event.
-
itemIdSpecified
protected boolean itemIdSpecified
-
locationId
@ApiProperty(canBeNullOrNotSet=true) protected Long locationId
[[SoftLayer_Location]] id for the presale event.
-
locationIdSpecified
protected boolean locationIdSpecified
-
startDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar startDate
Start date of the presale event. Orders cannot be approved before this date.
-
startDateSpecified
protected boolean startDateSpecified
-
orderCount
@ApiProperty protected Long orderCount
A count of the orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.
-
-
Method Detail
-
getActiveFlag
public Boolean getActiveFlag()
-
setActiveFlag
public void setActiveFlag(Boolean activeFlag)
-
getExpiredFlag
public Boolean getExpiredFlag()
-
setExpiredFlag
public void setExpiredFlag(Boolean expiredFlag)
-
getItem
public Item getItem()
-
setItem
public void setItem(Item item)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isDescriptionSpecified
public boolean isDescriptionSpecified()
-
unsetDescription
public void unsetDescription()
-
getEndDate
public GregorianCalendar getEndDate()
-
setEndDate
public void setEndDate(GregorianCalendar endDate)
-
isEndDateSpecified
public boolean isEndDateSpecified()
-
unsetEndDate
public void unsetEndDate()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getItemId
public Long getItemId()
-
setItemId
public void setItemId(Long itemId)
-
isItemIdSpecified
public boolean isItemIdSpecified()
-
unsetItemId
public void unsetItemId()
-
getLocationId
public Long getLocationId()
-
setLocationId
public void setLocationId(Long locationId)
-
isLocationIdSpecified
public boolean isLocationIdSpecified()
-
unsetLocationId
public void unsetLocationId()
-
getStartDate
public GregorianCalendar getStartDate()
-
setStartDate
public void setStartDate(GregorianCalendar startDate)
-
isStartDateSpecified
public boolean isStartDateSpecified()
-
unsetStartDate
public void unsetStartDate()
-
getOrderCount
public Long getOrderCount()
-
setOrderCount
public void setOrderCount(Long orderCount)
-
asService
public Event.Service asService(ApiClient client)
-
service
public static Event.Service service(ApiClient client)
-
service
public static Event.Service service(ApiClient client, Long id)
-
-