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

net.leanix.synclog.api.models.SyncItemBatch Maven / Gradle / Ivy

package net.leanix.synclog.api.models;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import net.leanix.synclog.api.models.SyncItem;






public class SyncItemBatch   {
  
  private List syncItems = new ArrayList();


  public enum ProgressEnum {
    PENDING("PENDING"),
    RUNNING("RUNNING"),
    ABORTED("ABORTED"),
    FINISHED("FINISHED");

    private String value;

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

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

  private ProgressEnum progress = null;

  
  /**
   **/
  public SyncItemBatch syncItems(List syncItems) {
    this.syncItems = syncItems;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("syncItems")
  public List getSyncItems() {
    return syncItems;
  }
  public void setSyncItems(List syncItems) {
    this.syncItems = syncItems;
  }

  
  /**
   **/
  public SyncItemBatch progress(ProgressEnum progress) {
    this.progress = progress;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("progress")
  public ProgressEnum getProgress() {
    return progress;
  }
  public void setProgress(ProgressEnum progress) {
    this.progress = progress;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SyncItemBatch syncItemBatch = (SyncItemBatch) o;
    return Objects.equals(this.syncItems, syncItemBatch.syncItems) &&
        Objects.equals(this.progress, syncItemBatch.progress);
  }

  @Override
  public int hashCode() {
    return Objects.hash(syncItems, progress);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SyncItemBatch {\n");
    
    sb.append("    syncItems: ").append(toIndentedString(syncItems)).append("\n");
    sb.append("    progress: ").append(toIndentedString(progress)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy