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

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

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_LoadBalancerServerInstanceInfo specifies the application server, usually an IBM SoftLayer virtual server or bare metal system, to be assigned to a load balancer. 
 *
 * @see SoftLayer_Network_LBaaS_LoadBalancerServerInstanceInfo
 */
@ApiType("SoftLayer_Network_LBaaS_LoadBalancerServerInstanceInfo")
public class LoadBalancerServerInstanceInfo extends Entity {

    /**
     * Servers private IP address
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String privateIpAddress;

    public String getPrivateIpAddress() {
        return privateIpAddress;
    }

    public void setPrivateIpAddress(String privateIpAddress) {
        privateIpAddressSpecified = true;
        this.privateIpAddress = privateIpAddress;
    }

    protected boolean privateIpAddressSpecified;

    public boolean isPrivateIpAddressSpecified() {
        return privateIpAddressSpecified;
    }

    public void unsetPrivateIpAddress() {
        privateIpAddress = null;
        privateIpAddressSpecified = false;
    }

    /**
     * Servers public IP address
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String publicIpAddress;

    public String getPublicIpAddress() {
        return publicIpAddress;
    }

    public void setPublicIpAddress(String publicIpAddress) {
        publicIpAddressSpecified = true;
        this.publicIpAddress = publicIpAddress;
    }

    protected boolean publicIpAddressSpecified;

    public boolean isPublicIpAddressSpecified() {
        return publicIpAddressSpecified;
    }

    public void unsetPublicIpAddress() {
        publicIpAddress = null;
        publicIpAddressSpecified = false;
    }

    /**
     * Load balancing weight for a server
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long weight;

    public Long getWeight() {
        return weight;
    }

    public void setWeight(Long weight) {
        weightSpecified = true;
        this.weight = weight;
    }

    protected boolean weightSpecified;

    public boolean isWeightSpecified() {
        return weightSpecified;
    }

    public void unsetWeight() {
        weight = null;
        weightSpecified = false;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy