Package com.softlayer.api.service.scale
Class Policy
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.scale.Policy
@ApiType("SoftLayer_Scale_Policy") public class Policy extends Entity
A scale policy is a combination of triggers and actions that can occur on a scale group. When any trigger is satisfied (or the policy is manually triggered) the actions will be executed.
- See Also:
- SoftLayer_Scale_Policy
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Policy.Mask
static interface
Policy.Service
A scale policy is a combination of triggers and actions that can occur on a scale group.static interface
Policy.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Long
actionCount
A count of the actions to perform upon any trigger hit.protected List<Action>
actions
The actions to perform upon any trigger hit.protected Long
cooldown
The number of seconds this policy will wait after lastActionDate on group before performing another action.protected boolean
cooldownSpecified
protected GregorianCalendar
createDate
When this policy was created.protected boolean
createDateSpecified
protected Boolean
deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion.protected boolean
deleteFlagSpecified
protected Long
id
A policy's internal identifier.protected boolean
idSpecified
protected GregorianCalendar
modifyDate
When this policy was last modified.protected boolean
modifyDateSpecified
protected String
name
The name of this policy.protected boolean
nameSpecified
protected Long
oneTimeTriggerCount
A count of the one-time triggers to check for this group.protected List<OneTime>
oneTimeTriggers
The one-time triggers to check for this group.protected Long
repeatingTriggerCount
A count of the repeating triggers to check for this group.protected List<Repeating>
repeatingTriggers
The repeating triggers to check for this group.protected Long
resourceUseTriggerCount
A count of the resource-use triggers to check for this group.protected List<ResourceUse>
resourceUseTriggers
The resource-use triggers to check for this group.protected Long
scaleActionCount
A count of the scale actions to perform upon any trigger hit.protected List<Scale>
scaleActions
The scale actions to perform upon any trigger hit.protected Group
scaleGroup
The group this policy is on.protected Long
scaleGroupId
The identifier of the group this member belongs to.protected boolean
scaleGroupIdSpecified
protected Long
triggerCount
A count of the triggers to check for this group.protected List<Trigger>
triggers
The triggers to check for this group.Fields inherited from class com.softlayer.api.Type
unknownProperties
-
Constructor Summary
Constructors Constructor Description Policy()
-
Method Summary
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
Field Details
-
actions
The actions to perform upon any trigger hit. Currently this must be a single value. -
oneTimeTriggers
The one-time triggers to check for this group. -
repeatingTriggers
The repeating triggers to check for this group. -
resourceUseTriggers
The resource-use triggers to check for this group. -
scaleActions
The scale actions to perform upon any trigger hit. Currently this must be a single value. -
scaleGroup
The group this policy is on. -
triggers
The triggers to check for this group. -
cooldown
The number of seconds this policy will wait after lastActionDate on group before performing another action. If not present, the group's cooldown value is used. -
cooldownSpecified
protected boolean cooldownSpecified -
createDate
When this policy was created. -
createDateSpecified
protected boolean createDateSpecified -
deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion. -
deleteFlagSpecified
protected boolean deleteFlagSpecified -
id
A policy's internal identifier. -
idSpecified
protected boolean idSpecified -
modifyDate
When this policy was last modified. -
modifyDateSpecified
protected boolean modifyDateSpecified -
name
The name of this policy. It must be unique within the group. -
nameSpecified
protected boolean nameSpecified -
scaleGroupId
The identifier of the group this member belongs to. -
scaleGroupIdSpecified
protected boolean scaleGroupIdSpecified -
actionCount
A count of the actions to perform upon any trigger hit. Currently this must be a single value. -
oneTimeTriggerCount
A count of the one-time triggers to check for this group. -
repeatingTriggerCount
A count of the repeating triggers to check for this group. -
resourceUseTriggerCount
A count of the resource-use triggers to check for this group. -
scaleActionCount
A count of the scale actions to perform upon any trigger hit. Currently this must be a single value. -
triggerCount
A count of the triggers to check for this group.
-
-
Constructor Details
-
Policy
public Policy()
-
-
Method Details
-
getActions
-
getOneTimeTriggers
-
getRepeatingTriggers
-
getResourceUseTriggers
-
getScaleActions
-
getScaleGroup
-
setScaleGroup
-
getTriggers
-
getCooldown
-
setCooldown
-
isCooldownSpecified
public boolean isCooldownSpecified() -
unsetCooldown
public void unsetCooldown() -
getCreateDate
-
setCreateDate
-
isCreateDateSpecified
public boolean isCreateDateSpecified() -
unsetCreateDate
public void unsetCreateDate() -
getDeleteFlag
-
setDeleteFlag
-
isDeleteFlagSpecified
public boolean isDeleteFlagSpecified() -
unsetDeleteFlag
public void unsetDeleteFlag() -
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getModifyDate
-
setModifyDate
-
isModifyDateSpecified
public boolean isModifyDateSpecified() -
unsetModifyDate
public void unsetModifyDate() -
getName
-
setName
-
isNameSpecified
public boolean isNameSpecified() -
unsetName
public void unsetName() -
getScaleGroupId
-
setScaleGroupId
-
isScaleGroupIdSpecified
public boolean isScaleGroupIdSpecified() -
unsetScaleGroupId
public void unsetScaleGroupId() -
getActionCount
-
setActionCount
-
getOneTimeTriggerCount
-
setOneTimeTriggerCount
-
getRepeatingTriggerCount
-
setRepeatingTriggerCount
-
getResourceUseTriggerCount
-
setResourceUseTriggerCount
-
getScaleActionCount
-
setScaleActionCount
-
getTriggerCount
-
setTriggerCount
-
asService
-
service
-
service
-