All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.kogito.openapi.multiplication.model.MultiplicationOperation Maven / Gradle / Ivy

package org.kie.kogito.openapi.multiplication.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 java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.Type;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class MultiplicationOperation  {

    private Float leftElement;
    private Float rightElement;
    private List unusedElement;

    /**
    * Get leftElement
    * @return leftElement
    **/
    @JsonProperty("leftElement")
    public Float getLeftElement() {
        return leftElement;
    }

    /**
     * Set leftElement
     **/
    public void setLeftElement(Float leftElement) {
        this.leftElement = leftElement;
    }

    public MultiplicationOperation 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 MultiplicationOperation rightElement(Float rightElement) {
        this.rightElement = rightElement;
        return this;
    }

    /**
    * Get unusedElement
    * @return unusedElement
    **/
    @JsonProperty("unusedElement")
          @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
    public List getUnusedElement() {
        return unusedElement;
    }

    /**
     * Set unusedElement
     **/
    public void setUnusedElement(List unusedElement) {
        this.unusedElement = unusedElement;
    }

    public MultiplicationOperation unusedElement(List unusedElement) {
        this.unusedElement = unusedElement;
        return this;
    }
    public MultiplicationOperation addUnusedElementItem(String unusedElementItem) {
        if (this.unusedElement == null){
            unusedElement = new ArrayList<>();
        }
        this.unusedElement.add(unusedElementItem);
        return this;
    }

    /**
     * Create a string representation of this pojo.
     **/
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class MultiplicationOperation {\n");

        sb.append("    leftElement: ").append(toIndentedString(leftElement)).append("\n");
        sb.append("    rightElement: ").append(toIndentedString(rightElement)).append("\n");
        sb.append("    unusedElement: ").append(toIndentedString(unusedElement)).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 MultiplicationOperationQueryParam  {

        @jakarta.ws.rs.QueryParam("leftElement")
        private Float leftElement;
        @jakarta.ws.rs.QueryParam("rightElement")
        private Float rightElement;
        @jakarta.ws.rs.QueryParam("unusedElement")
        private List unusedElement = null;

        /**
        * Get leftElement
        * @return leftElement
        **/
        @JsonProperty("leftElement")
        public Float getLeftElement() {
            return leftElement;
        }

        /**
         * Set leftElement
         **/
        public void setLeftElement(Float leftElement) {
            this.leftElement = leftElement;
        }

        public MultiplicationOperationQueryParam 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 MultiplicationOperationQueryParam rightElement(Float rightElement) {
            this.rightElement = rightElement;
            return this;
        }

        /**
        * Get unusedElement
        * @return unusedElement
        **/
        @JsonProperty("unusedElement")
        public List getUnusedElement() {
            return unusedElement;
        }

        /**
         * Set unusedElement
         **/
        public void setUnusedElement(List unusedElement) {
            this.unusedElement = unusedElement;
        }

        public MultiplicationOperationQueryParam unusedElement(List unusedElement) {
            this.unusedElement = unusedElement;
            return this;
        }
        public MultiplicationOperationQueryParam addUnusedElementItem(String unusedElementItem) {
            this.unusedElement.add(unusedElementItem);
            return this;
        }

        /**
         * Create a string representation of this pojo.
         **/
        @Override
        public String toString() {
            StringBuilder sb = new StringBuilder();
            sb.append("class MultiplicationOperationQueryParam {\n");

            sb.append("    leftElement: ").append(toIndentedString(leftElement)).append("\n");
            sb.append("    rightElement: ").append(toIndentedString(rightElement)).append("\n");
            sb.append("    unusedElement: ").append(toIndentedString(unusedElement)).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