package com.cfdeployer.model;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CfDeployRequest {

    @NotBlank(message = "API endpoint is required")
    private String apiEndpoint;

    @NotBlank(message = "Username is required")
    private String username;

    @NotBlank(message = "Password is required")
    private String password;

    @NotBlank(message = "Organization is required")
    private String organization;

    @NotBlank(message = "Space is required")
    private String space;

    @NotBlank(message = "Application name is required")
    private String appName;

    @NotNull(message = "Skip SSL validation flag is required")
    private Boolean skipSslValidation;
}
