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

io.github.springwolf.asyncapi.v3.model.server.ServerReference 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.server;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.springwolf.asyncapi.v3.model.Reference;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ServerReference implements Reference {
    @JsonIgnore
    private String ref;

    @Override
    public String getRef() {
        return ref;
    }

    public static ServerReference fromServer(String server) {
        return new ServerReference("#/servers/" + server);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy