1 /*******************************************************************************
2 * Copyright 2017 Infosys Limited and others.
3 *------------------------------------------------------------------------------
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
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software distributed under the License
8 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9 * or implied. See the License for the specific language governing permissions and limitations under
11 ******************************************************************************/
12 package org.onap.msb.sdk.example.springboot.model;
14 import java.io.Serializable;
16 import com.fasterxml.jackson.annotation.JsonProperty;
18 public class Employee implements Serializable {
20 private static final long serialVersionUID = 1L;
26 private String firstName;
29 private String lastName;
36 public Employee(Integer id, String firstName, String lastName, String email) {
39 this.firstName = firstName;
40 this.lastName = lastName;
44 public Integer getId() {
47 public void setId(Integer id) {
50 public String getFirstName() {
53 public void setFirstName(String firstName) {
54 this.firstName = firstName;
56 public String getLastName() {
59 public void setLastName(String lastName) {
60 this.lastName = lastName;
62 public String getEmail() {
65 public void setEmail(String email) {
70 public String toString() {
71 return "Employee [id=" + id + ", firstName=" + firstName
72 + ", lastName=" + lastName + ", email=" + email + "]";