[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-software-products-rest / vendor-software-products-rest-types / src / main / java / org / openecomp / sdcrests / vendorsoftwareproducts / types / DeploymentFlavorRequestDto.java
1 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
2
3
4 import org.hibernate.validator.constraints.NotBlank;
5 import org.openecomp.sdc.vendorsoftwareproduct.types.composition.ComponentComputeAssociation;
6
7 import java.util.List;
8 import javax.validation.constraints.Pattern;
9 import javax.validation.constraints.Size;
10
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.")
15     private String model;
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;
20
21     public String getModel() {
22         return model;
23     }
24
25     public void setModel(String model) {
26         this.model = model;
27     }
28
29     public String getDescription() {
30         return description;
31     }
32
33     public void setDescription(String description) {
34         this.description = description;
35     }
36
37     public String getFeatureGroupId() {
38         return featureGroupId;
39     }
40
41     public void setFeatureGroupId(String featureGroupId) {
42         this.featureGroupId = featureGroupId;
43     }
44
45     public List<ComponentComputeAssociation> getComponentComputeAssociations() {
46         return componentComputeAssociations;
47     }
48
49     public void setComponentComputeAssociations(List<ComponentComputeAssociation> componentComputeAssociations) {
50         this.componentComputeAssociations = componentComputeAssociations;
51     }
52
53 }