2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
23 import org.hibernate.validator.constraints.NotBlank;
24 import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
26 import javax.validation.constraints.NotNull;
27 import javax.validation.constraints.Pattern;
29 public class NicRequestDto {
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._-]*$\"")
34 private String description;
35 private String networkId;
37 @ValidateString(acceptedValues = {"External", "Internal"}, message = "doesn't "
38 + "meet the expected attribute value.", isCaseSensitive = true)
39 private String networkType;
41 private String networkDescription;
43 public String getName() {
47 public void setName(String name) {
51 public String getDescription() {
55 public void setDescription(String description) {
56 this.description = description;
59 public String getNetworkId() {
63 public void setNetworkId(String networkId) {
64 this.networkId = networkId;
67 public String getNetworkType(){
71 public void setNetworkType(String networkType){
72 this.networkType = networkType;
75 public String getNetworkDescription(){
76 return networkDescription;
79 public void setNetworkDescription(String networkDescription){
80 this.networkDescription = networkDescription;