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