
com.influxdb.client.domain.LabelCreateRequest 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 java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* LabelCreateRequest
*/
public class LabelCreateRequest {
public static final String SERIALIZED_NAME_ORG_I_D = "orgID";
@SerializedName(SERIALIZED_NAME_ORG_I_D)
private String orgID;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_PROPERTIES = "properties";
@SerializedName(SERIALIZED_NAME_PROPERTIES)
private Map properties = new HashMap<>();
public LabelCreateRequest orgID(String orgID) {
this.orgID = orgID;
return this;
}
/**
* Get orgID
* @return orgID
**/
public String getOrgID() {
return orgID;
}
public void setOrgID(String orgID) {
this.orgID = orgID;
}
public LabelCreateRequest name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LabelCreateRequest properties(Map properties) {
this.properties = properties;
return this;
}
public LabelCreateRequest putPropertiesItem(String key, String propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<>();
}
this.properties.put(key, propertiesItem);
return this;
}
/**
* Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value.
* @return properties
**/
public Map getProperties() {
return properties;
}
public void setProperties(Map properties) {
this.properties = properties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LabelCreateRequest labelCreateRequest = (LabelCreateRequest) o;
return Objects.equals(this.orgID, labelCreateRequest.orgID) &&
Objects.equals(this.name, labelCreateRequest.name) &&
Objects.equals(this.properties, labelCreateRequest.properties);
}
@Override
public int hashCode() {
return Objects.hash(orgID, name, properties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LabelCreateRequest {\n");
sb.append(" orgID: ").append(toIndentedString(orgID)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).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