com.softlayer.api.service.network.lbaas.SessionAffinity 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;
import com.softlayer.api.service.network.lbaas.Pool;
/**
* SoftLayer_Network_LBaaS_SessionAffinity represents the session affinity, aka session persistence, configuration for a load balancer backend pool.
*
* @see SoftLayer_Network_LBaaS_SessionAffinity
*/
@ApiType("SoftLayer_Network_LBaaS_SessionAffinity")
public class SessionAffinity extends Entity {
@ApiProperty
protected Pool pool;
public Pool getPool() {
return pool;
}
public void setPool(Pool pool) {
this.pool = pool;
}
/**
* Type of the session persistence
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String type;
public String getType() {
return type;
}
public void setType(String type) {
typeSpecified = true;
this.type = type;
}
protected boolean typeSpecified;
public boolean isTypeSpecified() {
return typeSpecified;
}
public void unsetType() {
type = null;
typeSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Pool.Mask pool() {
return withSubMask("pool", Pool.Mask.class);
}
public Mask type() {
withLocalProperty("type");
return this;
}
}
}