com.dominodatalab.api.model.DominoWorkspaceApiGitMergeConflictResolutionResponseDto 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.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DominoWorkspaceApiGitMergeConflictResolutionResponseDto
*/
@JsonPropertyOrder({
DominoWorkspaceApiGitMergeConflictResolutionResponseDto.JSON_PROPERTY_SUCCEEDED_REPO_IDS,
DominoWorkspaceApiGitMergeConflictResolutionResponseDto.JSON_PROPERTY_FAILED_REPO_IDS,
DominoWorkspaceApiGitMergeConflictResolutionResponseDto.JSON_PROPERTY_FAILED_REASON
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoWorkspaceApiGitMergeConflictResolutionResponseDto {
public static final String JSON_PROPERTY_SUCCEEDED_REPO_IDS = "succeededRepoIds";
private List succeededRepoIds = new ArrayList<>();
public static final String JSON_PROPERTY_FAILED_REPO_IDS = "failedRepoIds";
private List failedRepoIds = new ArrayList<>();
public static final String JSON_PROPERTY_FAILED_REASON = "failedReason";
private String failedReason;
public DominoWorkspaceApiGitMergeConflictResolutionResponseDto() {
}
public DominoWorkspaceApiGitMergeConflictResolutionResponseDto succeededRepoIds(List succeededRepoIds) {
this.succeededRepoIds = succeededRepoIds;
return this;
}
public DominoWorkspaceApiGitMergeConflictResolutionResponseDto addSucceededRepoIdsItem(String succeededRepoIdsItem) {
if (this.succeededRepoIds == null) {
this.succeededRepoIds = new ArrayList<>();
}
this.succeededRepoIds.add(succeededRepoIdsItem);
return this;
}
/**
* Get succeededRepoIds
* @return succeededRepoIds
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SUCCEEDED_REPO_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getSucceededRepoIds() {
return succeededRepoIds;
}
@JsonProperty(JSON_PROPERTY_SUCCEEDED_REPO_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSucceededRepoIds(List succeededRepoIds) {
this.succeededRepoIds = succeededRepoIds;
}
public DominoWorkspaceApiGitMergeConflictResolutionResponseDto failedRepoIds(List failedRepoIds) {
this.failedRepoIds = failedRepoIds;
return this;
}
public DominoWorkspaceApiGitMergeConflictResolutionResponseDto addFailedRepoIdsItem(String failedRepoIdsItem) {
if (this.failedRepoIds == null) {
this.failedRepoIds = new ArrayList<>();
}
this.failedRepoIds.add(failedRepoIdsItem);
return this;
}
/**
* Get failedRepoIds
* @return failedRepoIds
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_FAILED_REPO_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getFailedRepoIds() {
return failedRepoIds;
}
@JsonProperty(JSON_PROPERTY_FAILED_REPO_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFailedRepoIds(List failedRepoIds) {
this.failedRepoIds = failedRepoIds;
}
public DominoWorkspaceApiGitMergeConflictResolutionResponseDto failedReason(String failedReason) {
this.failedReason = failedReason;
return this;
}
/**
* Get failedReason
* @return failedReason
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FAILED_REASON)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFailedReason() {
return failedReason;
}
@JsonProperty(JSON_PROPERTY_FAILED_REASON)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFailedReason(String failedReason) {
this.failedReason = failedReason;
}
/**
* Return true if this domino.workspace.api.git.MergeConflictResolutionResponseDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoWorkspaceApiGitMergeConflictResolutionResponseDto dominoWorkspaceApiGitMergeConflictResolutionResponseDto = (DominoWorkspaceApiGitMergeConflictResolutionResponseDto) o;
return Objects.equals(this.succeededRepoIds, dominoWorkspaceApiGitMergeConflictResolutionResponseDto.succeededRepoIds) &&
Objects.equals(this.failedRepoIds, dominoWorkspaceApiGitMergeConflictResolutionResponseDto.failedRepoIds) &&
Objects.equals(this.failedReason, dominoWorkspaceApiGitMergeConflictResolutionResponseDto.failedReason);
}
@Override
public int hashCode() {
return Objects.hash(succeededRepoIds, failedRepoIds, failedReason);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoWorkspaceApiGitMergeConflictResolutionResponseDto {\n");
sb.append(" succeededRepoIds: ").append(toIndentedString(succeededRepoIds)).append("\n");
sb.append(" failedRepoIds: ").append(toIndentedString(failedRepoIds)).append("\n");
sb.append(" failedReason: ").append(toIndentedString(failedReason)).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 `succeededRepoIds` to the URL query string
if (getSucceededRepoIds() != null) {
for (int i = 0; i < getSucceededRepoIds().size(); i++) {
joiner.add(String.format("%ssucceededRepoIds%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
URLEncoder.encode(String.valueOf(getSucceededRepoIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
// add `failedRepoIds` to the URL query string
if (getFailedRepoIds() != null) {
for (int i = 0; i < getFailedRepoIds().size(); i++) {
joiner.add(String.format("%sfailedRepoIds%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
URLEncoder.encode(String.valueOf(getFailedRepoIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
// add `failedReason` to the URL query string
if (getFailedReason() != null) {
joiner.add(String.format("%sfailedReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFailedReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy