com.garethahealy.camelmapstruct.entities.Bitter.java Source code

Java tutorial

Introduction

Here is the source code for com.garethahealy.camelmapstruct.entities.Bitter.java

Source

/*-
 * #%L
 * GarethHealy :: Camel MapStruct
 * %%
 * Copyright (C) 2013 - 2016 Gareth Healy
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package com.garethahealy.camelmapstruct.entities;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class Bitter {

    private String id;
    private String name;
    private String brewery;
    private String strength;
    private String colour;
    private String taste;

    public Bitter(String id, String name, String brewery, String strength, String colour, String taste) {
        this.id = id;
        this.name = name;
        this.brewery = brewery;
        this.strength = strength;
        this.colour = colour;
        this.taste = taste;
    }

    public Bitter() {

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrewery() {
        return brewery;
    }

    public void setBrewery(String brewery) {
        this.brewery = brewery;
    }

    public String getStrength() {
        return strength;
    }

    public void setStrength(String strength) {
        this.strength = strength;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public String getTaste() {
        return taste;
    }

    public void setTaste(String taste) {
        this.taste = taste;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this).append("id", id).append("name", name).append("brewery", brewery)
                .append("strength", strength).append("colour", colour).append("taste", taste).toString();
    }
}