[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 / NicRequestDto.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 org.hibernate.validator.constraints.NotBlank;
24 import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
25
26 import javax.validation.constraints.NotNull;
27 import javax.validation.constraints.Pattern;
28
29 public class NicRequestDto {
30
31   @NotBlank(message = "is mandatory and should not be empty")
32   @Pattern(regexp = "^[a-zA-Z 0-9._-]*$", message = "must match \"^[a-zA-Z 0-9._-]*$\"")
33   private String name;
34   private String description;
35   private String networkId;
36   @NotNull
37   @ValidateString(acceptedValues = {"External", "Internal"}, message =   "doesn't "
38       +  "meet the expected attribute value.", isCaseSensitive = true)
39   private String networkType;
40
41   private String networkDescription;
42
43   public String getName() {
44     return name;
45   }
46
47   public void setName(String name) {
48     this.name = name;
49   }
50
51   public String getDescription() {
52     return description;
53   }
54
55   public void setDescription(String description) {
56     this.description = description;
57   }
58
59   public String getNetworkId() {
60     return networkId;
61   }
62
63   public void setNetworkId(String networkId) {
64     this.networkId = networkId;
65   }
66
67   public String getNetworkType(){
68     return networkType;
69   }
70
71   public void setNetworkType(String networkType){
72     this.networkType = networkType;
73   }
74
75   public String getNetworkDescription(){
76     return networkDescription;
77   }
78
79   public void setNetworkDescription(String networkDescription){
80     this.networkDescription = networkDescription;
81   }
82 }