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

io.github.springwolf.asyncapi.v3.model.channel.message.MessageExample Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
// SPDX-License-Identifier: Apache-2.0
package io.github.springwolf.asyncapi.v3.model.channel.message;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.springwolf.asyncapi.v3.model.ExtendableObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class MessageExample extends ExtendableObject {
    /**
     * The value of this field MUST validate against the Message Object's headers field.
     */
    @JsonProperty(value = "headers")
    private Map headers;

    /**
     * The value of this field MUST validate against the Message Object's payload field.
     */
    @JsonProperty(value = "payload")
    private Map payload;

    /**
     * A machine-friendly name.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * A short summary of what the example is about.
     */
    @JsonProperty(value = "summary")
    private String summary;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy