com.seeq.model.ChannelOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.SubscriptionOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* A list of channels
*/
@Schema(description = "A list of channels")
public class ChannelOutputV1 {
@JsonProperty("createdAt")
private String createdAt = null;
@JsonProperty("id")
private String id = null;
@JsonProperty("lastPublishedAt")
private String lastPublishedAt = null;
@JsonProperty("publishedCount")
private Integer publishedCount = null;
@JsonProperty("subscriptions")
private List subscriptions = new ArrayList();
@JsonProperty("type")
private String type = null;
public ChannelOutputV1 createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The time, as an ISO timestamp, that the channel was created
* @return createdAt
**/
@Schema(description = "The time, as an ISO timestamp, that the channel was created")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public ChannelOutputV1 id(String id) {
this.id = id;
return this;
}
/**
* The URI that uniquely identifies the channel
* @return id
**/
@Schema(description = "The URI that uniquely identifies the channel")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ChannelOutputV1 lastPublishedAt(String lastPublishedAt) {
this.lastPublishedAt = lastPublishedAt;
return this;
}
/**
* The time, as an ISO timestamp, that the most recent message was published
* @return lastPublishedAt
**/
@Schema(description = "The time, as an ISO timestamp, that the most recent message was published")
public String getLastPublishedAt() {
return lastPublishedAt;
}
public void setLastPublishedAt(String lastPublishedAt) {
this.lastPublishedAt = lastPublishedAt;
}
public ChannelOutputV1 publishedCount(Integer publishedCount) {
this.publishedCount = publishedCount;
return this;
}
/**
* The number of messages published on the channel
* @return publishedCount
**/
@Schema(description = "The number of messages published on the channel")
public Integer getPublishedCount() {
return publishedCount;
}
public void setPublishedCount(Integer publishedCount) {
this.publishedCount = publishedCount;
}
public ChannelOutputV1 subscriptions(List subscriptions) {
this.subscriptions = subscriptions;
return this;
}
public ChannelOutputV1 addSubscriptionsItem(SubscriptionOutputV1 subscriptionsItem) {
if (this.subscriptions == null) {
this.subscriptions = new ArrayList();
}
this.subscriptions.add(subscriptionsItem);
return this;
}
/**
* The list of subscriptions
* @return subscriptions
**/
@Schema(description = "The list of subscriptions")
public List getSubscriptions() {
return subscriptions;
}
public void setSubscriptions(List subscriptions) {
this.subscriptions = subscriptions;
}
public ChannelOutputV1 type(String type) {
this.type = type;
return this;
}
/**
* The type of channel this is
* @return type
**/
@Schema(description = "The type of channel this is")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ChannelOutputV1 channelOutputV1 = (ChannelOutputV1) o;
return Objects.equals(this.createdAt, channelOutputV1.createdAt) &&
Objects.equals(this.id, channelOutputV1.id) &&
Objects.equals(this.lastPublishedAt, channelOutputV1.lastPublishedAt) &&
Objects.equals(this.publishedCount, channelOutputV1.publishedCount) &&
Objects.equals(this.subscriptions, channelOutputV1.subscriptions) &&
Objects.equals(this.type, channelOutputV1.type);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, id, lastPublishedAt, publishedCount, subscriptions, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChannelOutputV1 {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" lastPublishedAt: ").append(toIndentedString(lastPublishedAt)).append("\n");
sb.append(" publishedCount: ").append(toIndentedString(publishedCount)).append("\n");
sb.append(" subscriptions: ").append(toIndentedString(subscriptions)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}