org.opendatadiscovery.client.model.MetadataExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ingestion-contract-client Show documentation
Show all versions of ingestion-contract-client Show documentation
Ingestion Contract WebFlux Client defines OpenDataDiscovery APIs and models for Spring WebClient
/*
* OpenDataDiscovery API Contract
* OpenDataDiscovery API Contract
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.opendatadiscovery.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* MetadataExtension
*/
@JsonPropertyOrder({
MetadataExtension.JSON_PROPERTY_SCHEMA_URL,
MetadataExtension.JSON_PROPERTY_METADATA
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class MetadataExtension {
public static final String JSON_PROPERTY_SCHEMA_URL = "schema_url";
private URI schemaUrl;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map metadata = new HashMap<>();
public MetadataExtension() {
}
public MetadataExtension schemaUrl(URI schemaUrl) {
this.schemaUrl = schemaUrl;
return this;
}
/**
* The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this extension
* @return schemaUrl
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SCHEMA_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public URI getSchemaUrl() {
return schemaUrl;
}
@JsonProperty(JSON_PROPERTY_SCHEMA_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSchemaUrl(URI schemaUrl) {
this.schemaUrl = schemaUrl;
}
public MetadataExtension metadata(Map metadata) {
this.metadata = metadata;
return this;
}
public MetadataExtension putMetadataItem(String key, Object metadataItem) {
this.metadata.put(key, metadataItem);
return this;
}
/**
* Get metadata
* @return metadata
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS)
public Map getMetadata() {
return metadata;
}
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS)
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MetadataExtension metadataExtension = (MetadataExtension) o;
return Objects.equals(this.schemaUrl, metadataExtension.schemaUrl) &&
Objects.equals(this.metadata, metadataExtension.metadata);
}
@Override
public int hashCode() {
return Objects.hash(schemaUrl, metadata);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetadataExtension {\n");
sb.append(" schemaUrl: ").append(toIndentedString(schemaUrl)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy