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_rule")
public class BiIRules extends GenericEntity {
    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("api_anonymous")
    private String apiAnonymous;
    @Column("ignore_verification")
    private Boolean ignoreVerification;
    @Column("verification_tatus")
    private String verificationStatus;
    @Column("vendor_id")
    private Long vendorId;
    @Column("is_reserved")
    private Boolean reserved;
    @Column("partition_id")
    private Long partitionId;
    @IgnoreAll
    private String partitionName;

    public BiIRules(String apiAnonymous, Boolean ignoreVerification, String verificationStatus, Long vendorId,
                    Boolean reserved) {
        super();
        this.apiAnonymous = apiAnonymous;
        this.ignoreVerification = ignoreVerification;
        this.verificationStatus = verificationStatus;
        this.vendorId = vendorId;
        this.reserved = reserved;
    }
}
