com.dominodatalab.api.model.DominoDatasetApiDatasetScratchSpaceDto 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;
/**
* DominoDatasetApiDatasetScratchSpaceDto
*/
@JsonPropertyOrder({
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_USER_ID,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_PROJECT_ID,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_LAST_UPDATED_DATE_MILLIS,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_LAST_SNAPSHOT_DATE_MILLIS,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_SCRATCH_SPACE_SIZE,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_IS_PARTIAL_SIZE,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_ID,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_DAYS_SINCE_LAST_SNAPSHOT,
DominoDatasetApiDatasetScratchSpaceDto.JSON_PROPERTY_PROMOTION_WARNING_STATUS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoDatasetApiDatasetScratchSpaceDto {
public static final String JSON_PROPERTY_USER_ID = "userId";
private String userId;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private String projectId;
public static final String JSON_PROPERTY_LAST_UPDATED_DATE_MILLIS = "lastUpdatedDateMillis";
private Long lastUpdatedDateMillis;
public static final String JSON_PROPERTY_LAST_SNAPSHOT_DATE_MILLIS = "lastSnapshotDateMillis";
private Long lastSnapshotDateMillis;
public static final String JSON_PROPERTY_SCRATCH_SPACE_SIZE = "scratchSpaceSize";
private Long scratchSpaceSize;
public static final String JSON_PROPERTY_IS_PARTIAL_SIZE = "isPartialSize";
private Boolean isPartialSize;
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_DAYS_SINCE_LAST_SNAPSHOT = "daysSinceLastSnapshot";
private Integer daysSinceLastSnapshot;
/**
* Gets or Sets promotionWarningStatus
*/
public enum PromotionWarningStatusEnum {
NONE("none"),
LOW("low"),
MEDIUM("medium"),
HIGH("high");
private String value;
PromotionWarningStatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PromotionWarningStatusEnum fromValue(String value) {
for (PromotionWarningStatusEnum b : PromotionWarningStatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_PROMOTION_WARNING_STATUS = "promotionWarningStatus";
private PromotionWarningStatusEnum promotionWarningStatus;
public DominoDatasetApiDatasetScratchSpaceDto() {
}
public DominoDatasetApiDatasetScratchSpaceDto userId(String userId) {
this.userId = userId;
return this;
}
/**
* Get userId
* @return userId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_USER_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getUserId() {
return userId;
}
@JsonProperty(JSON_PROPERTY_USER_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUserId(String userId) {
this.userId = userId;
}
public DominoDatasetApiDatasetScratchSpaceDto projectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* Get projectId
* @return projectId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProjectId() {
return projectId;
}
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public DominoDatasetApiDatasetScratchSpaceDto lastUpdatedDateMillis(Long lastUpdatedDateMillis) {
this.lastUpdatedDateMillis = lastUpdatedDateMillis;
return this;
}
/**
* Get lastUpdatedDateMillis
* @return lastUpdatedDateMillis
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LAST_UPDATED_DATE_MILLIS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getLastUpdatedDateMillis() {
return lastUpdatedDateMillis;
}
@JsonProperty(JSON_PROPERTY_LAST_UPDATED_DATE_MILLIS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLastUpdatedDateMillis(Long lastUpdatedDateMillis) {
this.lastUpdatedDateMillis = lastUpdatedDateMillis;
}
public DominoDatasetApiDatasetScratchSpaceDto lastSnapshotDateMillis(Long lastSnapshotDateMillis) {
this.lastSnapshotDateMillis = lastSnapshotDateMillis;
return this;
}
/**
* Get lastSnapshotDateMillis
* @return lastSnapshotDateMillis
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_SNAPSHOT_DATE_MILLIS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getLastSnapshotDateMillis() {
return lastSnapshotDateMillis;
}
@JsonProperty(JSON_PROPERTY_LAST_SNAPSHOT_DATE_MILLIS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastSnapshotDateMillis(Long lastSnapshotDateMillis) {
this.lastSnapshotDateMillis = lastSnapshotDateMillis;
}
public DominoDatasetApiDatasetScratchSpaceDto scratchSpaceSize(Long scratchSpaceSize) {
this.scratchSpaceSize = scratchSpaceSize;
return this;
}
/**
* Get scratchSpaceSize
* @return scratchSpaceSize
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SCRATCH_SPACE_SIZE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getScratchSpaceSize() {
return scratchSpaceSize;
}
@JsonProperty(JSON_PROPERTY_SCRATCH_SPACE_SIZE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScratchSpaceSize(Long scratchSpaceSize) {
this.scratchSpaceSize = scratchSpaceSize;
}
public DominoDatasetApiDatasetScratchSpaceDto isPartialSize(Boolean isPartialSize) {
this.isPartialSize = isPartialSize;
return this;
}
/**
* Get isPartialSize
* @return isPartialSize
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_PARTIAL_SIZE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsPartialSize() {
return isPartialSize;
}
@JsonProperty(JSON_PROPERTY_IS_PARTIAL_SIZE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsPartialSize(Boolean isPartialSize) {
this.isPartialSize = isPartialSize;
}
public DominoDatasetApiDatasetScratchSpaceDto id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public DominoDatasetApiDatasetScratchSpaceDto daysSinceLastSnapshot(Integer daysSinceLastSnapshot) {
this.daysSinceLastSnapshot = daysSinceLastSnapshot;
return this;
}
/**
* Get daysSinceLastSnapshot
* @return daysSinceLastSnapshot
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DAYS_SINCE_LAST_SNAPSHOT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getDaysSinceLastSnapshot() {
return daysSinceLastSnapshot;
}
@JsonProperty(JSON_PROPERTY_DAYS_SINCE_LAST_SNAPSHOT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDaysSinceLastSnapshot(Integer daysSinceLastSnapshot) {
this.daysSinceLastSnapshot = daysSinceLastSnapshot;
}
public DominoDatasetApiDatasetScratchSpaceDto promotionWarningStatus(PromotionWarningStatusEnum promotionWarningStatus) {
this.promotionWarningStatus = promotionWarningStatus;
return this;
}
/**
* Get promotionWarningStatus
* @return promotionWarningStatus
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROMOTION_WARNING_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public PromotionWarningStatusEnum getPromotionWarningStatus() {
return promotionWarningStatus;
}
@JsonProperty(JSON_PROPERTY_PROMOTION_WARNING_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPromotionWarningStatus(PromotionWarningStatusEnum promotionWarningStatus) {
this.promotionWarningStatus = promotionWarningStatus;
}
/**
* Return true if this domino.dataset.api.DatasetScratchSpaceDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoDatasetApiDatasetScratchSpaceDto dominoDatasetApiDatasetScratchSpaceDto = (DominoDatasetApiDatasetScratchSpaceDto) o;
return Objects.equals(this.userId, dominoDatasetApiDatasetScratchSpaceDto.userId) &&
Objects.equals(this.projectId, dominoDatasetApiDatasetScratchSpaceDto.projectId) &&
Objects.equals(this.lastUpdatedDateMillis, dominoDatasetApiDatasetScratchSpaceDto.lastUpdatedDateMillis) &&
Objects.equals(this.lastSnapshotDateMillis, dominoDatasetApiDatasetScratchSpaceDto.lastSnapshotDateMillis) &&
Objects.equals(this.scratchSpaceSize, dominoDatasetApiDatasetScratchSpaceDto.scratchSpaceSize) &&
Objects.equals(this.isPartialSize, dominoDatasetApiDatasetScratchSpaceDto.isPartialSize) &&
Objects.equals(this.id, dominoDatasetApiDatasetScratchSpaceDto.id) &&
Objects.equals(this.daysSinceLastSnapshot, dominoDatasetApiDatasetScratchSpaceDto.daysSinceLastSnapshot) &&
Objects.equals(this.promotionWarningStatus, dominoDatasetApiDatasetScratchSpaceDto.promotionWarningStatus);
}
@Override
public int hashCode() {
return Objects.hash(userId, projectId, lastUpdatedDateMillis, lastSnapshotDateMillis, scratchSpaceSize, isPartialSize, id, daysSinceLastSnapshot, promotionWarningStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoDatasetApiDatasetScratchSpaceDto {\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" lastUpdatedDateMillis: ").append(toIndentedString(lastUpdatedDateMillis)).append("\n");
sb.append(" lastSnapshotDateMillis: ").append(toIndentedString(lastSnapshotDateMillis)).append("\n");
sb.append(" scratchSpaceSize: ").append(toIndentedString(scratchSpaceSize)).append("\n");
sb.append(" isPartialSize: ").append(toIndentedString(isPartialSize)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" daysSinceLastSnapshot: ").append(toIndentedString(daysSinceLastSnapshot)).append("\n");
sb.append(" promotionWarningStatus: ").append(toIndentedString(promotionWarningStatus)).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 `userId` to the URL query string
if (getUserId() != null) {
joiner.add(String.format("%suserId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `projectId` to the URL query string
if (getProjectId() != null) {
joiner.add(String.format("%sprojectId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `lastUpdatedDateMillis` to the URL query string
if (getLastUpdatedDateMillis() != null) {
joiner.add(String.format("%slastUpdatedDateMillis%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastUpdatedDateMillis()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `lastSnapshotDateMillis` to the URL query string
if (getLastSnapshotDateMillis() != null) {
joiner.add(String.format("%slastSnapshotDateMillis%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastSnapshotDateMillis()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `scratchSpaceSize` to the URL query string
if (getScratchSpaceSize() != null) {
joiner.add(String.format("%sscratchSpaceSize%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getScratchSpaceSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `isPartialSize` to the URL query string
if (getIsPartialSize() != null) {
joiner.add(String.format("%sisPartialSize%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsPartialSize()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `id` to the URL query string
if (getId() != null) {
joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `daysSinceLastSnapshot` to the URL query string
if (getDaysSinceLastSnapshot() != null) {
joiner.add(String.format("%sdaysSinceLastSnapshot%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDaysSinceLastSnapshot()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `promotionWarningStatus` to the URL query string
if (getPromotionWarningStatus() != null) {
joiner.add(String.format("%spromotionWarningStatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPromotionWarningStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy