com.algolia.model.ingestion.BigCommerceMetafield Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.ingestion;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** BigCommerceMetafield */
public class BigCommerceMetafield {
@JsonProperty("namespace")
private String namespace;
@JsonProperty("key")
private String key;
public BigCommerceMetafield setNamespace(String namespace) {
this.namespace = namespace;
return this;
}
/** Namespace of the metafield. */
@javax.annotation.Nonnull
public String getNamespace() {
return namespace;
}
public BigCommerceMetafield setKey(String key) {
this.key = key;
return this;
}
/** Key identifier of the metafield. */
@javax.annotation.Nonnull
public String getKey() {
return key;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BigCommerceMetafield bigCommerceMetafield = (BigCommerceMetafield) o;
return Objects.equals(this.namespace, bigCommerceMetafield.namespace) && Objects.equals(this.key, bigCommerceMetafield.key);
}
@Override
public int hashCode() {
return Objects.hash(namespace, key);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BigCommerceMetafield {\n");
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).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 - 2025 Weber Informatics LLC | Privacy Policy