com.dominodatalab.api.model.DominoProjectsApiSelectedV2EnvironmentDetailsDTO Maven / Gradle / Ivy
/*
* Domino Data Lab API v4
* This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key.
*
* The version of the OpenAPI document: 4.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.api.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;
/**
* DominoProjectsApiSelectedV2EnvironmentDetailsDTO
*/
@JsonPropertyOrder({
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_LATEST_REVISION,
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_LATEST_REVISION_URL,
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_LATEST_REVISION_STATUS,
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_SELECTED_REVISION,
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_SELECTED_REVISION_ID,
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_SELECTED_REVISION_URL,
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_RESTRICTED_REVISION_NUMBER,
DominoProjectsApiSelectedV2EnvironmentDetailsDTO.JSON_PROPERTY_RESTRICTED_REVISION_ID
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoProjectsApiSelectedV2EnvironmentDetailsDTO {
public static final String JSON_PROPERTY_LATEST_REVISION = "latestRevision";
private Integer latestRevision;
public static final String JSON_PROPERTY_LATEST_REVISION_URL = "latestRevisionUrl";
private String latestRevisionUrl;
public static final String JSON_PROPERTY_LATEST_REVISION_STATUS = "latestRevisionStatus";
private String latestRevisionStatus;
public static final String JSON_PROPERTY_SELECTED_REVISION = "selectedRevision";
private Integer selectedRevision;
public static final String JSON_PROPERTY_SELECTED_REVISION_ID = "selectedRevisionId";
private String selectedRevisionId;
public static final String JSON_PROPERTY_SELECTED_REVISION_URL = "selectedRevisionUrl";
private String selectedRevisionUrl;
public static final String JSON_PROPERTY_RESTRICTED_REVISION_NUMBER = "restrictedRevisionNumber";
private Integer restrictedRevisionNumber;
public static final String JSON_PROPERTY_RESTRICTED_REVISION_ID = "restrictedRevisionId";
private String restrictedRevisionId;
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO() {
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO latestRevision(Integer latestRevision) {
this.latestRevision = latestRevision;
return this;
}
/**
* Get latestRevision
* @return latestRevision
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LATEST_REVISION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getLatestRevision() {
return latestRevision;
}
@JsonProperty(JSON_PROPERTY_LATEST_REVISION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLatestRevision(Integer latestRevision) {
this.latestRevision = latestRevision;
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO latestRevisionUrl(String latestRevisionUrl) {
this.latestRevisionUrl = latestRevisionUrl;
return this;
}
/**
* Get latestRevisionUrl
* @return latestRevisionUrl
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LATEST_REVISION_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLatestRevisionUrl() {
return latestRevisionUrl;
}
@JsonProperty(JSON_PROPERTY_LATEST_REVISION_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLatestRevisionUrl(String latestRevisionUrl) {
this.latestRevisionUrl = latestRevisionUrl;
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO latestRevisionStatus(String latestRevisionStatus) {
this.latestRevisionStatus = latestRevisionStatus;
return this;
}
/**
* Get latestRevisionStatus
* @return latestRevisionStatus
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LATEST_REVISION_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLatestRevisionStatus() {
return latestRevisionStatus;
}
@JsonProperty(JSON_PROPERTY_LATEST_REVISION_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLatestRevisionStatus(String latestRevisionStatus) {
this.latestRevisionStatus = latestRevisionStatus;
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO selectedRevision(Integer selectedRevision) {
this.selectedRevision = selectedRevision;
return this;
}
/**
* Get selectedRevision
* @return selectedRevision
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SELECTED_REVISION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSelectedRevision() {
return selectedRevision;
}
@JsonProperty(JSON_PROPERTY_SELECTED_REVISION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSelectedRevision(Integer selectedRevision) {
this.selectedRevision = selectedRevision;
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO selectedRevisionId(String selectedRevisionId) {
this.selectedRevisionId = selectedRevisionId;
return this;
}
/**
* Get selectedRevisionId
* @return selectedRevisionId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SELECTED_REVISION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSelectedRevisionId() {
return selectedRevisionId;
}
@JsonProperty(JSON_PROPERTY_SELECTED_REVISION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSelectedRevisionId(String selectedRevisionId) {
this.selectedRevisionId = selectedRevisionId;
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO selectedRevisionUrl(String selectedRevisionUrl) {
this.selectedRevisionUrl = selectedRevisionUrl;
return this;
}
/**
* Get selectedRevisionUrl
* @return selectedRevisionUrl
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SELECTED_REVISION_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSelectedRevisionUrl() {
return selectedRevisionUrl;
}
@JsonProperty(JSON_PROPERTY_SELECTED_REVISION_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSelectedRevisionUrl(String selectedRevisionUrl) {
this.selectedRevisionUrl = selectedRevisionUrl;
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO restrictedRevisionNumber(Integer restrictedRevisionNumber) {
this.restrictedRevisionNumber = restrictedRevisionNumber;
return this;
}
/**
* Get restrictedRevisionNumber
* @return restrictedRevisionNumber
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RESTRICTED_REVISION_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getRestrictedRevisionNumber() {
return restrictedRevisionNumber;
}
@JsonProperty(JSON_PROPERTY_RESTRICTED_REVISION_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRestrictedRevisionNumber(Integer restrictedRevisionNumber) {
this.restrictedRevisionNumber = restrictedRevisionNumber;
}
public DominoProjectsApiSelectedV2EnvironmentDetailsDTO restrictedRevisionId(String restrictedRevisionId) {
this.restrictedRevisionId = restrictedRevisionId;
return this;
}
/**
* Get restrictedRevisionId
* @return restrictedRevisionId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RESTRICTED_REVISION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRestrictedRevisionId() {
return restrictedRevisionId;
}
@JsonProperty(JSON_PROPERTY_RESTRICTED_REVISION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRestrictedRevisionId(String restrictedRevisionId) {
this.restrictedRevisionId = restrictedRevisionId;
}
/**
* Return true if this domino.projects.api.SelectedV2EnvironmentDetailsDTO object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoProjectsApiSelectedV2EnvironmentDetailsDTO dominoProjectsApiSelectedV2EnvironmentDetailsDTO = (DominoProjectsApiSelectedV2EnvironmentDetailsDTO) o;
return Objects.equals(this.latestRevision, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.latestRevision) &&
Objects.equals(this.latestRevisionUrl, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.latestRevisionUrl) &&
Objects.equals(this.latestRevisionStatus, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.latestRevisionStatus) &&
Objects.equals(this.selectedRevision, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.selectedRevision) &&
Objects.equals(this.selectedRevisionId, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.selectedRevisionId) &&
Objects.equals(this.selectedRevisionUrl, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.selectedRevisionUrl) &&
Objects.equals(this.restrictedRevisionNumber, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.restrictedRevisionNumber) &&
Objects.equals(this.restrictedRevisionId, dominoProjectsApiSelectedV2EnvironmentDetailsDTO.restrictedRevisionId);
}
@Override
public int hashCode() {
return Objects.hash(latestRevision, latestRevisionUrl, latestRevisionStatus, selectedRevision, selectedRevisionId, selectedRevisionUrl, restrictedRevisionNumber, restrictedRevisionId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoProjectsApiSelectedV2EnvironmentDetailsDTO {\n");
sb.append(" latestRevision: ").append(toIndentedString(latestRevision)).append("\n");
sb.append(" latestRevisionUrl: ").append(toIndentedString(latestRevisionUrl)).append("\n");
sb.append(" latestRevisionStatus: ").append(toIndentedString(latestRevisionStatus)).append("\n");
sb.append(" selectedRevision: ").append(toIndentedString(selectedRevision)).append("\n");
sb.append(" selectedRevisionId: ").append(toIndentedString(selectedRevisionId)).append("\n");
sb.append(" selectedRevisionUrl: ").append(toIndentedString(selectedRevisionUrl)).append("\n");
sb.append(" restrictedRevisionNumber: ").append(toIndentedString(restrictedRevisionNumber)).append("\n");
sb.append(" restrictedRevisionId: ").append(toIndentedString(restrictedRevisionId)).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 `latestRevision` to the URL query string
if (getLatestRevision() != null) {
joiner.add(String.format("%slatestRevision%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLatestRevision()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `latestRevisionUrl` to the URL query string
if (getLatestRevisionUrl() != null) {
joiner.add(String.format("%slatestRevisionUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLatestRevisionUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `latestRevisionStatus` to the URL query string
if (getLatestRevisionStatus() != null) {
joiner.add(String.format("%slatestRevisionStatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLatestRevisionStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `selectedRevision` to the URL query string
if (getSelectedRevision() != null) {
joiner.add(String.format("%sselectedRevision%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSelectedRevision()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `selectedRevisionId` to the URL query string
if (getSelectedRevisionId() != null) {
joiner.add(String.format("%sselectedRevisionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSelectedRevisionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `selectedRevisionUrl` to the URL query string
if (getSelectedRevisionUrl() != null) {
joiner.add(String.format("%sselectedRevisionUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSelectedRevisionUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `restrictedRevisionNumber` to the URL query string
if (getRestrictedRevisionNumber() != null) {
joiner.add(String.format("%srestrictedRevisionNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRestrictedRevisionNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `restrictedRevisionId` to the URL query string
if (getRestrictedRevisionId() != null) {
joiner.add(String.format("%srestrictedRevisionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRestrictedRevisionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy