Class ResourceUse
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.scale.policy.Trigger
com.softlayer.api.service.scale.policy.trigger.ResourceUse
@ApiType("SoftLayer_Scale_Policy_Trigger_ResourceUse") public class ResourceUse extends Trigger
A trigger that will only execute only when all guests on the group (both static and member) satisfy certain resource watches.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceUse.Mask
static interface
ResourceUse.Service
A trigger that will only execute only when all guests on the group (both static and member) satisfy certain resource watches.static interface
ResourceUse.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Long
watchCount
A count of the resource watches for this trigger.protected List<Watch>
watches
The resource watches for this trigger.Fields inherited from class com.softlayer.api.service.scale.policy.Trigger
createDate, createDateSpecified, deleteFlag, deleteFlagSpecified, id, idSpecified, modifyDate, modifyDateSpecified, scalePolicy, scalePolicyId, scalePolicyIdSpecified, type, typeId, typeIdSpecified
-
Constructor Summary
Constructors Constructor Description ResourceUse()
-
Method Summary
Modifier and Type Method Description ResourceUse.Service
asService(ApiClient client)
Long
getWatchCount()
List<Watch>
getWatches()
static ResourceUse.Service
service(ApiClient client)
static ResourceUse.Service
service(ApiClient client, Long id)
void
setWatchCount(Long watchCount)
Methods inherited from class com.softlayer.api.service.scale.policy.Trigger
getCreateDate, getDeleteFlag, getId, getModifyDate, getScalePolicy, getScalePolicyId, getType, getTypeId, isCreateDateSpecified, isDeleteFlagSpecified, isIdSpecified, isModifyDateSpecified, isScalePolicyIdSpecified, isTypeIdSpecified, setCreateDate, setDeleteFlag, setId, setModifyDate, setScalePolicy, setScalePolicyId, setType, setTypeId, unsetCreateDate, unsetDeleteFlag, unsetId, unsetModifyDate, unsetScalePolicyId, unsetTypeId
-
Field Details
-
watches
The resource watches for this trigger. -
watchCount
A count of the resource watches for this trigger.
-
-
Constructor Details
-
ResourceUse
public ResourceUse()
-
-
Method Details