
com.influxdb.client.domain.NotificationEndpoints Maven / Gradle / Ivy
/*
* InfluxDB OSS API Service
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* 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.influxdb.client.domain;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.influxdb.client.domain.Links;
import com.influxdb.client.domain.NotificationEndpoint;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* NotificationEndpoints
*/
public class NotificationEndpoints {
public static final String SERIALIZED_NAME_NOTIFICATION_ENDPOINTS = "notificationEndpoints";
@SerializedName(SERIALIZED_NAME_NOTIFICATION_ENDPOINTS)
private List notificationEndpoints = new ArrayList<>();
public static final String SERIALIZED_NAME_LINKS = "links";
@SerializedName(SERIALIZED_NAME_LINKS)
private Links links = null;
public NotificationEndpoints notificationEndpoints(List notificationEndpoints) {
this.notificationEndpoints = notificationEndpoints;
return this;
}
public NotificationEndpoints addNotificationEndpointsItem(NotificationEndpoint notificationEndpointsItem) {
if (this.notificationEndpoints == null) {
this.notificationEndpoints = new ArrayList<>();
}
this.notificationEndpoints.add(notificationEndpointsItem);
return this;
}
/**
* Get notificationEndpoints
* @return notificationEndpoints
**/
public List getNotificationEndpoints() {
return notificationEndpoints;
}
public void setNotificationEndpoints(List notificationEndpoints) {
this.notificationEndpoints = notificationEndpoints;
}
public NotificationEndpoints links(Links links) {
this.links = links;
return this;
}
/**
* Get links
* @return links
**/
public Links getLinks() {
return links;
}
public void setLinks(Links links) {
this.links = links;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NotificationEndpoints notificationEndpoints = (NotificationEndpoints) o;
return Objects.equals(this.notificationEndpoints, notificationEndpoints.notificationEndpoints) &&
Objects.equals(this.links, notificationEndpoints.links);
}
@Override
public int hashCode() {
return Objects.hash(notificationEndpoints, links);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NotificationEndpoints {\n");
sb.append(" notificationEndpoints: ").append(toIndentedString(notificationEndpoints)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy