1 /*******************************************************************************
2 * Copyright 2017 Infosys Limited and others.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
13 ******************************************************************************/
14 package org.onap.msb.sdk.example.springboot.model;
16 import java.io.Serializable;
17 import com.fasterxml.jackson.annotation.JsonProperty;
19 public class Employee implements Serializable {
21 private static final long serialVersionUID = 1L;
27 private String firstName;
30 private String lastName;
37 public Employee(Integer id, String firstName, String lastName, String email) {
40 this.firstName = firstName;
41 this.lastName = lastName;
45 public Integer getId() {
48 public void setId(Integer id) {
51 public String getFirstName() {
54 public void setFirstName(String firstName) {
55 this.firstName = firstName;
57 public String getLastName() {
60 public void setLastName(String lastName) {
61 this.lastName = lastName;
63 public String getEmail() {
66 public void setEmail(String email) {
71 public String toString() {
72 return "Employee [id=" + id + ", firstName=" + firstName
73 + ", lastName=" + lastName + ", email=" + email + "]";