com.ziqni.admin.sdk.model.ObjectParameters 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. Change log: 2024-02-27 Added rewards reduced to the LeaderboardEntry response
*
* The version of the OpenAPI document: 3.0.17
* 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.AppliesTo;
import com.ziqni.admin.sdk.model.CustomField;
import com.ziqni.admin.sdk.model.ObjectConstraint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ObjectParameters
*/
@JsonPropertyOrder({
ObjectParameters.JSON_PROPERTY_CUSTOM_FIELDS,
ObjectParameters.JSON_PROPERTY_OBJECT_TYPE,
ObjectParameters.JSON_PROPERTY_OBJECT_SUB_TYPE,
ObjectParameters.JSON_PROPERTY_USER_CONSTRAINTS,
ObjectParameters.JSON_PROPERTY_SYSTEM_CONSTRAINTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ObjectParameters {
public static final String JSON_PROPERTY_CUSTOM_FIELDS = "customFields";
private List customFields = new ArrayList<>();
public static final String JSON_PROPERTY_OBJECT_TYPE = "objectType";
private AppliesTo objectType;
public static final String JSON_PROPERTY_OBJECT_SUB_TYPE = "objectSubType";
private String objectSubType;
public static final String JSON_PROPERTY_USER_CONSTRAINTS = "userConstraints";
private List userConstraints = new ArrayList<>();
public static final String JSON_PROPERTY_SYSTEM_CONSTRAINTS = "systemConstraints";
private List systemConstraints = new ArrayList<>();
public ObjectParameters customFields(List customFields) {
this.customFields = customFields;
return this;
}
public ObjectParameters addCustomFieldsItem(CustomField customFieldsItem) {
this.customFields.add(customFieldsItem);
return this;
}
/**
* Custom fields for this object
* @return customFields
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Custom fields for this object")
@JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getCustomFields() {
return customFields;
}
@JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCustomFields(List customFields) {
this.customFields = customFields;
}
public ObjectParameters objectType(AppliesTo objectType) {
this.objectType = objectType;
return this;
}
/**
* Get objectType
* @return objectType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_OBJECT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public AppliesTo getObjectType() {
return objectType;
}
@JsonProperty(JSON_PROPERTY_OBJECT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setObjectType(AppliesTo objectType) {
this.objectType = objectType;
}
public ObjectParameters objectSubType(String objectSubType) {
this.objectSubType = objectSubType;
return this;
}
/**
* The sub type of the object
* @return objectSubType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The sub type of the object")
@JsonProperty(JSON_PROPERTY_OBJECT_SUB_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getObjectSubType() {
return objectSubType;
}
@JsonProperty(JSON_PROPERTY_OBJECT_SUB_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setObjectSubType(String objectSubType) {
this.objectSubType = objectSubType;
}
public ObjectParameters userConstraints(List userConstraints) {
this.userConstraints = userConstraints;
return this;
}
public ObjectParameters addUserConstraintsItem(ObjectConstraint userConstraintsItem) {
this.userConstraints.add(userConstraintsItem);
return this;
}
/**
* Valid contraints for this object type that the user can set and unset
* @return userConstraints
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Valid contraints for this object type that the user can set and unset")
@JsonProperty(JSON_PROPERTY_USER_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getUserConstraints() {
return userConstraints;
}
@JsonProperty(JSON_PROPERTY_USER_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUserConstraints(List userConstraints) {
this.userConstraints = userConstraints;
}
public ObjectParameters systemConstraints(List systemConstraints) {
this.systemConstraints = systemConstraints;
return this;
}
public ObjectParameters addSystemConstraintsItem(ObjectConstraint systemConstraintsItem) {
this.systemConstraints.add(systemConstraintsItem);
return this;
}
/**
* System contraints that the user connot modify
* @return systemConstraints
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "System contraints that the user connot modify")
@JsonProperty(JSON_PROPERTY_SYSTEM_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getSystemConstraints() {
return systemConstraints;
}
@JsonProperty(JSON_PROPERTY_SYSTEM_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSystemConstraints(List systemConstraints) {
this.systemConstraints = systemConstraints;
}
/**
* Return true if this ObjectParameters object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ObjectParameters objectParameters = (ObjectParameters) o;
return Objects.equals(this.customFields, objectParameters.customFields) &&
Objects.equals(this.objectType, objectParameters.objectType) &&
Objects.equals(this.objectSubType, objectParameters.objectSubType) &&
Objects.equals(this.userConstraints, objectParameters.userConstraints) &&
Objects.equals(this.systemConstraints, objectParameters.systemConstraints);
}
@Override
public int hashCode() {
return Objects.hash(customFields, objectType, objectSubType, userConstraints, systemConstraints);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObjectParameters {\n");
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
sb.append(" objectType: ").append(toIndentedString(objectType)).append("\n");
sb.append(" objectSubType: ").append(toIndentedString(objectSubType)).append("\n");
sb.append(" userConstraints: ").append(toIndentedString(userConstraints)).append("\n");
sb.append(" systemConstraints: ").append(toIndentedString(systemConstraints)).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