com.dominodatalab.pub.model.CostAllocationV1Labels 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;
/**
* CostAllocationV1Labels
*/
@JsonPropertyOrder({
CostAllocationV1Labels.JSON_PROPERTY_BILLING_TAG,
CostAllocationV1Labels.JSON_PROPERTY_ORGANIZATION_ID,
CostAllocationV1Labels.JSON_PROPERTY_ORGANIZATION_NAME,
CostAllocationV1Labels.JSON_PROPERTY_PROJECT_ID,
CostAllocationV1Labels.JSON_PROPERTY_PROJECT_NAME,
CostAllocationV1Labels.JSON_PROPERTY_PROJECT_OWNER_ID,
CostAllocationV1Labels.JSON_PROPERTY_PROJECT_OWNER_NAME,
CostAllocationV1Labels.JSON_PROPERTY_STARTING_USER_ID,
CostAllocationV1Labels.JSON_PROPERTY_STARTING_USER_NAME,
CostAllocationV1Labels.JSON_PROPERTY_WORKLOAD_ID,
CostAllocationV1Labels.JSON_PROPERTY_WORKLOAD_TYPE
})
@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 CostAllocationV1Labels {
public static final String JSON_PROPERTY_BILLING_TAG = "billing_tag";
private String billingTag;
public static final String JSON_PROPERTY_ORGANIZATION_ID = "organization_id";
private String organizationId;
public static final String JSON_PROPERTY_ORGANIZATION_NAME = "organization_name";
private String organizationName;
public static final String JSON_PROPERTY_PROJECT_ID = "project_id";
private String projectId;
public static final String JSON_PROPERTY_PROJECT_NAME = "project_name";
private String projectName;
public static final String JSON_PROPERTY_PROJECT_OWNER_ID = "project_owner_id";
private String projectOwnerId;
public static final String JSON_PROPERTY_PROJECT_OWNER_NAME = "project_owner_name";
private String projectOwnerName;
public static final String JSON_PROPERTY_STARTING_USER_ID = "starting_user_id";
private String startingUserId;
public static final String JSON_PROPERTY_STARTING_USER_NAME = "starting_user_name";
private String startingUserName;
public static final String JSON_PROPERTY_WORKLOAD_ID = "workload_id";
private String workloadId;
public static final String JSON_PROPERTY_WORKLOAD_TYPE = "workload_type";
private String workloadType;
public CostAllocationV1Labels() {
}
public CostAllocationV1Labels billingTag(String billingTag) {
this.billingTag = billingTag;
return this;
}
/**
* Get billingTag
* @return billingTag
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BILLING_TAG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBillingTag() {
return billingTag;
}
@JsonProperty(JSON_PROPERTY_BILLING_TAG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBillingTag(String billingTag) {
this.billingTag = billingTag;
}
public CostAllocationV1Labels organizationId(String organizationId) {
this.organizationId = organizationId;
return this;
}
/**
* Get organizationId
* @return organizationId
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ORGANIZATION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOrganizationId() {
return organizationId;
}
@JsonProperty(JSON_PROPERTY_ORGANIZATION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public CostAllocationV1Labels organizationName(String organizationName) {
this.organizationName = organizationName;
return this;
}
/**
* Get organizationName
* @return organizationName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ORGANIZATION_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOrganizationName() {
return organizationName;
}
@JsonProperty(JSON_PROPERTY_ORGANIZATION_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrganizationName(String organizationName) {
this.organizationName = organizationName;
}
public CostAllocationV1Labels projectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* Get projectId
* @return projectId
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProjectId() {
return projectId;
}
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public CostAllocationV1Labels projectName(String projectName) {
this.projectName = projectName;
return this;
}
/**
* Get projectName
* @return projectName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROJECT_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProjectName() {
return projectName;
}
@JsonProperty(JSON_PROPERTY_PROJECT_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public CostAllocationV1Labels projectOwnerId(String projectOwnerId) {
this.projectOwnerId = projectOwnerId;
return this;
}
/**
* Get projectOwnerId
* @return projectOwnerId
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROJECT_OWNER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProjectOwnerId() {
return projectOwnerId;
}
@JsonProperty(JSON_PROPERTY_PROJECT_OWNER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProjectOwnerId(String projectOwnerId) {
this.projectOwnerId = projectOwnerId;
}
public CostAllocationV1Labels projectOwnerName(String projectOwnerName) {
this.projectOwnerName = projectOwnerName;
return this;
}
/**
* Get projectOwnerName
* @return projectOwnerName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROJECT_OWNER_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProjectOwnerName() {
return projectOwnerName;
}
@JsonProperty(JSON_PROPERTY_PROJECT_OWNER_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProjectOwnerName(String projectOwnerName) {
this.projectOwnerName = projectOwnerName;
}
public CostAllocationV1Labels startingUserId(String startingUserId) {
this.startingUserId = startingUserId;
return this;
}
/**
* Get startingUserId
* @return startingUserId
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STARTING_USER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStartingUserId() {
return startingUserId;
}
@JsonProperty(JSON_PROPERTY_STARTING_USER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartingUserId(String startingUserId) {
this.startingUserId = startingUserId;
}
public CostAllocationV1Labels startingUserName(String startingUserName) {
this.startingUserName = startingUserName;
return this;
}
/**
* Get startingUserName
* @return startingUserName
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STARTING_USER_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStartingUserName() {
return startingUserName;
}
@JsonProperty(JSON_PROPERTY_STARTING_USER_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartingUserName(String startingUserName) {
this.startingUserName = startingUserName;
}
public CostAllocationV1Labels workloadId(String workloadId) {
this.workloadId = workloadId;
return this;
}
/**
* Get workloadId
* @return workloadId
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_WORKLOAD_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getWorkloadId() {
return workloadId;
}
@JsonProperty(JSON_PROPERTY_WORKLOAD_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWorkloadId(String workloadId) {
this.workloadId = workloadId;
}
public CostAllocationV1Labels workloadType(String workloadType) {
this.workloadType = workloadType;
return this;
}
/**
* Get workloadType
* @return workloadType
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_WORKLOAD_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getWorkloadType() {
return workloadType;
}
@JsonProperty(JSON_PROPERTY_WORKLOAD_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWorkloadType(String workloadType) {
this.workloadType = workloadType;
}
/**
* Return true if this CostAllocationV1_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;
}
CostAllocationV1Labels costAllocationV1Labels = (CostAllocationV1Labels) o;
return Objects.equals(this.billingTag, costAllocationV1Labels.billingTag) &&
Objects.equals(this.organizationId, costAllocationV1Labels.organizationId) &&
Objects.equals(this.organizationName, costAllocationV1Labels.organizationName) &&
Objects.equals(this.projectId, costAllocationV1Labels.projectId) &&
Objects.equals(this.projectName, costAllocationV1Labels.projectName) &&
Objects.equals(this.projectOwnerId, costAllocationV1Labels.projectOwnerId) &&
Objects.equals(this.projectOwnerName, costAllocationV1Labels.projectOwnerName) &&
Objects.equals(this.startingUserId, costAllocationV1Labels.startingUserId) &&
Objects.equals(this.startingUserName, costAllocationV1Labels.startingUserName) &&
Objects.equals(this.workloadId, costAllocationV1Labels.workloadId) &&
Objects.equals(this.workloadType, costAllocationV1Labels.workloadType);
}
@Override
public int hashCode() {
return Objects.hash(billingTag, organizationId, organizationName, projectId, projectName, projectOwnerId, projectOwnerName, startingUserId, startingUserName, workloadId, workloadType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CostAllocationV1Labels {\n");
sb.append(" billingTag: ").append(toIndentedString(billingTag)).append("\n");
sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n");
sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" projectOwnerId: ").append(toIndentedString(projectOwnerId)).append("\n");
sb.append(" projectOwnerName: ").append(toIndentedString(projectOwnerName)).append("\n");
sb.append(" startingUserId: ").append(toIndentedString(startingUserId)).append("\n");
sb.append(" startingUserName: ").append(toIndentedString(startingUserName)).append("\n");
sb.append(" workloadId: ").append(toIndentedString(workloadId)).append("\n");
sb.append(" workloadType: ").append(toIndentedString(workloadType)).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 `billing_tag` to the URL query string
if (getBillingTag() != null) {
joiner.add(String.format("%sbilling_tag%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBillingTag()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `organization_id` to the URL query string
if (getOrganizationId() != null) {
joiner.add(String.format("%sorganization_id%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOrganizationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `organization_name` to the URL query string
if (getOrganizationName() != null) {
joiner.add(String.format("%sorganization_name%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOrganizationName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `project_id` to the URL query string
if (getProjectId() != null) {
joiner.add(String.format("%sproject_id%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `project_name` to the URL query string
if (getProjectName() != null) {
joiner.add(String.format("%sproject_name%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProjectName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `project_owner_id` to the URL query string
if (getProjectOwnerId() != null) {
joiner.add(String.format("%sproject_owner_id%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProjectOwnerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `project_owner_name` to the URL query string
if (getProjectOwnerName() != null) {
joiner.add(String.format("%sproject_owner_name%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProjectOwnerName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `starting_user_id` to the URL query string
if (getStartingUserId() != null) {
joiner.add(String.format("%sstarting_user_id%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartingUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `starting_user_name` to the URL query string
if (getStartingUserName() != null) {
joiner.add(String.format("%sstarting_user_name%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartingUserName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `workload_id` to the URL query string
if (getWorkloadId() != null) {
joiner.add(String.format("%sworkload_id%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWorkloadId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `workload_type` to the URL query string
if (getWorkloadType() != null) {
joiner.add(String.format("%sworkload_type%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWorkloadType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy