com.ziqni.admin.sdk.model.RuleRoutine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces.
*
* The version of the OpenAPI document: 3.0.11
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
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.ziqni.admin.sdk.model.RuleArgument;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* RuleRoutine
*/
@JsonPropertyOrder({
RuleRoutine.JSON_PROPERTY_ROUTINE,
RuleRoutine.JSON_PROPERTY_ARGUMENTS,
RuleRoutine.JSON_PROPERTY_LINE_NUMBER
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RuleRoutine {
public static final String JSON_PROPERTY_ROUTINE = "routine";
private String routine;
public static final String JSON_PROPERTY_ARGUMENTS = "arguments";
private List arguments = null;
public static final String JSON_PROPERTY_LINE_NUMBER = "lineNumber";
private Integer lineNumber;
public RuleRoutine routine(String routine) {
this.routine = routine;
return this;
}
/**
* A routine to execute if the conditional expressions in the matching group evaluted to true
* @return routine
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A routine to execute if the conditional expressions in the matching group evaluted to true")
@JsonProperty(JSON_PROPERTY_ROUTINE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRoutine() {
return routine;
}
@JsonProperty(JSON_PROPERTY_ROUTINE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRoutine(String routine) {
this.routine = routine;
}
public RuleRoutine arguments(List arguments) {
this.arguments = arguments;
return this;
}
public RuleRoutine addArgumentsItem(RuleArgument argumentsItem) {
if (this.arguments == null) {
this.arguments = new ArrayList<>();
}
this.arguments.add(argumentsItem);
return this;
}
/**
* The arguments of the routine.
* @return arguments
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The arguments of the routine.")
@JsonProperty(JSON_PROPERTY_ARGUMENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getArguments() {
return arguments;
}
@JsonProperty(JSON_PROPERTY_ARGUMENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArguments(List arguments) {
this.arguments = arguments;
}
public RuleRoutine lineNumber(Integer lineNumber) {
this.lineNumber = lineNumber;
return this;
}
/**
* Get lineNumber
* @return lineNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LINE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getLineNumber() {
return lineNumber;
}
@JsonProperty(JSON_PROPERTY_LINE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLineNumber(Integer lineNumber) {
this.lineNumber = lineNumber;
}
/**
* Return true if this RuleRoutine object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RuleRoutine ruleRoutine = (RuleRoutine) o;
return Objects.equals(this.routine, ruleRoutine.routine) &&
Objects.equals(this.arguments, ruleRoutine.arguments) &&
Objects.equals(this.lineNumber, ruleRoutine.lineNumber);
}
@Override
public int hashCode() {
return Objects.hash(routine, arguments, lineNumber);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RuleRoutine {\n");
sb.append(" routine: ").append(toIndentedString(routine)).append("\n");
sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n");
sb.append(" lineNumber: ").append(toIndentedString(lineNumber)).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