@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", @NotNull @JsonProperty("apiVersion") private String apiVersion = "admission.k8s.io/v1beta1"; @NotNull @JsonProperty("kind") private String kind = "AdmissionReview"; @JsonProperty("request") @Valid private AdmissionRequest request; @JsonProperty("response") @Valid private AdmissionResponse response; @JsonIgnore
public class MessageCacheConfiguration { @JsonProperty @NotNull @Valid private RedisConfiguration redis; @JsonProperty private int persistDelayMinutes = 10; public RedisConfiguration getRedisConfiguration() { return redis; } public int getPersistDelayMinutes() { return persistDelayMinutes; } }
/** */ public class ConfigManagerConfig { @JsonProperty @NotNull private Period pollDuration = new Period("PT1M"); public Period getPollDuration() { return pollDuration; } }
/** * @author Zhao Junjian */ @Getter @Setter @NoArgsConstructor @ToString(callSuper = true) @EqualsAndHashCode(callSuper = true) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true) public class LoginRequest extends RestfulRequest { private static final long serialVersionUID = -3286520204644035655L; @NotNull @NotBlank @Pattern(regexp = "^\\d{11}$", message = "请输入11位手机号") @JsonProperty("mobile") @ApiModelProperty(value = "手机号", example = "18888888888", required = true) private String mobile; @NotNull @Size(min = 6, max = 20, message = "请输入6~20位的密码") @JsonProperty("login_pwd") @ApiModelProperty(value = "登录与支付密码", example = "123123123", required = true) private String loginPwd; }
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "post_office_box", "extended_address", public class Address { @NotNull @JsonProperty("locality") private String locality; @NotNull @JsonProperty("region") private String region; @NotNull @JsonProperty("country_name") private String countryName; @JsonProperty("address") @Valid private List<Object> address = new ArrayList<Object>(); @JsonIgnore @Valid private Map<String, Object> additionalProperties = new HashMap<String, Object>();
/** * @author Zhao Junjian */ @Getter @Setter @AllArgsConstructor @ToString @EqualsAndHashCode @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true) public class TccRequest implements Serializable { private static final long serialVersionUID = 1847362921754190531L; @Valid @NotNull @Size(min = 1) @ApiModelProperty(value = "参与方提供的链接集合", required = true) private List<Participant> participantLinks; }
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class IdentityZone { @NotNull private String subdomain; @NotNull private String name; @JsonProperty("last_modified") private Date lastModified = new Date();
@JsonProperty("node_name") @NotNull @Size(min = 1) public abstract String nodeName();
@Description("config.pool") @JsonPropertyOrder({"connectionPoolTimeout", "connectionPoolSize"}) public class Pool implements ConnectionPoolConfig { @NotNull @JsonProperty(required = true) private Long connectionPoolTimeout = 10L * 1000; @Description("config.generic.connectionPoolSize") @NotNull @Min(20) @JsonProperty(required = true) private Integer connectionPoolSize = 30; @NotNull @Min(1) @JsonIgnore
private static class SimpleBean { @NotNull private final String name; public SimpleBean(String name) { this.name = name; } @SuppressWarnings("unused") public String getName() { return name; } }
/** * * @param workflowDefList Workflow definitions to be updated. */ void updateWorkflowDef(@NotNull(message = "WorkflowDef list name cannot be null or empty") @Size(min=1, message = "WorkflowDefList is empty") List<@NotNull(message = "WorkflowDef cannot be null") @Valid WorkflowDef> workflowDefList);
if (notNull != null) { if (isDefinedForDefaultValidationGroup(notNull)) { metaProperty.getAnnotations().put(NotNull.class.getName() + VALIDATION_NOTNULL_MESSAGE, notNull.message()); metaProperty.getAnnotations().put(NotNull.class.getName() + VALIDATION_NOTNULL_MESSAGE, notNull.message()); metaProperty.getAnnotations().put(NotNull.class.getName() + VALIDATION_NOTNULL_UI_COMPONENT, true); metaProperty.getAnnotations().put(Size.class.getName() + VALIDATION_MIN, size.min()); metaProperty.getAnnotations().put(Size.class.getName() + VALIDATION_MAX, size.max());