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

com.softlayer.api.service.network.lbaas.L7Member 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.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
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.LoadBalancer;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;

/**
 * The SoftLayer_Network_LBaaS_L7Member represents the backend member for a L7 pool. It can be either a virtual server or a bare metal machine. 
 *
 * @see SoftLayer_Network_LBaaS_L7Member
 */
@ApiType("SoftLayer_Network_LBaaS_L7Member")
public class L7Member extends Entity {

    /**
     * The IP address of a L7 pool member.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String address;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        addressSpecified = true;
        this.address = address;
    }

    protected boolean addressSpecified;

    public boolean isAddressSpecified() {
        return addressSpecified;
    }

    public void unsetAddress() {
        address = null;
        addressSpecified = false;
    }

    /**
     * <<< EOT Specifies when a L7 pool member
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar createDate;

    public GregorianCalendar getCreateDate() {
        return createDate;
    }

    public void setCreateDate(GregorianCalendar createDate) {
        createDateSpecified = true;
        this.createDate = createDate;
    }

    protected boolean createDateSpecified;

    public boolean isCreateDateSpecified() {
        return createDateSpecified;
    }

    public void unsetCreateDate() {
        createDate = null;
        createDateSpecified = false;
    }

    /**
     * The ID of a L7 pool member.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * <<SoftLayer_Network_LBaaS_L7Member
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Network_LBaaS_L7Member")
    public static interface Service extends com.softlayer.api.Service {

        public ServiceAsync asAsync();
        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * Add server instances as members to a L7pool and return the LoadBalancer Object with listeners, pools and members populated 
         *
         * @see SoftLayer_Network_LBaaS_L7Member::addL7PoolMembers
         */
        @ApiMethod
        public LoadBalancer addL7PoolMembers(String l7PoolUuid, List memberInstances);

        /**
         * Delete given members from load balancer and return load balancer object with listeners, pools and members populated 
         *
         * @see SoftLayer_Network_LBaaS_L7Member::deleteL7PoolMembers
         */
        @ApiMethod
        public LoadBalancer deleteL7PoolMembers(String l7PoolUuid, List memberUuids);

        /**
         * @see SoftLayer_Network_LBaaS_L7Member::getObject
         */
        @ApiMethod(instanceRequired = true)
        public L7Member getObject();

        /**
         * Update L7 members weight and port. 
         *
         * @see SoftLayer_Network_LBaaS_L7Member::updateL7PoolMembers
         */
        @ApiMethod
        public LoadBalancer updateL7PoolMembers(String l7PoolUuid, List members);

    }

    public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {

        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * Async version of {@link Service#addL7PoolMembers}
         */
        public Future addL7PoolMembers(String l7PoolUuid, List memberInstances);

        public Future addL7PoolMembers(String l7PoolUuid, List memberInstances, ResponseHandler callback);

        /**
         * Async version of {@link Service#deleteL7PoolMembers}
         */
        public Future deleteL7PoolMembers(String l7PoolUuid, List memberUuids);

        public Future deleteL7PoolMembers(String l7PoolUuid, List memberUuids, ResponseHandler callback);

        /**
         * Async version of {@link Service#getObject}
         */
        public Future getObject();

        public Future getObject(ResponseHandler callback);

        /**
         * Async version of {@link Service#updateL7PoolMembers}
         */
        public Future updateL7PoolMembers(String l7PoolUuid, List members);

        public Future updateL7PoolMembers(String l7PoolUuid, List members, ResponseHandler callback);

    }

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

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

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy