net.nemerosa.ontrack.model.structure.ServiceConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.structure;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;
/**
* Association between a configuration service ID and an actual configuration data.
*/
@Data
public class ServiceConfiguration {
private final String id;
private final JsonNode data;
public static ServiceConfiguration of(JsonNode node) {
return new ServiceConfiguration(
node.get("id").asText(),
node.get("data")
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy