openapi-nexus 0.1.7

OpenAPI 3.x multi-language code generator
Documentation
// Code generated by openapi-nexus. DO NOT EDIT.
//
// Additional Properties API — 1.0.0
// API demonstrating OpenAPI additionalProperties with multiple levels of structs (RootLevel -> MiddleLevel -> LeafValue), each with HashMap fields.

package com.example.sdk.models;

import java.util.Map;

/**
 * Leaf level: fixed fields plus maps with string and integer value kinds.
 */
public class LeafValue {
    private Map<String, String> attributes;
    private Map<String, Object> extras;
    private String label;
    private Map<String, Integer> scores;
    private int value;

    public LeafValue(Map<String, String> attributes, Map<String, Object> extras, String label,
    Map<String, Integer> scores, int value) {
        this.attributes = attributes;
        this.extras = extras;
        this.label = label;
        this.scores = scores;
        this.value = value;
    }

    public Map<String, String> getAttributes() {
        return this.attributes;
    }

    public Map<String, Object> getExtras() {
        return this.extras;
    }

    public String getLabel() {
        return this.label;
    }

    public Map<String, Integer> getScores() {
        return this.scores;
    }

    public int getValue() {
        return this.value;
    }
}