
org.kie.kogito.openapi.subtraction.model.SubtractionOperation Maven / Gradle / Ivy
package org.kie.kogito.openapi.subtraction.model;
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 com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.Type;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class SubtractionOperation {
private Float leftElement;
private Float rightElement;
/**
* Get leftElement
* @return leftElement
**/
@JsonProperty("leftElement")
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
public Float getLeftElement() {
return leftElement;
}
/**
* Set leftElement
**/
public void setLeftElement(Float leftElement) {
this.leftElement = leftElement;
}
public SubtractionOperation leftElement(Float leftElement) {
this.leftElement = leftElement;
return this;
}
/**
* Get rightElement
* @return rightElement
**/
@JsonProperty("rightElement")
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
public Float getRightElement() {
return rightElement;
}
/**
* Set rightElement
**/
public void setRightElement(Float rightElement) {
this.rightElement = rightElement;
}
public SubtractionOperation rightElement(Float rightElement) {
this.rightElement = rightElement;
return this;
}
/**
* Create a string representation of this pojo.
**/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubtractionOperation {\n");
sb.append(" leftElement: ").append(toIndentedString(leftElement)).append("\n");
sb.append(" rightElement: ").append(toIndentedString(rightElement)).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 static String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
@JsonIgnoreProperties(ignoreUnknown = true)
public static class SubtractionOperationQueryParam {
@jakarta.ws.rs.QueryParam("leftElement")
private Float leftElement;
@jakarta.ws.rs.QueryParam("rightElement")
private Float rightElement;
/**
* Get leftElement
* @return leftElement
**/
@JsonProperty("leftElement")
public Float getLeftElement() {
return leftElement;
}
/**
* Set leftElement
**/
public void setLeftElement(Float leftElement) {
this.leftElement = leftElement;
}
public SubtractionOperationQueryParam leftElement(Float leftElement) {
this.leftElement = leftElement;
return this;
}
/**
* Get rightElement
* @return rightElement
**/
@JsonProperty("rightElement")
public Float getRightElement() {
return rightElement;
}
/**
* Set rightElement
**/
public void setRightElement(Float rightElement) {
this.rightElement = rightElement;
}
public SubtractionOperationQueryParam rightElement(Float rightElement) {
this.rightElement = rightElement;
return this;
}
/**
* Create a string representation of this pojo.
**/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubtractionOperationQueryParam {\n");
sb.append(" leftElement: ").append(toIndentedString(leftElement)).append("\n");
sb.append(" rightElement: ").append(toIndentedString(rightElement)).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 static String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy