com.dominodatalab.pub.model.CostAssetsV1Labels Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-java-client Show documentation
Show all versions of domino-java-client Show documentation
Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.
/*
* Domino Public API
* Domino Public API Endpoints
*
* The version of the OpenAPI document: 0.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.dominodatalab.pub.model;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.dominodatalab.pub.invoker.ApiClient;
/**
* CostAssetsV1Labels
*/
@JsonPropertyOrder({
CostAssetsV1Labels.JSON_PROPERTY_INSTANCE,
CostAssetsV1Labels.JSON_PROPERTY_JOB,
CostAssetsV1Labels.JSON_PROPERTY_LABEL_DOMINODATALAB_COM_DOMINO_NODE,
CostAssetsV1Labels.JSON_PROPERTY_LABEL_DOMINODATALAB_COM_NODE_POOL
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T16:37:28.765500600-04:00[America/New_York]", comments = "Generator version: 7.8.0")
public class CostAssetsV1Labels {
public static final String JSON_PROPERTY_INSTANCE = "instance";
private String instance;
public static final String JSON_PROPERTY_JOB = "job";
private String job;
public static final String JSON_PROPERTY_LABEL_DOMINODATALAB_COM_DOMINO_NODE = "label_dominodatalab_com_domino_node";
private String labelDominodatalabComDominoNode;
public static final String JSON_PROPERTY_LABEL_DOMINODATALAB_COM_NODE_POOL = "label_dominodatalab_com_node_pool";
private String labelDominodatalabComNodePool;
public CostAssetsV1Labels() {
}
public CostAssetsV1Labels instance(String instance) {
this.instance = instance;
return this;
}
/**
* Get instance
* @return instance
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INSTANCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getInstance() {
return instance;
}
@JsonProperty(JSON_PROPERTY_INSTANCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInstance(String instance) {
this.instance = instance;
}
public CostAssetsV1Labels job(String job) {
this.job = job;
return this;
}
/**
* Get job
* @return job
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_JOB)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getJob() {
return job;
}
@JsonProperty(JSON_PROPERTY_JOB)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJob(String job) {
this.job = job;
}
public CostAssetsV1Labels labelDominodatalabComDominoNode(String labelDominodatalabComDominoNode) {
this.labelDominodatalabComDominoNode = labelDominodatalabComDominoNode;
return this;
}
/**
* Get labelDominodatalabComDominoNode
* @return labelDominodatalabComDominoNode
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LABEL_DOMINODATALAB_COM_DOMINO_NODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLabelDominodatalabComDominoNode() {
return labelDominodatalabComDominoNode;
}
@JsonProperty(JSON_PROPERTY_LABEL_DOMINODATALAB_COM_DOMINO_NODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLabelDominodatalabComDominoNode(String labelDominodatalabComDominoNode) {
this.labelDominodatalabComDominoNode = labelDominodatalabComDominoNode;
}
public CostAssetsV1Labels labelDominodatalabComNodePool(String labelDominodatalabComNodePool) {
this.labelDominodatalabComNodePool = labelDominodatalabComNodePool;
return this;
}
/**
* Get labelDominodatalabComNodePool
* @return labelDominodatalabComNodePool
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LABEL_DOMINODATALAB_COM_NODE_POOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLabelDominodatalabComNodePool() {
return labelDominodatalabComNodePool;
}
@JsonProperty(JSON_PROPERTY_LABEL_DOMINODATALAB_COM_NODE_POOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLabelDominodatalabComNodePool(String labelDominodatalabComNodePool) {
this.labelDominodatalabComNodePool = labelDominodatalabComNodePool;
}
/**
* Return true if this CostAssetsV1_labels object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CostAssetsV1Labels costAssetsV1Labels = (CostAssetsV1Labels) o;
return Objects.equals(this.instance, costAssetsV1Labels.instance) &&
Objects.equals(this.job, costAssetsV1Labels.job) &&
Objects.equals(this.labelDominodatalabComDominoNode, costAssetsV1Labels.labelDominodatalabComDominoNode) &&
Objects.equals(this.labelDominodatalabComNodePool, costAssetsV1Labels.labelDominodatalabComNodePool);
}
@Override
public int hashCode() {
return Objects.hash(instance, job, labelDominodatalabComDominoNode, labelDominodatalabComNodePool);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CostAssetsV1Labels {\n");
sb.append(" instance: ").append(toIndentedString(instance)).append("\n");
sb.append(" job: ").append(toIndentedString(job)).append("\n");
sb.append(" labelDominodatalabComDominoNode: ").append(toIndentedString(labelDominodatalabComDominoNode)).append("\n");
sb.append(" labelDominodatalabComNodePool: ").append(toIndentedString(labelDominodatalabComNodePool)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `instance` to the URL query string
if (getInstance() != null) {
joiner.add(String.format("%sinstance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInstance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `job` to the URL query string
if (getJob() != null) {
joiner.add(String.format("%sjob%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJob()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `label_dominodatalab_com_domino_node` to the URL query string
if (getLabelDominodatalabComDominoNode() != null) {
joiner.add(String.format("%slabel_dominodatalab_com_domino_node%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLabelDominodatalabComDominoNode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `label_dominodatalab_com_node_pool` to the URL query string
if (getLabelDominodatalabComNodePool() != null) {
joiner.add(String.format("%slabel_dominodatalab_com_node_pool%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLabelDominodatalabComNodePool()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy