Class LoadBalancer

All Implemented Interfaces:
Serializable

public class LoadBalancer extends Base
Represents Load Balancer object
Since:
v2.11
Author:
Thomas Lehoux (https://github.com/tlehoux)
See Also:
  • Constructor Details

    • LoadBalancer

      public LoadBalancer()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Base
    • getIp

      public String getIp()
      Returns:
      the ip
    • setIp

      public void setIp(String ip)
      Parameters:
      ip - the ip to set
    • getId

      public String getId()
      Returns:
      the id
    • setId

      public void setId(String id)
      Parameters:
      id - the id to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getAlgorithm

      public LoadBalancingAlgorithm getAlgorithm()
      Returns:
      the algorithm
    • setAlgorithm

      public void setAlgorithm(LoadBalancingAlgorithm algorithm)
      Parameters:
      algorithm - the algorithm to set
    • getRegion

      public Region getRegion()
      Returns:
      the region
    • setRegion

      public void setRegion(Region region)
      Parameters:
      region - the region to set
    • getStatus

      public LoadBalancerStatus getStatus()
      Returns:
      the status
    • setStatus

      public void setStatus(LoadBalancerStatus status)
      Parameters:
      status - the status to set
    • getCreatedDate

      public Date getCreatedDate()
      Returns:
      the created date
    • setCreatedDate

      public void setCreatedDate(Date createdDate)
      Parameters:
      createdDate - the createdDate to set
    • getForwardingRules

      public List<ForwardingRules> getForwardingRules()
      Returns:
      the forwarding rules
    • setForwardingRules

      public void setForwardingRules(List<ForwardingRules> forwardingRules)
      Parameters:
      forwardingRules - the forwardingRules to set
    • getHealthCheck

      public HealthCheck getHealthCheck()
      Returns:
      the healthcheck
    • setHealthCheck

      public void setHealthCheck(HealthCheck healthCheck)
      Parameters:
      healthCheck - the healthCheck to set
    • getStickySessions

      public StickySessions getStickySessions()
      Returns:
      the sticky sessions
    • setStickySessions

      public void setStickySessions(StickySessions stickySessions)
      Parameters:
      stickySessions - the stickySessions to set
    • isRedirectHttpToHttps

      public boolean isRedirectHttpToHttps()
      Returns:
      true if the HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
    • setRedirectHttpToHttps

      public void setRedirectHttpToHttps(boolean redirectHttpToHttps)
      Parameters:
      redirectHttpToHttps - the redirectHttpToHttps to set
    • getDropletIds

      public List<String> getDropletIds()
      Returns:
      the list of dropletId
    • setDropletIds

      public void setDropletIds(List<String> dropletIds)
      Parameters:
      dropletIds - the dropletIds to set
    • getTag

      public String getTag()
      Returns:
      the tag
    • setTag

      public void setTag(String tag)
      Parameters:
      tag - the tag to set