[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 / ComponentRequestDto.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
22
23 import javax.validation.constraints.NotNull;
24 import javax.validation.constraints.Size;
25
26 public class ComponentRequestDto {
27
28   private String name;
29   @NotNull(message = "VFC displayName is mandatory.")
30   @Size(min = 1, max = 30,message = "VFC displayName length should be between 1 and 30.")
31   private String displayName;
32   @Size(min = 0, max = 1000,message = "description length should not exceed 1000.")
33   private String vfcCode;
34   private String nfcCode;
35   private String nfcFunction;
36   private String description;
37
38   public String getName() {
39     return name;
40   }
41
42   public void setName(String name) {
43     this.name = name;
44   }
45
46   public String getDisplayName() {
47     return displayName;
48   }
49
50   public void setDisplayName(String displayName) {
51     this.displayName = displayName;
52   }
53
54   public String getDescription() {
55     return description;
56   }
57
58   public void setDescription(String description) {
59     this.description = description;
60   }
61
62   public String getVfcCode() {
63     return vfcCode;
64   }
65
66   public void setVfcCode(String vfcCode) {
67     this.vfcCode = vfcCode;
68   }
69
70   public String getNfcCode() {
71     return nfcCode;
72   }
73
74   public void setNfcCode(String nfcCode) {
75     this.nfcCode = nfcCode;
76   }
77
78   public String getNfcFunction() {
79     return nfcFunction;
80   }
81
82   public void setNfcFunction(String nfcFunction) {
83     this.nfcFunction = nfcFunction;
84   }
85 }