Interface Event.Service
- All Superinterfaces:
Maskable
,ResultLimitable
,Service
- Enclosing class:
- Event
@ApiService("SoftLayer_Sales_Presale_Event") public static interface Event.Service extends Service
Presale events are related to datacenters or products that are not yet currently available, but will be in the near future. For example, if a new datacenter is opening in a month, a presale event may be created that allows customers to purchase server space in advance. When a presale order is placed, the server configuration is saved, but not provisioned until the presale end date - the server will not be available during this waiting period. Also, when a presale order is placed, the customer is not charged up front, but only when the presale order is actually approved and provisioned on the presale end date.
This server allows customer to view the currently-active presale events and their date ranges. This may allow a customer to plan early for purchasing a new product or server in a new datacenter.
This server allows customer to view the currently-active presale events and their date ranges. This may allow a customer to plan early for purchasing a new product or server in a new datacenter.
- See Also:
- SoftLayer_Sales_Presale_Event
-
Method Summary
Modifier and Type Method Description Event.ServiceAsync
asAsync()
Get an async version of this serviceBoolean
getActiveFlag()
A flag to indicate that the presale event is currently active.List<Event>
getAllObjects()
Boolean
getExpiredFlag()
A flag to indicate that the presale event is expired.Item
getItem()
The [[SoftLayer_Product_Item]] associated with the presale event.Location
getLocation()
The [[SoftLayer_Location]] associated with the presale event.Event
getObject()
'''getObject''' retrieves the [[SoftLayer_Sales_Presale_Event]] object whose id number corresponds to the id number of the init parameter passed to the SoftLayer_Sales_Presale_Event service.List<Order>
getOrders()
The orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.void
setMask(Event.Mask mask)
Event.Mask
withMask()
Use the existing mask on this service or create it if not presentEvent.Mask
withNewMask()
Overwrite the existing mask on this service with a new one and return itMethods inherited from interface com.softlayer.api.ResultLimitable
getLastResponseTotalItemCount, getResultLimit, setResultLimit
-
Method Details
-
asAsync
Event.ServiceAsync asAsync()Description copied from interface:Service
Get an async version of this service -
withNewMask
Event.Mask withNewMask()Description copied from interface:Maskable
Overwrite the existing mask on this service with a new one and return it- Specified by:
withNewMask
in interfaceMaskable
-
withMask
Event.Mask withMask()Description copied from interface:Maskable
Use the existing mask on this service or create it if not present -
setMask
-
getAllObjects
-
getObject
'''getObject''' retrieves the [[SoftLayer_Sales_Presale_Event]] object whose id number corresponds to the id number of the init parameter passed to the SoftLayer_Sales_Presale_Event service. Customers may only retrieve presale events that are currently active.- See Also:
- SoftLayer_Sales_Presale_Event::getObject
-
getActiveFlag
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. -
getExpiredFlag
A flag to indicate that the presale event is expired. A presale event is expired if the current time is after the end date. -
getItem
The [[SoftLayer_Product_Item]] associated with the presale event.- See Also:
- SoftLayer_Sales_Presale_Event::getItem
-
getLocation
The [[SoftLayer_Location]] associated with the presale event. -
getOrders
The orders ([[SoftLayer_Billing_Order]]) associated with this presale event that were created for the customer's account.- See Also:
- SoftLayer_Sales_Presale_Event::getOrders
-