com.softlayer.api.service.network.lbaas.LoadBalancerProtocolConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
The newest version!
package com.softlayer.api.service.network.lbaas;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
/**
* SoftLayer_Network_LBaaS_LoadBalancerProtocolConfiguration specifies the protocol, port, maximum number of allowed connections and session stickiness for load balancer's front- and backend.
*
* @see SoftLayer_Network_LBaaS_LoadBalancerProtocolConfiguration
*/
@ApiType("SoftLayer_Network_LBaaS_LoadBalancerProtocolConfiguration")
public class LoadBalancerProtocolConfiguration extends Entity {
/**
* Backends port
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long backendPort;
public Long getBackendPort() {
return backendPort;
}
public void setBackendPort(Long backendPort) {
backendPortSpecified = true;
this.backendPort = backendPort;
}
protected boolean backendPortSpecified;
public boolean isBackendPortSpecified() {
return backendPortSpecified;
}
public void unsetBackendPort() {
backendPort = null;
backendPortSpecified = false;
}
/**
* Backends protocol. Valid values are "TCP", "HTTP"
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String backendProtocol;
public String getBackendProtocol() {
return backendProtocol;
}
public void setBackendProtocol(String backendProtocol) {
backendProtocolSpecified = true;
this.backendProtocol = backendProtocol;
}
protected boolean backendProtocolSpecified;
public boolean isBackendProtocolSpecified() {
return backendProtocolSpecified;
}
public void unsetBackendProtocol() {
backendProtocol = null;
backendProtocolSpecified = false;
}
/**
* maximum idle time in seconds(Range: 1 to 7200), after which the load balancer brings down the client-side connection
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long clientTimeout;
public Long getClientTimeout() {
return clientTimeout;
}
public void setClientTimeout(Long clientTimeout) {
clientTimeoutSpecified = true;
this.clientTimeout = clientTimeout;
}
protected boolean clientTimeoutSpecified;
public boolean isClientTimeoutSpecified() {
return clientTimeoutSpecified;
}
public void unsetClientTimeout() {
clientTimeout = null;
clientTimeoutSpecified = false;
}
/**
* Frontends port
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long frontendPort;
public Long getFrontendPort() {
return frontendPort;
}
public void setFrontendPort(Long frontendPort) {
frontendPortSpecified = true;
this.frontendPort = frontendPort;
}
protected boolean frontendPortSpecified;
public boolean isFrontendPortSpecified() {
return frontendPortSpecified;
}
public void unsetFrontendPort() {
frontendPort = null;
frontendPortSpecified = false;
}
/**
* Frontends protocol. Valid values are "TCP", "HTTP" and "HTTPS"
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String frontendProtocol;
public String getFrontendProtocol() {
return frontendProtocol;
}
public void setFrontendProtocol(String frontendProtocol) {
frontendProtocolSpecified = true;
this.frontendProtocol = frontendProtocol;
}
protected boolean frontendProtocolSpecified;
public boolean isFrontendProtocolSpecified() {
return frontendProtocolSpecified;
}
public void unsetFrontendProtocol() {
frontendProtocol = null;
frontendProtocolSpecified = false;
}
/**
* Listeners UUID, required for update only
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String listenerUuid;
public String getListenerUuid() {
return listenerUuid;
}
public void setListenerUuid(String listenerUuid) {
listenerUuidSpecified = true;
this.listenerUuid = listenerUuid;
}
protected boolean listenerUuidSpecified;
public boolean isListenerUuidSpecified() {
return listenerUuidSpecified;
}
public void unsetListenerUuid() {
listenerUuid = null;
listenerUuidSpecified = false;
}
/**
* Load balancing method. Valid values are "ROUNDROBIN", "WEIGHTED_RR" and "LEASTCONNECTION"
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String loadBalancingMethod;
public String getLoadBalancingMethod() {
return loadBalancingMethod;
}
public void setLoadBalancingMethod(String loadBalancingMethod) {
loadBalancingMethodSpecified = true;
this.loadBalancingMethod = loadBalancingMethod;
}
protected boolean loadBalancingMethodSpecified;
public boolean isLoadBalancingMethodSpecified() {
return loadBalancingMethodSpecified;
}
public void unsetLoadBalancingMethod() {
loadBalancingMethod = null;
loadBalancingMethodSpecified = false;
}
/**
* Maximum number of allowed connections
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long maxConn;
public Long getMaxConn() {
return maxConn;
}
public void setMaxConn(Long maxConn) {
maxConnSpecified = true;
this.maxConn = maxConn;
}
protected boolean maxConnSpecified;
public boolean isMaxConnSpecified() {
return maxConnSpecified;
}
public void unsetMaxConn() {
maxConn = null;
maxConnSpecified = false;
}
/**
* maximum idle time in seconds(Range: 1 to 7200), after which the load balancer brings down the server-side connection
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long serverTimeout;
public Long getServerTimeout() {
return serverTimeout;
}
public void setServerTimeout(Long serverTimeout) {
serverTimeoutSpecified = true;
this.serverTimeout = serverTimeout;
}
protected boolean serverTimeoutSpecified;
public boolean isServerTimeoutSpecified() {
return serverTimeoutSpecified;
}
public void unsetServerTimeout() {
serverTimeout = null;
serverTimeoutSpecified = false;
}
/**
* Sessions cookie name
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String sessionCookieName;
public String getSessionCookieName() {
return sessionCookieName;
}
public void setSessionCookieName(String sessionCookieName) {
sessionCookieNameSpecified = true;
this.sessionCookieName = sessionCookieName;
}
protected boolean sessionCookieNameSpecified;
public boolean isSessionCookieNameSpecified() {
return sessionCookieNameSpecified;
}
public void unsetSessionCookieName() {
sessionCookieName = null;
sessionCookieNameSpecified = false;
}
/**
* Session stickiness type. Valid values are "SOURCE_IP" "HTTP_COOKIE"
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String sessionType;
public String getSessionType() {
return sessionType;
}
public void setSessionType(String sessionType) {
sessionTypeSpecified = true;
this.sessionType = sessionType;
}
protected boolean sessionTypeSpecified;
public boolean isSessionTypeSpecified() {
return sessionTypeSpecified;
}
public void unsetSessionType() {
sessionType = null;
sessionTypeSpecified = false;
}
/**
* ssl/tls certificate id
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long tlsCertificateId;
public Long getTlsCertificateId() {
return tlsCertificateId;
}
public void setTlsCertificateId(Long tlsCertificateId) {
tlsCertificateIdSpecified = true;
this.tlsCertificateId = tlsCertificateId;
}
protected boolean tlsCertificateIdSpecified;
public boolean isTlsCertificateIdSpecified() {
return tlsCertificateIdSpecified;
}
public void unsetTlsCertificateId() {
tlsCertificateId = null;
tlsCertificateIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask backendPort() {
withLocalProperty("backendPort");
return this;
}
public Mask backendProtocol() {
withLocalProperty("backendProtocol");
return this;
}
public Mask clientTimeout() {
withLocalProperty("clientTimeout");
return this;
}
public Mask frontendPort() {
withLocalProperty("frontendPort");
return this;
}
public Mask frontendProtocol() {
withLocalProperty("frontendProtocol");
return this;
}
public Mask listenerUuid() {
withLocalProperty("listenerUuid");
return this;
}
public Mask loadBalancingMethod() {
withLocalProperty("loadBalancingMethod");
return this;
}
public Mask maxConn() {
withLocalProperty("maxConn");
return this;
}
public Mask serverTimeout() {
withLocalProperty("serverTimeout");
return this;
}
public Mask sessionCookieName() {
withLocalProperty("sessionCookieName");
return this;
}
public Mask sessionType() {
withLocalProperty("sessionType");
return this;
}
public Mask tlsCertificateId() {
withLocalProperty("tlsCertificateId");
return this;
}
}
}