com.dominodatalab.api.model.DominoProjectsApiProjectTemplateDetails 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 Data Lab API v4
* This API provides access to select Domino functions available in Domino's non-public API. 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;
import com.dominodatalab.api.invoker.ApiClient;
/**
* DominoProjectsApiProjectTemplateDetails
*/
@JsonPropertyOrder({
DominoProjectsApiProjectTemplateDetails.JSON_PROPERTY_NAME,
DominoProjectsApiProjectTemplateDetails.JSON_PROPERTY_TEMPLATE_ID,
DominoProjectsApiProjectTemplateDetails.JSON_PROPERTY_TEMPLATE_REVISION_ID,
DominoProjectsApiProjectTemplateDetails.JSON_PROPERTY_TEMPLATE_TYPE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T16:37:26.309454-04:00[America/New_York]", comments = "Generator version: 7.8.0")
public class DominoProjectsApiProjectTemplateDetails {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_TEMPLATE_ID = "templateId";
private String templateId;
public static final String JSON_PROPERTY_TEMPLATE_REVISION_ID = "templateRevisionId";
private String templateRevisionId;
/**
* Gets or Sets templateType
*/
public enum TemplateTypeEnum {
CUSTOMER("customer"),
ECOSYSTEM("ecosystem");
private String value;
TemplateTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TemplateTypeEnum fromValue(String value) {
for (TemplateTypeEnum b : TemplateTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return null;
}
}
public static final String JSON_PROPERTY_TEMPLATE_TYPE = "templateType";
private TemplateTypeEnum templateType;
public DominoProjectsApiProjectTemplateDetails() {
}
public DominoProjectsApiProjectTemplateDetails name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public DominoProjectsApiProjectTemplateDetails templateId(String templateId) {
this.templateId = templateId;
return this;
}
/**
* Get templateId
* @return templateId
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TEMPLATE_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTemplateId() {
return templateId;
}
@JsonProperty(JSON_PROPERTY_TEMPLATE_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public DominoProjectsApiProjectTemplateDetails templateRevisionId(String templateRevisionId) {
this.templateRevisionId = templateRevisionId;
return this;
}
/**
* Get templateRevisionId
* @return templateRevisionId
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TEMPLATE_REVISION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTemplateRevisionId() {
return templateRevisionId;
}
@JsonProperty(JSON_PROPERTY_TEMPLATE_REVISION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTemplateRevisionId(String templateRevisionId) {
this.templateRevisionId = templateRevisionId;
}
public DominoProjectsApiProjectTemplateDetails templateType(TemplateTypeEnum templateType) {
this.templateType = templateType;
return this;
}
/**
* Get templateType
* @return templateType
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TEMPLATE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public TemplateTypeEnum getTemplateType() {
return templateType;
}
@JsonProperty(JSON_PROPERTY_TEMPLATE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTemplateType(TemplateTypeEnum templateType) {
this.templateType = templateType;
}
/**
* Return true if this domino.projects.api.ProjectTemplateDetails object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoProjectsApiProjectTemplateDetails dominoProjectsApiProjectTemplateDetails = (DominoProjectsApiProjectTemplateDetails) o;
return Objects.equals(this.name, dominoProjectsApiProjectTemplateDetails.name) &&
Objects.equals(this.templateId, dominoProjectsApiProjectTemplateDetails.templateId) &&
Objects.equals(this.templateRevisionId, dominoProjectsApiProjectTemplateDetails.templateRevisionId) &&
Objects.equals(this.templateType, dominoProjectsApiProjectTemplateDetails.templateType);
}
@Override
public int hashCode() {
return Objects.hash(name, templateId, templateRevisionId, templateType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoProjectsApiProjectTemplateDetails {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n");
sb.append(" templateRevisionId: ").append(toIndentedString(templateRevisionId)).append("\n");
sb.append(" templateType: ").append(toIndentedString(templateType)).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 `name` to the URL query string
if (getName() != null) {
joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `templateId` to the URL query string
if (getTemplateId() != null) {
joiner.add(String.format("%stemplateId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTemplateId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `templateRevisionId` to the URL query string
if (getTemplateRevisionId() != null) {
joiner.add(String.format("%stemplateRevisionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTemplateRevisionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `templateType` to the URL query string
if (getTemplateType() != null) {
joiner.add(String.format("%stemplateType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTemplateType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy