All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.galasa.framework.spi.events.Event Maven / Gradle / Ivy

There is a newer version: 0.37.0
Show newest version
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.framework.spi.events;

import java.util.UUID;

public class Event implements IEvent {

    private String id;
    private String timestamp;
    private String message;

    public Event(String timestamp, String message){
        this.id = UUID.randomUUID().toString();
        this.timestamp = timestamp;
        this.message = message;
    }

    public String getId(){
        return this.id;
    }

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

    public String getTimestamp(){
        return this.timestamp;
    }

    public void setTimestamp(String timestamp){
        this.timestamp = timestamp;
    }

    public String getMessage(){
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return  this.getClass().getName() + "{" +
                "id='" + id + '\'' +
                ", timestamp=" + timestamp +
                ", message='" + message + '\'' +
                '}';
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy