com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceAdminPageSummaryDto 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.dominodatalab.api.model.Information;
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;
/**
* DominoWorkspaceApiWorkspaceAdminPageSummaryDto
*/
@JsonPropertyOrder({
DominoWorkspaceApiWorkspaceAdminPageSummaryDto.JSON_PROPERTY_TOTAL_NUM_WORKSPACES,
DominoWorkspaceApiWorkspaceAdminPageSummaryDto.JSON_PROPERTY_MAX_ALLOWED_NUM_WORKSPACES,
DominoWorkspaceApiWorkspaceAdminPageSummaryDto.JSON_PROPERTY_TOTAL_ALLOCATED_VOLUME_SIZE,
DominoWorkspaceApiWorkspaceAdminPageSummaryDto.JSON_PROPERTY_MAX_ALLOWED_ALLOCATED_VOLUME_SIZE,
DominoWorkspaceApiWorkspaceAdminPageSummaryDto.JSON_PROPERTY_TOTAL_STARTED_WORKSPACES
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoWorkspaceApiWorkspaceAdminPageSummaryDto {
public static final String JSON_PROPERTY_TOTAL_NUM_WORKSPACES = "totalNumWorkspaces";
private Long totalNumWorkspaces;
public static final String JSON_PROPERTY_MAX_ALLOWED_NUM_WORKSPACES = "maxAllowedNumWorkspaces";
private Long maxAllowedNumWorkspaces;
public static final String JSON_PROPERTY_TOTAL_ALLOCATED_VOLUME_SIZE = "totalAllocatedVolumeSize";
private Information totalAllocatedVolumeSize;
public static final String JSON_PROPERTY_MAX_ALLOWED_ALLOCATED_VOLUME_SIZE = "maxAllowedAllocatedVolumeSize";
private Information maxAllowedAllocatedVolumeSize;
public static final String JSON_PROPERTY_TOTAL_STARTED_WORKSPACES = "totalStartedWorkspaces";
private Long totalStartedWorkspaces;
public DominoWorkspaceApiWorkspaceAdminPageSummaryDto() {
}
public DominoWorkspaceApiWorkspaceAdminPageSummaryDto totalNumWorkspaces(Long totalNumWorkspaces) {
this.totalNumWorkspaces = totalNumWorkspaces;
return this;
}
/**
* Get totalNumWorkspaces
* @return totalNumWorkspaces
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TOTAL_NUM_WORKSPACES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getTotalNumWorkspaces() {
return totalNumWorkspaces;
}
@JsonProperty(JSON_PROPERTY_TOTAL_NUM_WORKSPACES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTotalNumWorkspaces(Long totalNumWorkspaces) {
this.totalNumWorkspaces = totalNumWorkspaces;
}
public DominoWorkspaceApiWorkspaceAdminPageSummaryDto maxAllowedNumWorkspaces(Long maxAllowedNumWorkspaces) {
this.maxAllowedNumWorkspaces = maxAllowedNumWorkspaces;
return this;
}
/**
* Get maxAllowedNumWorkspaces
* @return maxAllowedNumWorkspaces
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAX_ALLOWED_NUM_WORKSPACES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getMaxAllowedNumWorkspaces() {
return maxAllowedNumWorkspaces;
}
@JsonProperty(JSON_PROPERTY_MAX_ALLOWED_NUM_WORKSPACES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaxAllowedNumWorkspaces(Long maxAllowedNumWorkspaces) {
this.maxAllowedNumWorkspaces = maxAllowedNumWorkspaces;
}
public DominoWorkspaceApiWorkspaceAdminPageSummaryDto totalAllocatedVolumeSize(Information totalAllocatedVolumeSize) {
this.totalAllocatedVolumeSize = totalAllocatedVolumeSize;
return this;
}
/**
* Get totalAllocatedVolumeSize
* @return totalAllocatedVolumeSize
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TOTAL_ALLOCATED_VOLUME_SIZE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Information getTotalAllocatedVolumeSize() {
return totalAllocatedVolumeSize;
}
@JsonProperty(JSON_PROPERTY_TOTAL_ALLOCATED_VOLUME_SIZE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTotalAllocatedVolumeSize(Information totalAllocatedVolumeSize) {
this.totalAllocatedVolumeSize = totalAllocatedVolumeSize;
}
public DominoWorkspaceApiWorkspaceAdminPageSummaryDto maxAllowedAllocatedVolumeSize(Information maxAllowedAllocatedVolumeSize) {
this.maxAllowedAllocatedVolumeSize = maxAllowedAllocatedVolumeSize;
return this;
}
/**
* Get maxAllowedAllocatedVolumeSize
* @return maxAllowedAllocatedVolumeSize
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MAX_ALLOWED_ALLOCATED_VOLUME_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Information getMaxAllowedAllocatedVolumeSize() {
return maxAllowedAllocatedVolumeSize;
}
@JsonProperty(JSON_PROPERTY_MAX_ALLOWED_ALLOCATED_VOLUME_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMaxAllowedAllocatedVolumeSize(Information maxAllowedAllocatedVolumeSize) {
this.maxAllowedAllocatedVolumeSize = maxAllowedAllocatedVolumeSize;
}
public DominoWorkspaceApiWorkspaceAdminPageSummaryDto totalStartedWorkspaces(Long totalStartedWorkspaces) {
this.totalStartedWorkspaces = totalStartedWorkspaces;
return this;
}
/**
* Get totalStartedWorkspaces
* @return totalStartedWorkspaces
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TOTAL_STARTED_WORKSPACES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getTotalStartedWorkspaces() {
return totalStartedWorkspaces;
}
@JsonProperty(JSON_PROPERTY_TOTAL_STARTED_WORKSPACES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTotalStartedWorkspaces(Long totalStartedWorkspaces) {
this.totalStartedWorkspaces = totalStartedWorkspaces;
}
/**
* Return true if this domino.workspace.api.WorkspaceAdminPageSummaryDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoWorkspaceApiWorkspaceAdminPageSummaryDto dominoWorkspaceApiWorkspaceAdminPageSummaryDto = (DominoWorkspaceApiWorkspaceAdminPageSummaryDto) o;
return Objects.equals(this.totalNumWorkspaces, dominoWorkspaceApiWorkspaceAdminPageSummaryDto.totalNumWorkspaces) &&
Objects.equals(this.maxAllowedNumWorkspaces, dominoWorkspaceApiWorkspaceAdminPageSummaryDto.maxAllowedNumWorkspaces) &&
Objects.equals(this.totalAllocatedVolumeSize, dominoWorkspaceApiWorkspaceAdminPageSummaryDto.totalAllocatedVolumeSize) &&
Objects.equals(this.maxAllowedAllocatedVolumeSize, dominoWorkspaceApiWorkspaceAdminPageSummaryDto.maxAllowedAllocatedVolumeSize) &&
Objects.equals(this.totalStartedWorkspaces, dominoWorkspaceApiWorkspaceAdminPageSummaryDto.totalStartedWorkspaces);
}
@Override
public int hashCode() {
return Objects.hash(totalNumWorkspaces, maxAllowedNumWorkspaces, totalAllocatedVolumeSize, maxAllowedAllocatedVolumeSize, totalStartedWorkspaces);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoWorkspaceApiWorkspaceAdminPageSummaryDto {\n");
sb.append(" totalNumWorkspaces: ").append(toIndentedString(totalNumWorkspaces)).append("\n");
sb.append(" maxAllowedNumWorkspaces: ").append(toIndentedString(maxAllowedNumWorkspaces)).append("\n");
sb.append(" totalAllocatedVolumeSize: ").append(toIndentedString(totalAllocatedVolumeSize)).append("\n");
sb.append(" maxAllowedAllocatedVolumeSize: ").append(toIndentedString(maxAllowedAllocatedVolumeSize)).append("\n");
sb.append(" totalStartedWorkspaces: ").append(toIndentedString(totalStartedWorkspaces)).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 `totalNumWorkspaces` to the URL query string
if (getTotalNumWorkspaces() != null) {
joiner.add(String.format("%stotalNumWorkspaces%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalNumWorkspaces()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `maxAllowedNumWorkspaces` to the URL query string
if (getMaxAllowedNumWorkspaces() != null) {
joiner.add(String.format("%smaxAllowedNumWorkspaces%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaxAllowedNumWorkspaces()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `totalAllocatedVolumeSize` to the URL query string
if (getTotalAllocatedVolumeSize() != null) {
joiner.add(getTotalAllocatedVolumeSize().toUrlQueryString(prefix + "totalAllocatedVolumeSize" + suffix));
}
// add `maxAllowedAllocatedVolumeSize` to the URL query string
if (getMaxAllowedAllocatedVolumeSize() != null) {
joiner.add(getMaxAllowedAllocatedVolumeSize().toUrlQueryString(prefix + "maxAllowedAllocatedVolumeSize" + suffix));
}
// add `totalStartedWorkspaces` to the URL query string
if (getTotalStartedWorkspaces() != null) {
joiner.add(String.format("%stotalStartedWorkspaces%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalStartedWorkspaces()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy