
com.influxdb.client.domain.TaskUpdateRequest 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.TaskStatusType;
import java.io.IOException;
/**
* TaskUpdateRequest
*/
public class TaskUpdateRequest {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private TaskStatusType status = null;
public static final String SERIALIZED_NAME_FLUX = "flux";
@SerializedName(SERIALIZED_NAME_FLUX)
private String flux;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_EVERY = "every";
@SerializedName(SERIALIZED_NAME_EVERY)
private String every;
public static final String SERIALIZED_NAME_CRON = "cron";
@SerializedName(SERIALIZED_NAME_CRON)
private String cron;
public static final String SERIALIZED_NAME_OFFSET = "offset";
@SerializedName(SERIALIZED_NAME_OFFSET)
private String offset;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public TaskUpdateRequest status(TaskStatusType status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
public TaskStatusType getStatus() {
return status;
}
public void setStatus(TaskStatusType status) {
this.status = status;
}
public TaskUpdateRequest flux(String flux) {
this.flux = flux;
return this;
}
/**
* The Flux script to run for this task.
* @return flux
**/
public String getFlux() {
return flux;
}
public void setFlux(String flux) {
this.flux = flux;
}
public TaskUpdateRequest name(String name) {
this.name = name;
return this;
}
/**
* Override the 'name' option in the flux script.
* @return name
**/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public TaskUpdateRequest every(String every) {
this.every = every;
return this;
}
/**
* Override the 'every' option in the flux script.
* @return every
**/
public String getEvery() {
return every;
}
public void setEvery(String every) {
this.every = every;
}
public TaskUpdateRequest cron(String cron) {
this.cron = cron;
return this;
}
/**
* Override the 'cron' option in the flux script.
* @return cron
**/
public String getCron() {
return cron;
}
public void setCron(String cron) {
this.cron = cron;
}
public TaskUpdateRequest offset(String offset) {
this.offset = offset;
return this;
}
/**
* Override the 'offset' option in the flux script.
* @return offset
**/
public String getOffset() {
return offset;
}
public void setOffset(String offset) {
this.offset = offset;
}
public TaskUpdateRequest description(String description) {
this.description = description;
return this;
}
/**
* An optional description of the task.
* @return description
**/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TaskUpdateRequest taskUpdateRequest = (TaskUpdateRequest) o;
return Objects.equals(this.status, taskUpdateRequest.status) &&
Objects.equals(this.flux, taskUpdateRequest.flux) &&
Objects.equals(this.name, taskUpdateRequest.name) &&
Objects.equals(this.every, taskUpdateRequest.every) &&
Objects.equals(this.cron, taskUpdateRequest.cron) &&
Objects.equals(this.offset, taskUpdateRequest.offset) &&
Objects.equals(this.description, taskUpdateRequest.description);
}
@Override
public int hashCode() {
return Objects.hash(status, flux, name, every, cron, offset, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TaskUpdateRequest {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" flux: ").append(toIndentedString(flux)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" every: ").append(toIndentedString(every)).append("\n");
sb.append(" cron: ").append(toIndentedString(cron)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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