io.logicdrop.openapi.models.ClientSubscription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparks-openapi-models Show documentation
Show all versions of sparks-openapi-models Show documentation
Logicdrop Sparks OpenAPI client
/*
* Sparks OpenAPI
* Generated documentation for the Logicdrop Sparks API and OpenAPI clients. Logicdrop Sparks lets users build rules, analyze data, and automate documents. Use it to make decisions faster, generate documents better, and learn from your data. ### Documentation - [User Documentation](https://docs.logicdrop.com) ### Modules - [Sparks Compute](https://docs.logicdrop.com/rules/introduction) - [Sparks Decision Tables](https://docs.logicdrop.com/rules/authoring-decision-tables) - [Sparks Documents](https://docs.logicdrop.com/documents/introduction) ### Clients - [OpenAPI Clients](https://docs.logicdrop.com/development/sample-clients) ### Security - [Authorizing API Requests](https://docs.logicdrop.com/development/authorization)
*
* The version of the OpenAPI document: v_VERSION_, build# _BUILD_
* 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 io.logicdrop.openapi.models;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ClientSubscription
*/
@JsonPropertyOrder({
ClientSubscription.JSON_PROPERTY_SUBSCRIPTION_ID,
ClientSubscription.JSON_PROPERTY_TERM,
ClientSubscription.JSON_PROPERTY_ID,
ClientSubscription.JSON_PROPERTY_CUSTOMER_ID,
ClientSubscription.JSON_PROPERTY_MODULES,
ClientSubscription.JSON_PROPERTY_REQUEST_LIMIT
})
public class ClientSubscription {
public static final String JSON_PROPERTY_SUBSCRIPTION_ID = "subscriptionId";
private String subscriptionId;
public static final String JSON_PROPERTY_TERM = "term";
private OffsetDateTime term;
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId";
private String customerId;
public static final String JSON_PROPERTY_MODULES = "modules";
private List modules = null;
public static final String JSON_PROPERTY_REQUEST_LIMIT = "requestLimit";
private Integer requestLimit;
public ClientSubscription subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
/**
* Get subscriptionId
* @return subscriptionId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SUBSCRIPTION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSubscriptionId() {
return subscriptionId;
}
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
public ClientSubscription term(OffsetDateTime term) {
this.term = term;
return this;
}
/**
* Get term
* @return term
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TERM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getTerm() {
return term;
}
public void setTerm(OffsetDateTime term) {
this.term = term;
}
public ClientSubscription id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ClientSubscription customerId(String customerId) {
this.customerId = customerId;
return this;
}
/**
* Get customerId
* @return customerId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CUSTOMER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public ClientSubscription modules(List modules) {
this.modules = modules;
return this;
}
public ClientSubscription addModulesItem(String modulesItem) {
if (this.modules == null) {
this.modules = new ArrayList<>();
}
this.modules.add(modulesItem);
return this;
}
/**
* Get modules
* @return modules
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MODULES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getModules() {
return modules;
}
public void setModules(List modules) {
this.modules = modules;
}
public ClientSubscription requestLimit(Integer requestLimit) {
this.requestLimit = requestLimit;
return this;
}
/**
* Get requestLimit
* @return requestLimit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_REQUEST_LIMIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getRequestLimit() {
return requestLimit;
}
public void setRequestLimit(Integer requestLimit) {
this.requestLimit = requestLimit;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ClientSubscription clientSubscription = (ClientSubscription) o;
return Objects.equals(this.subscriptionId, clientSubscription.subscriptionId) &&
Objects.equals(this.term, clientSubscription.term) &&
Objects.equals(this.id, clientSubscription.id) &&
Objects.equals(this.customerId, clientSubscription.customerId) &&
Objects.equals(this.modules, clientSubscription.modules) &&
Objects.equals(this.requestLimit, clientSubscription.requestLimit);
}
@Override
public int hashCode() {
return Objects.hash(subscriptionId, term, id, customerId, modules, requestLimit);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ClientSubscription {\n");
sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n");
sb.append(" term: ").append(toIndentedString(term)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n");
sb.append(" modules: ").append(toIndentedString(modules)).append("\n");
sb.append(" requestLimit: ").append(toIndentedString(requestLimit)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}