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;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("bi_pool_member")
public class BiPoolMember extends GenericEntity {
    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    // @Column("pool_member_name")
    // private String poolMemberName;
    @Column("pool_member_address")
    private String poolMemberAddress;
    @Column("pool_member_port")
    private String poolMemberPort;
    @Column("type")
    private String type;
    @Column("vendor_id")
    private Long vendorId;
    @Column("pool_id")
    private Long poolId;
    @Column("node_id")
    private Long nodeId;
    @Column("ratio")
    private Long ratio;
    @Column("priority")
    private Long priority;
    @Column("connection_limit")
    private Long connectionLimit;
    @Column("connection_rate_limit")
    private Long connectionRateLimit;
    @Column("partition_id")
    private Long partitionId;
    @IgnoreAll
    private String nodeType;
    @IgnoreAll
    private String memberName;
    @IgnoreAll
    private String nodeStatus;
    @IgnoreAll
    private String partitionName;
}
