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

org.openapitools.codegen.CodegenEncoding Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
package org.openapitools.codegen;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

public class CodegenEncoding {
    private String contentType;
    private List headers;
    private String style;
    private boolean explode;
    private boolean allowReserved;
    public Map vendorExtensions = new HashMap<>();

    public CodegenEncoding(String contentType, List headers, String style, boolean explode, boolean allowReserved) {
        this.contentType = contentType;
        this.headers = headers;
        this.style = style;
        this.explode = explode;
        this.allowReserved = allowReserved;
    }

    public String getContentType() {
        return contentType;
    }

    public List getHeaders() {
        return headers;
    }

    public String getStyle() {
        return style;
    }

    public boolean getExplode() {
        return explode;
    }

    public boolean getAllowReserved() {
        return allowReserved;
    }

    public Map getVendorExtensions() {
        return vendorExtensions;
    }

    public String toString() {
        final StringBuilder sb = new StringBuilder("CodegenEncoding{");
        sb.append("contentType=").append(contentType);
        sb.append(", headers=").append(headers);
        sb.append(", style=").append(style);
        sb.append(", explode=").append(explode);
        sb.append(", allowReserved=").append(allowReserved);
        sb.append(", vendorExtensions=").append(vendorExtensions);
        sb.append('}');
        return sb.toString();
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CodegenEncoding that = (CodegenEncoding) o;
        return contentType == that.getContentType() &&
                Objects.equals(headers, that.getHeaders()) &&
                style == that.getStyle() &&
                explode == that.getExplode() &&
                allowReserved == that.getAllowReserved() &&
                Objects.equals(vendorExtensions, that.vendorExtensions);
    }

    @Override
    public int hashCode() {
        return Objects.hash(contentType, headers, style, explode, allowReserved, vendorExtensions);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy