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

io.camunda.zeebe.management.cluster.PartitionStateCode Maven / Gradle / Ivy

There is a newer version: 8.7.0-alpha1
Show newest version
package io.camunda.zeebe.management.cluster;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonValue;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


import java.util.*;
import jakarta.annotation.Generated;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * State of a partition
 */

@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-08-06T14:30:47.410826531Z[GMT]", comments = "Generator version: 7.4.0")
public enum PartitionStateCode {
  
  UNKNOWN("UNKNOWN"),
  
  JOINING("JOINING"),
  
  ACTIVE("ACTIVE"),
  
  LEAVING("LEAVING");

  private String value;

  PartitionStateCode(String value) {
    this.value = value;
  }

  @JsonValue
  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  @JsonCreator
  public static PartitionStateCode fromValue(String value) {
    for (PartitionStateCode b : PartitionStateCode.values()) {
      if (b.value.equals(value)) {
        return b;
      }
    }
    throw new IllegalArgumentException("Unexpected value '" + value + "'");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy