com.hashicorp.nomad.apimodel.PlanAnnotations Maven / Gradle / Ivy
package com.hashicorp.nomad.apimodel;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hashicorp.nomad.javasdk.ApiObject;
import com.hashicorp.nomad.javasdk.NomadJson;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
* This is a generated JavaBean representing a request or response structure.
*
* @see Nomad HTTP API documentation associated with the endpoint you are using.
*/
public final class PlanAnnotations extends ApiObject {
private Map desiredTgUpdates;
@JsonProperty("DesiredTGUpdates")
public Map getDesiredTgUpdates() {
return desiredTgUpdates;
}
public PlanAnnotations setDesiredTgUpdates(Map desiredTgUpdates) {
this.desiredTgUpdates = desiredTgUpdates;
return this;
}
public PlanAnnotations addDesiredTgUpdates(String key, DesiredUpdates value) {
if (this.desiredTgUpdates == null)
this.desiredTgUpdates = new java.util.HashMap<>();
this.desiredTgUpdates.put(key, value);
return this;
}
@Override
public String toString() {
return NomadJson.serialize(this);
}
public static PlanAnnotations fromJson(String json) throws IOException {
return NomadJson.deserialize(json, PlanAnnotations.class);
}
public static List fromJsonArray(String json) throws IOException {
return NomadJson.deserializeList(json, PlanAnnotations.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy