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 Details

    • 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.
    • resourceUseTriggers

      @ApiProperty protected List<ResourceUse> resourceUseTriggers
      The resource-use 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.
    • scaleGroup

      @ApiProperty protected Group scaleGroup
      The group this policy is on.
    • triggers

      @ApiProperty protected List<Trigger> triggers
      The triggers to check for this group.
    • 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
    • createDate

      @ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar createDate
      When this policy was created.
    • 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
    • id

      @ApiProperty(canBeNullOrNotSet=true) protected Long id
      A policy's internal identifier.
    • idSpecified

      protected boolean idSpecified
    • modifyDate

      @ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar modifyDate
      When this policy was last modified.
    • modifyDateSpecified

      protected boolean modifyDateSpecified
    • name

      @ApiProperty(canBeNullOrNotSet=true) protected String name
      The name of this policy. It must be unique within the group.
    • nameSpecified

      protected boolean nameSpecified
    • scaleGroupId

      @ApiProperty(canBeNullOrNotSet=true) protected Long scaleGroupId
      The identifier of the group this member belongs to.
    • 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 Details

    • Policy

      public Policy()
  • Method Details

    • getActions

      public List<Action> getActions()
    • 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)
    • getTriggers

      public List<Trigger> getTriggers()
    • getCooldown

      public Long getCooldown()
    • setCooldown

      public void setCooldown​(Long cooldown)
    • isCooldownSpecified

      public boolean isCooldownSpecified()
    • unsetCooldown

      public void unsetCooldown()
    • getCreateDate

      public GregorianCalendar getCreateDate()
    • setCreateDate

      public void setCreateDate​(GregorianCalendar createDate)
    • 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()
    • getModifyDate

      public GregorianCalendar getModifyDate()
    • setModifyDate

      public void setModifyDate​(GregorianCalendar modifyDate)
    • 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)
    • asService

      public Policy.Service asService​(ApiClient client)
    • service

      public static Policy.Service service​(ApiClient client)
    • service

      public static Policy.Service service​(ApiClient client, Long id)