java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.scale.termination.Policy

@ApiType("SoftLayer_Scale_Termination_Policy")
public class Policy
extends Entity
A policy for automatic removal of members from a group. This policy determines which members are chosen first for removal. The values can be:


* OLDEST - The oldest member is the next one removed.
* NEWEST - The newest member is the next one removed.
* CLOSEST_TO_NEXT_CHARGE - The member closest to the next charge is removed. This is helpful for billing because it
will let you remove the member you have gotten the most out of. Note, this is usually closest to the next billing hour.

See Also:
SoftLayer_Scale_Termination_Policy
  • Field Details

  • Constructor Details

    • Policy

      public Policy()
  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId​(Long id)
    • isIdSpecified

      public boolean isIdSpecified()
    • unsetId

      public void unsetId()
    • getKeyName

      public String getKeyName()
    • setKeyName

      public void setKeyName​(String keyName)
    • isKeyNameSpecified

      public boolean isKeyNameSpecified()
    • unsetKeyName

      public void unsetKeyName()
    • getName

      public String getName()
    • setName

      public void setName​(String name)
    • isNameSpecified

      public boolean isNameSpecified()
    • unsetName

      public void unsetName()
    • 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)