Package com.exoscale.sdk.model
Class LoadBalancerService
- java.lang.Object
-
- com.exoscale.sdk.model.LoadBalancerService
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class LoadBalancerService extends Object
Load Balancer Service
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoadBalancerService.ProtocolEnum
Network traffic protocolstatic class
LoadBalancerService.StateEnum
Load Balancer Service statestatic class
LoadBalancerService.StrategyEnum
Load balancing strategy
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_DESCRIPTION
static String
JSON_PROPERTY_HEALTHCHECK
static String
JSON_PROPERTY_HEALTHCHECK_STATUS
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_INSTANCE_POOL
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_PORT
static String
JSON_PROPERTY_PROTOCOL
static String
JSON_PROPERTY_STATE
static String
JSON_PROPERTY_STRATEGY
static String
JSON_PROPERTY_TARGET_PORT
-
Constructor Summary
Constructors Constructor Description LoadBalancerService()
LoadBalancerService(LoadBalancerService.StateEnum state, UUID id, List<LoadBalancerServerStatus> healthcheckStatus)
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTOCOL
public static final String JSON_PROPERTY_PROTOCOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TARGET_PORT
public static final String JSON_PROPERTY_TARGET_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORT
public static final String JSON_PROPERTY_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCE_POOL
public static final String JSON_PROPERTY_INSTANCE_POOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STRATEGY
public static final String JSON_PROPERTY_STRATEGY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEALTHCHECK
public static final String JSON_PROPERTY_HEALTHCHECK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEALTHCHECK_STATUS
public static final String JSON_PROPERTY_HEALTHCHECK_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoadBalancerService
public LoadBalancerService()
-
LoadBalancerService
public LoadBalancerService(LoadBalancerService.StateEnum state, UUID id, List<LoadBalancerServerStatus> healthcheckStatus)
-
-
Method Detail
-
description
public LoadBalancerService description(String description)
-
getDescription
@Nullable public String getDescription()
Load Balancer Service description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
protocol
public LoadBalancerService protocol(LoadBalancerService.ProtocolEnum protocol)
-
getProtocol
@Nullable public LoadBalancerService.ProtocolEnum getProtocol()
Network traffic protocol- Returns:
- protocol
-
setProtocol
public void setProtocol(LoadBalancerService.ProtocolEnum protocol)
-
name
public LoadBalancerService name(String name)
-
getName
@Nullable public String getName()
Load Balancer Service name- Returns:
- name
-
setName
public void setName(String name)
-
getState
@Nullable public LoadBalancerService.StateEnum getState()
Load Balancer Service state- Returns:
- state
-
targetPort
public LoadBalancerService targetPort(Long targetPort)
-
getTargetPort
@Nullable public Long getTargetPort()
Port on which the network traffic will be forwarded to on the receiving instance minimum: 0- Returns:
- targetPort
-
setTargetPort
public void setTargetPort(Long targetPort)
-
port
public LoadBalancerService port(Long port)
-
getPort
@Nullable public Long getPort()
Port exposed on the Load Balancer's public IP minimum: 0- Returns:
- port
-
setPort
public void setPort(Long port)
-
instancePool
public LoadBalancerService instancePool(InstancePool instancePool)
-
getInstancePool
@Nullable public InstancePool getInstancePool()
Get instancePool- Returns:
- instancePool
-
setInstancePool
public void setInstancePool(InstancePool instancePool)
-
strategy
public LoadBalancerService strategy(LoadBalancerService.StrategyEnum strategy)
-
getStrategy
@Nullable public LoadBalancerService.StrategyEnum getStrategy()
Load balancing strategy- Returns:
- strategy
-
setStrategy
public void setStrategy(LoadBalancerService.StrategyEnum strategy)
-
healthcheck
public LoadBalancerService healthcheck(LoadBalancerServiceHealthcheck healthcheck)
-
getHealthcheck
@Nullable public LoadBalancerServiceHealthcheck getHealthcheck()
Get healthcheck- Returns:
- healthcheck
-
setHealthcheck
public void setHealthcheck(LoadBalancerServiceHealthcheck healthcheck)
-
getId
@Nullable public UUID getId()
Load Balancer Service ID- Returns:
- id
-
getHealthcheckStatus
@Nullable public List<LoadBalancerServerStatus> getHealthcheckStatus()
Healthcheck status per backend server- Returns:
- healthcheckStatus
-
equals
public boolean equals(Object o)
Return true if this load-balancer-service object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-