com.clinia.model.registry.V1Profile Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.registry;
import com.clinia.model.common.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/** V1Profile */
public class V1Profile {
@JsonProperty("key")
private String key;
@JsonProperty("properties")
private Map properties = new HashMap<>();
@JsonProperty("contained")
private Map contained;
public V1Profile setKey(String key) {
this.key = key;
return this;
}
/** Get key */
@javax.annotation.Nonnull
public String getKey() {
return key;
}
public V1Profile setProperties(Map properties) {
this.properties = properties;
return this;
}
public V1Profile putProperties(String key, V1PropertyDefinition propertiesItem) {
this.properties.put(key, propertiesItem);
return this;
}
/** Get properties */
@javax.annotation.Nonnull
public Map getProperties() {
return properties;
}
public V1Profile setContained(Map contained) {
this.contained = contained;
return this;
}
public V1Profile putContained(String key, V1ContainedDefinition containedItem) {
if (this.contained == null) {
this.contained = new HashMap<>();
}
this.contained.put(key, containedItem);
return this;
}
/** Get contained */
@javax.annotation.Nullable
public Map getContained() {
return contained;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1Profile v1Profile = (V1Profile) o;
return (
Objects.equals(this.key, v1Profile.key) &&
Objects.equals(this.properties, v1Profile.properties) &&
Objects.equals(this.contained, v1Profile.contained)
);
}
@Override
public int hashCode() {
return Objects.hash(key, properties, contained);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1Profile {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" contained: ").append(toIndentedString(contained)).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 ");
}
}