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

com.seeq.model.ActivityOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 60.1.3-v202304250417
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.seeq.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * The set of Activities in the graph. Each ID in the nodes will be unique in this list. The order is not guaranteed to be meaningful. Correspond the IDs with  edges to determine current leaf Activities.
 */
@Schema(description = "The set of Activities in the graph. Each ID in the nodes will be unique in this list. The order is not guaranteed to be meaningful. Correspond the IDs with  edges to determine current leaf Activities.")
public class ActivityOutputV1 {
  @JsonProperty("category")
  private String category = null;

  @JsonProperty("childrenIds")
  private List childrenIds = new ArrayList();

  @JsonProperty("description")
  private String description = null;

  @JsonProperty("id")
  private String id = null;

  @JsonProperty("properties")
  private Map properties = new HashMap();

  public ActivityOutputV1 category(String category) {
    this.category = category;
    return this;
  }

   /**
   * The kind of activity this represents, irrespective of specific instance parameters. Use this to do things like coloring activities of the same kind.
   * @return category
  **/
  @Schema(required = true, description = "The kind of activity this represents, irrespective of specific instance parameters. Use this to do things like coloring activities of the same kind.")
  public String getCategory() {
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }

  public ActivityOutputV1 childrenIds(List childrenIds) {
    this.childrenIds = childrenIds;
    return this;
  }

  public ActivityOutputV1 addChildrenIdsItem(String childrenIdsItem) {
    this.childrenIds.add(childrenIdsItem);
    return this;
  }

   /**
   * The (ephemeral) IDs of all children for this activity.
   * @return childrenIds
  **/
  @Schema(required = true, description = "The (ephemeral) IDs of all children for this activity.")
  public List getChildrenIds() {
    return childrenIds;
  }

  public void setChildrenIds(List childrenIds) {
    this.childrenIds = childrenIds;
  }

  public ActivityOutputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * An admin-readable description of the operation being performed
   * @return description
  **/
  @Schema(required = true, description = "An admin-readable description of the operation being performed")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public ActivityOutputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The (ephemeral) ID of the Activity. Only valid within the context of a particular snapshot, for example for correlating activities shared amongst multiple requests.
   * @return id
  **/
  @Schema(required = true, description = "The (ephemeral) ID of the Activity. Only valid within the context of a particular snapshot, for example for correlating activities shared amongst multiple requests.")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public ActivityOutputV1 properties(Map properties) {
    this.properties = properties;
    return this;
  }

  public ActivityOutputV1 putPropertiesItem(String key, String propertiesItem) {
    this.properties.put(key, propertiesItem);
    return this;
  }

   /**
   * Additional details, such as the time interval, names, or identifiers
   * @return properties
  **/
  @Schema(required = true, description = "Additional details, such as the time interval, names, or identifiers")
  public Map getProperties() {
    return properties;
  }

  public void setProperties(Map properties) {
    this.properties = properties;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ActivityOutputV1 activityOutputV1 = (ActivityOutputV1) o;
    return Objects.equals(this.category, activityOutputV1.category) &&
        Objects.equals(this.childrenIds, activityOutputV1.childrenIds) &&
        Objects.equals(this.description, activityOutputV1.description) &&
        Objects.equals(this.id, activityOutputV1.id) &&
        Objects.equals(this.properties, activityOutputV1.properties);
  }

  @Override
  public int hashCode() {
    return Objects.hash(category, childrenIds, description, id, properties);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ActivityOutputV1 {\n");
    
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    childrenIds: ").append(toIndentedString(childrenIds)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    properties: ").append(toIndentedString(properties)).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 - 2024 Weber Informatics LLC | Privacy Policy