package com.bocloud.ims.entity.resource.f5;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.IgnoreAll;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.GenericEntity;
import com.bocloud.entity.meta.PKStrategy;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * f5 pool
 * 
 * @author liuyuanyuan
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("bi_pool")
public class BiPool extends GenericEntity {
    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("monitor")
    private String monitor;
    @Column("vendor_id")
    private Long vendorId;
    @Column("loadBalancing_method")
    private String loadBalancingMethod;
    @Column("priority_group_activation")
    private String priorityGroupActivation;
    @Column("available_member")
    private String availableMember;
    @Column("partition_id")
    private Long partitionId;
    @IgnoreAll
    private String partitionName;
    @IgnoreAll
    private List<BiPoolMember> members;
    @IgnoreAll
    private Long memberCount;

}
