com.ziqni.admin.sdk.model.EntityChangeSubscription 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Subscribes a client to receive out-of-band data
*/
@ApiModel(description = "Subscribes a client to receive out-of-band data")
@JsonPropertyOrder({
EntityChangeSubscription.JSON_PROPERTY_ENTITY_TYPE,
EntityChangeSubscription.JSON_PROPERTY_SUBSCRIPTION_ID,
EntityChangeSubscription.JSON_PROPERTY_CONSTRAINTS,
EntityChangeSubscription.JSON_PROPERTY_TOPIC
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntityChangeSubscription {
public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType";
private String entityType;
public static final String JSON_PROPERTY_SUBSCRIPTION_ID = "subscriptionId";
private String subscriptionId;
public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
private List constraints = null;
public static final String JSON_PROPERTY_TOPIC = "topic";
private String topic;
public EntityChangeSubscription entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* Get entityType
* @return entityType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEntityType() {
return entityType;
}
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntityType(String entityType) {
this.entityType = entityType;
}
public EntityChangeSubscription subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
/**
* Get subscriptionId
* @return subscriptionId
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_SUBSCRIPTION_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSubscriptionId() {
return subscriptionId;
}
@JsonProperty(JSON_PROPERTY_SUBSCRIPTION_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
public EntityChangeSubscription constraints(List constraints) {
this.constraints = constraints;
return this;
}
public EntityChangeSubscription addConstraintsItem(String constraintsItem) {
if (this.constraints == null) {
this.constraints = new ArrayList<>();
}
this.constraints.add(constraintsItem);
return this;
}
/**
* Constraints of this subscription like gauranteedDelivery
* @return constraints
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Constraints of this subscription like gauranteedDelivery")
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getConstraints() {
return constraints;
}
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConstraints(List constraints) {
this.constraints = constraints;
}
public EntityChangeSubscription topic(String topic) {
this.topic = topic;
return this;
}
/**
* /user/queue/callbacks
* @return topic
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "/user/queue/callbacks")
@JsonProperty(JSON_PROPERTY_TOPIC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTopic() {
return topic;
}
@JsonProperty(JSON_PROPERTY_TOPIC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTopic(String topic) {
this.topic = topic;
}
/**
* Return true if this EntityChangeSubscription object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntityChangeSubscription entityChangeSubscription = (EntityChangeSubscription) o;
return Objects.equals(this.entityType, entityChangeSubscription.entityType) &&
Objects.equals(this.subscriptionId, entityChangeSubscription.subscriptionId) &&
Objects.equals(this.constraints, entityChangeSubscription.constraints) &&
Objects.equals(this.topic, entityChangeSubscription.topic);
}
@Override
public int hashCode() {
return Objects.hash(entityType, subscriptionId, constraints, topic);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntityChangeSubscription {\n");
sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n");
sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n");
sb.append(" constraints: ").append(toIndentedString(constraints)).append("\n");
sb.append(" topic: ").append(toIndentedString(topic)).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