All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.alauda.devops.client.models.PipelineConfigStatus Maven / Gradle / Ivy

There is a newer version: 0.2.10
Show newest version
package io.alauda.devops.client.models;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.alauda.kubernetes.api.model.Doneable;
import io.alauda.kubernetes.api.model.KubernetesResource;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@JsonPropertyOrder({
  "apiVersion",
  "kind",
  "metadata",
  "phase",
  "reason",
  "message",
  "lastAttempt",
  "conditions"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(builderPackage = "io.alauda.kubernetes.api.builder", editableEnabled = false, inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class PipelineConfigStatus implements KubernetesResource {
  public static final String PipelineConfigPhaseCreating = "Creating";
  public static final String PipelineConfigPhaseSyncing = "Syncing";
  public static final String PipelineConfigPhaseReady = "Ready";
  public static final String PipelineConfigPhaseError = "Error";

  @JsonProperty("phase")
  private String phase;
  @JsonProperty("reason")
  private String reason;
  @JsonProperty("message")
  private String message;
  @JsonProperty("lastAttempt")
  private String lastAttempt;
  @JsonProperty("conditions")
  private List conditions = new ArrayList<>();

  @JsonProperty("phase")
  public String getPhase() {
    return phase;
  }
  @JsonProperty("phase")
  public void setPhase(String phase) {
    this.phase = phase;
  }
  @JsonProperty("reason")
  public String getReason() {
    return reason;
  }
  @JsonProperty("reason")
  public void setReason(String reason) {
    this.reason = reason;
  }
  @JsonProperty("message")
  public String getMessage() {
    return message;
  }
  @JsonProperty("message")
  public void setMessage(String message) {
    this.message = message;
  }
  @JsonProperty("lastAttempt")
  public String getLastAttempt() {
    return lastAttempt;
  }
  @JsonProperty("lastAttempt")
  public void setLastAttempt(String lastAttempt) {
    this.lastAttempt = lastAttempt;
  }

  @JsonProperty("conditions")
  public List getConditions() {
    return conditions;
  }
  @JsonProperty("conditions")
  public void setConditions(List conditions) {
    this.conditions = conditions;
  }
  @JsonAnyGetter
  public Map getAdditionalProperties() {
    return additionalProperties;
  }
  @JsonAnySetter
  public void setAdditionalProperties(Map additionalProperties) {
    this.additionalProperties = additionalProperties;
  }

  @JsonIgnore
  private Map additionalProperties = new HashMap();

  public PipelineConfigStatus(){
  }

  public PipelineConfigStatus(String phase, String reason, String message, String lastAttempt, List conditions) {
    this.phase = phase;
    this.reason = reason;
    this.message = message;
    this.lastAttempt = lastAttempt;
    this.conditions = conditions;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy