Interface Promotion.Service
-
- All Superinterfaces:
Maskable
,ResultLimitable
,Service
- Enclosing class:
- Promotion
@ApiService("SoftLayer_Product_Promotion") public static interface Promotion.Service extends Service
The promotion web service is used to find information regarding a specific promotion using a promotion code.- See Also:
- SoftLayer_Product_Promotion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Promotion.ServiceAsync
asAsync()
Get an async version of this servicePromotion
findByPromoCode(String code)
Retrieves a promotion using its code.Promotion
getObject()
void
setMask(Promotion.Mask mask)
Promotion.Mask
withMask()
Use the existing mask on this service or create it if not presentPromotion.Mask
withNewMask()
Overwrite the existing mask on this service with a new one and return it-
Methods inherited from interface com.softlayer.api.ResultLimitable
getLastResponseTotalItemCount, getResultLimit, setResultLimit
-
-
-
-
Method Detail
-
asAsync
Promotion.ServiceAsync asAsync()
Description copied from interface:Service
Get an async version of this service
-
withNewMask
Promotion.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
Promotion.Mask withMask()
Description copied from interface:Maskable
Use the existing mask on this service or create it if not present
-
setMask
void setMask(Promotion.Mask mask)
-
findByPromoCode
@ApiMethod Promotion findByPromoCode(String code)
Retrieves a promotion using its code.
-
getObject
@ApiMethod(instanceRequired=true) Promotion getObject()
- See Also:
- SoftLayer_Product_Promotion::getObject
-
-