All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.network.lbaas.L7SessionAffinity Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show 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.L7Pool;

/**
 * SoftLayer_Network_LBaaS_L7SessionAffinity represents the session affinity, aka session persistence, configuration for a load balancer backend L7 pool. 
 *
 * @see SoftLayer_Network_LBaaS_L7SessionAffinity
 */
@ApiType("SoftLayer_Network_LBaaS_L7SessionAffinity")
public class L7SessionAffinity extends Entity {

    @ApiProperty
    protected L7Pool l7Pool;

    public L7Pool getL7Pool() {
        return l7Pool;
    }

    public void setL7Pool(L7Pool l7Pool) {
        this.l7Pool = l7Pool;
    }

    /**
     * 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 L7Pool.Mask l7Pool() {
            return withSubMask("l7Pool", L7Pool.Mask.class);
        }

        public Mask type() {
            withLocalProperty("type");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy