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
-
-
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
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
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
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
watches
@ApiProperty protected List<Watch> watches
The resource watches for this trigger.
-
watchCount
@ApiProperty protected Long watchCount
A count of the resource watches for this trigger.
-
-
Method Detail
-
getWatchCount
public Long getWatchCount()
-
setWatchCount
public void setWatchCount(Long watchCount)
-
asService
public ResourceUse.Service asService(ApiClient client)
-
service
public static ResourceUse.Service service(ApiClient client)
-
service
public static ResourceUse.Service service(ApiClient client, Long id)
-
-