
com.dominodatalab.pub.model.CostAssetsV1Properties Maven / Gradle / Ivy
/*
* 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;
/**
* CostAssetsV1Properties
*/
@JsonPropertyOrder({
CostAssetsV1Properties.JSON_PROPERTY_CATEGORY,
CostAssetsV1Properties.JSON_PROPERTY_CLUSTER,
CostAssetsV1Properties.JSON_PROPERTY_PROVIDER,
CostAssetsV1Properties.JSON_PROPERTY_PROVIDER_ID,
CostAssetsV1Properties.JSON_PROPERTY_SERVICE
})
@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 CostAssetsV1Properties {
public static final String JSON_PROPERTY_CATEGORY = "category";
private String category;
public static final String JSON_PROPERTY_CLUSTER = "cluster";
private String cluster;
public static final String JSON_PROPERTY_PROVIDER = "provider";
private String provider;
public static final String JSON_PROPERTY_PROVIDER_ID = "providerId";
private String providerId;
public static final String JSON_PROPERTY_SERVICE = "service";
private String service;
public CostAssetsV1Properties() {
}
public CostAssetsV1Properties category(String category) {
this.category = category;
return this;
}
/**
* Get category
* @return category
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCategory() {
return category;
}
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(String category) {
this.category = category;
}
public CostAssetsV1Properties cluster(String cluster) {
this.cluster = cluster;
return this;
}
/**
* Get cluster
* @return cluster
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CLUSTER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCluster() {
return cluster;
}
@JsonProperty(JSON_PROPERTY_CLUSTER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCluster(String cluster) {
this.cluster = cluster;
}
public CostAssetsV1Properties provider(String provider) {
this.provider = provider;
return this;
}
/**
* Get provider
* @return provider
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROVIDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProvider() {
return provider;
}
@JsonProperty(JSON_PROPERTY_PROVIDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProvider(String provider) {
this.provider = provider;
}
public CostAssetsV1Properties providerId(String providerId) {
this.providerId = providerId;
return this;
}
/**
* Get providerId
* @return providerId
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROVIDER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProviderId() {
return providerId;
}
@JsonProperty(JSON_PROPERTY_PROVIDER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProviderId(String providerId) {
this.providerId = providerId;
}
public CostAssetsV1Properties service(String service) {
this.service = service;
return this;
}
/**
* Get service
* @return service
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SERVICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getService() {
return service;
}
@JsonProperty(JSON_PROPERTY_SERVICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setService(String service) {
this.service = service;
}
/**
* Return true if this CostAssetsV1_properties object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CostAssetsV1Properties costAssetsV1Properties = (CostAssetsV1Properties) o;
return Objects.equals(this.category, costAssetsV1Properties.category) &&
Objects.equals(this.cluster, costAssetsV1Properties.cluster) &&
Objects.equals(this.provider, costAssetsV1Properties.provider) &&
Objects.equals(this.providerId, costAssetsV1Properties.providerId) &&
Objects.equals(this.service, costAssetsV1Properties.service);
}
@Override
public int hashCode() {
return Objects.hash(category, cluster, provider, providerId, service);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CostAssetsV1Properties {\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" cluster: ").append(toIndentedString(cluster)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n");
sb.append(" service: ").append(toIndentedString(service)).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 `category` to the URL query string
if (getCategory() != null) {
joiner.add(String.format("%scategory%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCategory()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `cluster` to the URL query string
if (getCluster() != null) {
joiner.add(String.format("%scluster%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCluster()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `provider` to the URL query string
if (getProvider() != null) {
joiner.add(String.format("%sprovider%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProvider()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `providerId` to the URL query string
if (getProviderId() != null) {
joiner.add(String.format("%sproviderId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProviderId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `service` to the URL query string
if (getService() != null) {
joiner.add(String.format("%sservice%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getService()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy