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

pl.allegro.tech.hermes.api.OffsetRetransmissionDate Maven / Gradle / Ivy

There is a newer version: 2.6.22
Show newest version
package pl.allegro.tech.hermes.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import jakarta.validation.constraints.NotNull;
import pl.allegro.tech.hermes.api.jackson.OffsetDateTimeSerializer;

import java.time.OffsetDateTime;

public class OffsetRetransmissionDate {

    @NotNull
    private final OffsetDateTime retransmissionDate;

    public OffsetRetransmissionDate(@JsonProperty("retransmissionDate") OffsetDateTime retransmissionDate) {
        this.retransmissionDate = retransmissionDate;
    }

    @JsonSerialize(using = OffsetDateTimeSerializer.class)
    public OffsetDateTime getRetransmissionDate() {
        return retransmissionDate;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy