org.openapi4j.parser.model.v3.Contact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-parser Show documentation
Show all versions of openapi-parser Show documentation
openapi4j schema parser & validator
package org.openapi4j.parser.model.v3;
import org.openapi4j.core.model.OAIContext;
public class Contact extends AbsExtendedOpenApiSchema {
private String email;
private String name;
private String url;
// Name
public String getName() {
return name;
}
public Contact setName(String name) {
this.name = name;
return this;
}
// Url
public String getUrl() {
return url;
}
public Contact setUrl(String url) {
this.url = url;
return this;
}
// Email
public String getEmail() {
return email;
}
public Contact setEmail(String email) {
this.email = email;
return this;
}
@Override
public Contact copy(OAIContext context, boolean followRefs) {
Contact copy = new Contact();
copy.setName(getName());
copy.setUrl(getUrl());
copy.setEmail(getEmail());
copy.setExtensions(copyMap(getExtensions()));
return copy;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy