Class 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
    • Field Detail

      • actions

        @ApiProperty
        protected List<Action> actions
        The actions to perform upon any trigger hit. Currently this must be a single value.
      • oneTimeTriggers

        @ApiProperty
        protected List<OneTime> oneTimeTriggers
        The one-time triggers to check for this group.
      • repeatingTriggers

        @ApiProperty
        protected List<Repeating> repeatingTriggers
        The repeating triggers to check for this group.
      • scaleActions

        @ApiProperty
        protected List<Scale> scaleActions
        The scale actions to perform upon any trigger hit. Currently this must be a single value.
      • cooldown

        @ApiProperty(canBeNullOrNotSet=true)
        protected Long 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
      • createDateSpecified

        protected boolean createDateSpecified
      • deleteFlag

        @ApiProperty(canBeNullOrNotSet=true)
        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.
      • deleteFlagSpecified

        protected boolean deleteFlagSpecified
      • idSpecified

        protected boolean idSpecified
      • modifyDateSpecified

        protected boolean modifyDateSpecified
      • nameSpecified

        protected boolean nameSpecified
      • scaleGroupIdSpecified

        protected boolean scaleGroupIdSpecified
      • actionCount

        @ApiProperty
        protected Long actionCount
        A count of the actions to perform upon any trigger hit. Currently this must be a single value.
      • oneTimeTriggerCount

        @ApiProperty
        protected Long oneTimeTriggerCount
        A count of the one-time triggers to check for this group.
      • repeatingTriggerCount

        @ApiProperty
        protected Long repeatingTriggerCount
        A count of the repeating triggers to check for this group.
      • resourceUseTriggerCount

        @ApiProperty
        protected Long resourceUseTriggerCount
        A count of the resource-use triggers to check for this group.
      • scaleActionCount

        @ApiProperty
        protected Long scaleActionCount
        A count of the scale actions to perform upon any trigger hit. Currently this must be a single value.
      • triggerCount

        @ApiProperty
        protected Long triggerCount
        A count of the triggers to check for this group.
    • Constructor Detail

      • Policy

        public Policy()
    • Method Detail

      • getOneTimeTriggers

        public List<OneTime> getOneTimeTriggers()
      • getRepeatingTriggers

        public List<Repeating> getRepeatingTriggers()
      • getResourceUseTriggers

        public List<ResourceUse> getResourceUseTriggers()
      • getScaleActions

        public List<Scale> getScaleActions()
      • getScaleGroup

        public Group getScaleGroup()
      • setScaleGroup

        public void setScaleGroup​(Group scaleGroup)
      • getCooldown

        public Long getCooldown()
      • setCooldown

        public void setCooldown​(Long cooldown)
      • isCooldownSpecified

        public boolean isCooldownSpecified()
      • unsetCooldown

        public void unsetCooldown()
      • isCreateDateSpecified

        public boolean isCreateDateSpecified()
      • unsetCreateDate

        public void unsetCreateDate()
      • getDeleteFlag

        public Boolean getDeleteFlag()
      • setDeleteFlag

        public void setDeleteFlag​(Boolean deleteFlag)
      • isDeleteFlagSpecified

        public boolean isDeleteFlagSpecified()
      • unsetDeleteFlag

        public void unsetDeleteFlag()
      • getId

        public Long getId()
      • setId

        public void setId​(Long id)
      • isIdSpecified

        public boolean isIdSpecified()
      • unsetId

        public void unsetId()
      • isModifyDateSpecified

        public boolean isModifyDateSpecified()
      • unsetModifyDate

        public void unsetModifyDate()
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • isNameSpecified

        public boolean isNameSpecified()
      • unsetName

        public void unsetName()
      • getScaleGroupId

        public Long getScaleGroupId()
      • setScaleGroupId

        public void setScaleGroupId​(Long scaleGroupId)
      • isScaleGroupIdSpecified

        public boolean isScaleGroupIdSpecified()
      • unsetScaleGroupId

        public void unsetScaleGroupId()
      • getActionCount

        public Long getActionCount()
      • setActionCount

        public void setActionCount​(Long actionCount)
      • getOneTimeTriggerCount

        public Long getOneTimeTriggerCount()
      • setOneTimeTriggerCount

        public void setOneTimeTriggerCount​(Long oneTimeTriggerCount)
      • getRepeatingTriggerCount

        public Long getRepeatingTriggerCount()
      • setRepeatingTriggerCount

        public void setRepeatingTriggerCount​(Long repeatingTriggerCount)
      • getResourceUseTriggerCount

        public Long getResourceUseTriggerCount()
      • setResourceUseTriggerCount

        public void setResourceUseTriggerCount​(Long resourceUseTriggerCount)
      • getScaleActionCount

        public Long getScaleActionCount()
      • setScaleActionCount

        public void setScaleActionCount​(Long scaleActionCount)
      • getTriggerCount

        public Long getTriggerCount()
      • setTriggerCount

        public void setTriggerCount​(Long triggerCount)