All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ligoj.app.plugin.id.resource.ContainerEditionVo Maven / Gradle / Ivy

There is a newer version: 2.2.5
Show newest version
/*
 * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
 */
package org.ligoj.app.plugin.id.resource;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

import org.ligoj.app.iam.ContainerOrg;

import lombok.Getter;
import lombok.Setter;

/**
 * Group/company for edition.
 */
@Getter
@Setter
public class ContainerEditionVo {

	/**
	 * Container name, original CN.
	 */
	@NotNull
	@NotEmpty
	@NotBlank
	@Size(max = 255)
	@Pattern(regexp = ContainerOrg.NAME_PATTERN)
	private String name;

	/**
	 * The type of this container.
	 */
	@NotNull
	private Integer scope;

	/**
	 * Optional parent/company group name. Must exist.
	 */
	private String parent;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy