Package com.exoscale.sdk.model
Class AddServiceToLoadBalancerRequest
- java.lang.Object
-
- com.exoscale.sdk.model.AddServiceToLoadBalancerRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class AddServiceToLoadBalancerRequest extends Object
AddServiceToLoadBalancerRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddServiceToLoadBalancerRequest.ProtocolEnum
Network traffic protocolstatic class
AddServiceToLoadBalancerRequest.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_INSTANCE_POOL
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_PORT
static String
JSON_PROPERTY_PROTOCOL
static String
JSON_PROPERTY_STRATEGY
static String
JSON_PROPERTY_TARGET_PORT
-
Constructor Summary
Constructors Constructor Description AddServiceToLoadBalancerRequest()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCE_POOL
public static final String JSON_PROPERTY_INSTANCE_POOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTOCOL
public static final String JSON_PROPERTY_PROTOCOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STRATEGY
public static final String JSON_PROPERTY_STRATEGY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORT
public static final String JSON_PROPERTY_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TARGET_PORT
public static final String JSON_PROPERTY_TARGET_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEALTHCHECK
public static final String JSON_PROPERTY_HEALTHCHECK
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public AddServiceToLoadBalancerRequest name(String name)
-
getName
@Nonnull public String getName()
Load Balancer Service name- Returns:
- name
-
setName
public void setName(String name)
-
description
public AddServiceToLoadBalancerRequest description(String description)
-
getDescription
@Nullable public String getDescription()
Load Balancer Service description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
instancePool
public AddServiceToLoadBalancerRequest instancePool(InstancePool instancePool)
-
getInstancePool
@Nonnull public InstancePool getInstancePool()
Get instancePool- Returns:
- instancePool
-
setInstancePool
public void setInstancePool(InstancePool instancePool)
-
protocol
public AddServiceToLoadBalancerRequest protocol(AddServiceToLoadBalancerRequest.ProtocolEnum protocol)
-
getProtocol
@Nonnull public AddServiceToLoadBalancerRequest.ProtocolEnum getProtocol()
Network traffic protocol- Returns:
- protocol
-
setProtocol
public void setProtocol(AddServiceToLoadBalancerRequest.ProtocolEnum protocol)
-
strategy
public AddServiceToLoadBalancerRequest strategy(AddServiceToLoadBalancerRequest.StrategyEnum strategy)
-
getStrategy
@Nonnull public AddServiceToLoadBalancerRequest.StrategyEnum getStrategy()
Load balancing strategy- Returns:
- strategy
-
setStrategy
public void setStrategy(AddServiceToLoadBalancerRequest.StrategyEnum strategy)
-
port
public AddServiceToLoadBalancerRequest port(Long port)
-
getPort
@Nonnull public Long getPort()
Port exposed on the Load Balancer's public IP minimum: 1 maximum: 65535- Returns:
- port
-
setPort
public void setPort(Long port)
-
targetPort
public AddServiceToLoadBalancerRequest targetPort(Long targetPort)
-
getTargetPort
@Nonnull public Long getTargetPort()
Port on which the network traffic will be forwarded to on the receiving instance minimum: 1 maximum: 65535- Returns:
- targetPort
-
setTargetPort
public void setTargetPort(Long targetPort)
-
healthcheck
public AddServiceToLoadBalancerRequest healthcheck(LoadBalancerServiceHealthcheck healthcheck)
-
getHealthcheck
@Nonnull public LoadBalancerServiceHealthcheck getHealthcheck()
Get healthcheck- Returns:
- healthcheck
-
setHealthcheck
public void setHealthcheck(LoadBalancerServiceHealthcheck healthcheck)
-
equals
public boolean equals(Object o)
Return true if this add_service_to_load_balancer_request object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-