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

com.github.erosb.kappa.parser.model.v3.Discriminator Maven / Gradle / Ivy

The newest version!
package com.github.erosb.kappa.parser.model.v3;

import com.github.erosb.kappa.parser.model.AbsOpenApiSchema;

import java.util.Map;

public class Discriminator extends AbsOpenApiSchema {
  private Map mapping;
  private String propertyName;

  public String getPropertyName() {
    return propertyName;
  }

  public Discriminator setPropertyName(String propertyName) {
    this.propertyName = propertyName;
    return this;
  }

  public Map getMapping() {
    return mapping;
  }

  public Discriminator setMapping(Map mapping) {
    this.mapping = mapping;
    return this;
  }

  @Override
  public Discriminator copy() {
    Discriminator copy = new Discriminator();

    copy.setPropertyName(getPropertyName());
    copy.setMapping(copySimpleMap(getMapping()));

    return copy;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy