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 javax.validation.constraints.NotNull;
24 import javax.validation.constraints.Size;
26 public class ComponentRequestDto {
29 @NotNull(message = "VFC displayName is mandatory.")
30 @Size(min = 1, max = 30,message = "VFC displayName length should be between 1 and 30.")
31 private String displayName;
32 @Size(min = 0, max = 1000,message = "description length should not exceed 1000.")
33 private String vfcCode;
34 private String nfcCode;
35 private String nfcFunction;
36 private String description;
38 public String getName() {
42 public void setName(String name) {
46 public String getDisplayName() {
50 public void setDisplayName(String displayName) {
51 this.displayName = displayName;
54 public String getDescription() {
58 public void setDescription(String description) {
59 this.description = description;
62 public String getVfcCode() {
66 public void setVfcCode(String vfcCode) {
67 this.vfcCode = vfcCode;
70 public String getNfcCode() {
74 public void setNfcCode(String nfcCode) {
75 this.nfcCode = nfcCode;
78 public String getNfcFunction() {
82 public void setNfcFunction(String nfcFunction) {
83 this.nfcFunction = nfcFunction;