package com.usky.issue.service.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 保存云平台配置请求
 *
 * @author fyc
 * @date 2026-05-21
 */
@Data
public class CloudConfigSaveRequest {

    @NotNull(message = "租户ID不能为空")
    //@Size(max = 64, message = "租户ID长度不能超过64")
    private Integer tenantId;

    @NotBlank(message = "凭证密钥不能为空")
    @Size(max = 256, message = "凭证密钥长度不能超过256")
    private String credentialKey;

    /** 乐观锁版本，更新时必填 */
    private Integer version;
}
