Package com.myjeeva.digitalocean.pojo
Class LoadBalancer
java.lang.Object
com.myjeeva.digitalocean.pojo.RateLimitBase
com.myjeeva.digitalocean.pojo.Base
com.myjeeva.digitalocean.pojo.LoadBalancer
- All Implemented Interfaces:
Serializable
Represents Load Balancer object
- Since:
- v2.11
- Author:
- Thomas Lehoux (https://github.com/tlehoux)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getIp()getName()getTag()booleanvoidsetAlgorithm(LoadBalancingAlgorithm algorithm) voidsetCreatedDate(Date createdDate) voidsetDropletIds(List<String> dropletIds) voidsetForwardingRules(List<ForwardingRules> forwardingRules) voidsetHealthCheck(HealthCheck healthCheck) voidvoidvoidvoidsetRedirectHttpToHttps(boolean redirectHttpToHttps) voidvoidsetStatus(LoadBalancerStatus status) voidsetStickySessions(StickySessions stickySessions) voidtoString()Methods inherited from class com.myjeeva.digitalocean.pojo.Base
getLinks, getMeta, setLinks, setMetaMethods inherited from class com.myjeeva.digitalocean.pojo.RateLimitBase
getRateLimit, setRateLimit
-
Constructor Details
-
LoadBalancer
public LoadBalancer()
-
-
Method Details
-
toString
-
getIp
- Returns:
- the ip
-
setIp
- Parameters:
ip- the ip to set
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getAlgorithm
- Returns:
- the algorithm
-
setAlgorithm
- Parameters:
algorithm- the algorithm to set
-
getRegion
- Returns:
- the region
-
setRegion
- Parameters:
region- the region to set
-
getStatus
- Returns:
- the status
-
setStatus
- Parameters:
status- the status to set
-
getCreatedDate
- Returns:
- the created date
-
setCreatedDate
- Parameters:
createdDate- the createdDate to set
-
getForwardingRules
- Returns:
- the forwarding rules
-
setForwardingRules
- Parameters:
forwardingRules- the forwardingRules to set
-
getHealthCheck
- Returns:
- the healthcheck
-
setHealthCheck
- Parameters:
healthCheck- the healthCheck to set
-
getStickySessions
- Returns:
- the sticky sessions
-
setStickySessions
- 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
- Returns:
- the list of dropletId
-
setDropletIds
- Parameters:
dropletIds- the dropletIds to set
-
getTag
- Returns:
- the tag
-
setTag
- Parameters:
tag- the tag to set
-