1 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
4 import org.hibernate.validator.constraints.NotBlank;
5 import org.openecomp.sdc.vendorsoftwareproduct.types.composition.ComponentComputeAssociation;
8 import javax.validation.constraints.Pattern;
9 import javax.validation.constraints.Size;
11 public class DeploymentFlavorRequestDto {
12 @NotBlank(message = "is mandatory and should not be empty")
13 @Pattern(regexp = "^[a-zA-Z 0-9._-]*$", message = "must match \"^[a-zA-Z 0-9._-]*$\"")
14 @Size(min = 0, max = 30,message = "length should not exceed 30 characters.")
16 @Size(min = 0, max = 300,message = "length should not exceed 300 characters.")
17 private String description;
18 private String featureGroupId;
19 private List<ComponentComputeAssociation> componentComputeAssociations;
21 public String getModel() {
25 public void setModel(String model) {
29 public String getDescription() {
33 public void setDescription(String description) {
34 this.description = description;
37 public String getFeatureGroupId() {
38 return featureGroupId;
41 public void setFeatureGroupId(String featureGroupId) {
42 this.featureGroupId = featureGroupId;
45 public List<ComponentComputeAssociation> getComponentComputeAssociations() {
46 return componentComputeAssociations;
49 public void setComponentComputeAssociations(List<ComponentComputeAssociation> componentComputeAssociations) {
50 this.componentComputeAssociations = componentComputeAssociations;