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;
28 public class NicRequestDto {
30 @NotBlank(message = "is mandatory and should not be empty")
32 private String description;
33 private String networkId;
35 @ValidateString(acceptedValues = {"External", "Internal"}, message = "doesn't "
36 + "meet the expected attribute value.", isCaseSensitive = true)
37 private String networkType;
39 private String networkDescription;
41 public String getName() {
45 public void setName(String name) {
49 public String getDescription() {
53 public void setDescription(String description) {
54 this.description = description;
57 public String getNetworkId() {
61 public void setNetworkId(String networkId) {
62 this.networkId = networkId;
65 public String getNetworkType(){
69 public void setNetworkType(String networkType){
70 this.networkType = networkType;
73 public String getNetworkDescription(){
74 return networkDescription;
77 public void setNetworkDescription(String networkDescription){
78 this.networkDescription = networkDescription;