package cn.reghao.bnt.common.docker.model;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author reghao
 * @date 2024-07-26 17:29:56
 */
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class DockerAuth implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "url 不能为空")
    @Size(max = 255, message = "url 的最大长度不能超过 255 个字符")
    private String registryUrl;
    @NotBlank(message = "帐号不能为空")
    @Size(max = 255, message = "帐号的最大长度不能超过 255 个字符")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Size(max = 255, message = "密码的最大长度不能超过 255 个字符")
    private String password;
}
