/*
 * appNG REST API
 * The REST API for appNG
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: matthias.mueller@appng.org
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.appng.openapi.model;

import java.util.Objects;
import java.util.Arrays;
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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.appng.openapi.model.Parameter;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * ActionLinkAllOf
 */
@JsonPropertyOrder({
  ActionLinkAllOf.JSON_PROPERTY_ID,
  ActionLinkAllOf.JSON_PROPERTY_EVENT_ID,
  ActionLinkAllOf.JSON_PROPERTY_INTERACTIVE,
  ActionLinkAllOf.JSON_PROPERTY_PARAMETERS
})
@JsonTypeName("ActionLink_allOf")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-03-20T12:57:48.851+01:00[Europe/Berlin]")
public class ActionLinkAllOf {
  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_EVENT_ID = "event-id";
  private String eventId;

  public static final String JSON_PROPERTY_INTERACTIVE = "interactive";
  private Boolean interactive;

  public static final String JSON_PROPERTY_PARAMETERS = "parameters";
  private List<Parameter> parameters = null;


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

   /**
   * ID of the action
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "ID of the action")
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setId(String id) {
    this.id = id;
  }


  public ActionLinkAllOf eventId(String eventId) {
    
    this.eventId = eventId;
    return this;
  }

   /**
   * Event-ID of the action
   * @return eventId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Event-ID of the action")
  @JsonProperty(JSON_PROPERTY_EVENT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getEventId() {
    return eventId;
  }


  @JsonProperty(JSON_PROPERTY_EVENT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEventId(String eventId) {
    this.eventId = eventId;
  }


  public ActionLinkAllOf interactive(Boolean interactive) {
    
    this.interactive = interactive;
    return this;
  }

   /**
   * Wether or not this action requires additional user-input
   * @return interactive
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Wether or not this action requires additional user-input")
  @JsonProperty(JSON_PROPERTY_INTERACTIVE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getInteractive() {
    return interactive;
  }


  @JsonProperty(JSON_PROPERTY_INTERACTIVE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setInteractive(Boolean interactive) {
    this.interactive = interactive;
  }


  public ActionLinkAllOf parameters(List<Parameter> parameters) {
    
    this.parameters = parameters;
    return this;
  }

  public ActionLinkAllOf addParametersItem(Parameter parametersItem) {
    if (this.parameters == null) {
      this.parameters = new ArrayList<>();
    }
    this.parameters.add(parametersItem);
    return this;
  }

   /**
   * Get parameters
   * @return parameters
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_PARAMETERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List<Parameter> getParameters() {
    return parameters;
  }


  @JsonProperty(JSON_PROPERTY_PARAMETERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setParameters(List<Parameter> parameters) {
    this.parameters = parameters;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ActionLinkAllOf actionLinkAllOf = (ActionLinkAllOf) o;
    return Objects.equals(this.id, actionLinkAllOf.id) &&
        Objects.equals(this.eventId, actionLinkAllOf.eventId) &&
        Objects.equals(this.interactive, actionLinkAllOf.interactive) &&
        Objects.equals(this.parameters, actionLinkAllOf.parameters);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, eventId, interactive, parameters);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ActionLinkAllOf {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    eventId: ").append(toIndentedString(eventId)).append("\n");
    sb.append("    interactive: ").append(toIndentedString(interactive)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).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    ");
  }

}

