com.seeq.model.CapsulePropertyOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Capsule Properties
*/
@Schema(description = "Capsule Properties")
public class CapsulePropertyOutputV1 {
@JsonProperty("name")
private String name = null;
@JsonProperty("unitOfMeasure")
private String unitOfMeasure = null;
public CapsulePropertyOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* Property name
* @return name
**/
@Schema(required = true, description = "Property name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CapsulePropertyOutputV1 unitOfMeasure(String unitOfMeasure) {
this.unitOfMeasure = unitOfMeasure;
return this;
}
/**
* The unit of measure that applies to this property. An empty string indicates unitless
* @return unitOfMeasure
**/
@Schema(description = "The unit of measure that applies to this property. An empty string indicates unitless")
public String getUnitOfMeasure() {
return unitOfMeasure;
}
public void setUnitOfMeasure(String unitOfMeasure) {
this.unitOfMeasure = unitOfMeasure;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CapsulePropertyOutputV1 capsulePropertyOutputV1 = (CapsulePropertyOutputV1) o;
return Objects.equals(this.name, capsulePropertyOutputV1.name) &&
Objects.equals(this.unitOfMeasure, capsulePropertyOutputV1.unitOfMeasure);
}
@Override
public int hashCode() {
return Objects.hash(name, unitOfMeasure);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CapsulePropertyOutputV1 {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" unitOfMeasure: ").append(toIndentedString(unitOfMeasure)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}