f4663fb2ae50a8cc40c3f88553e178e30ad0bca2
[sdc.git] /
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
28 public class NicRequestDto {
29
30   @NotBlank(message = "is mandatory and should not be empty")
31   private String name;
32   private String description;
33   private String networkId;
34   @NotNull
35   @ValidateString(acceptedValues = {"External", "Internal"}, message =   "doesn't "
36       +  "meet the expected attribute value.", isCaseSensitive = true)
37   private String networkType;
38
39   private String networkDescription;
40
41   public String getName() {
42     return name;
43   }
44
45   public void setName(String name) {
46     this.name = name;
47   }
48
49   public String getDescription() {
50     return description;
51   }
52
53   public void setDescription(String description) {
54     this.description = description;
55   }
56
57   public String getNetworkId() {
58     return networkId;
59   }
60
61   public void setNetworkId(String networkId) {
62     this.networkId = networkId;
63   }
64
65   public String getNetworkType(){
66     return networkType;
67   }
68
69   public void setNetworkType(String networkType){
70     this.networkType = networkType;
71   }
72
73   public String getNetworkDescription(){
74     return networkDescription;
75   }
76
77   public void setNetworkDescription(String networkDescription){
78     this.networkDescription = networkDescription;
79   }
80 }