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

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

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 65.1.3-v202408082312
 * 
 *
 * 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 com.seeq.model.AttachmentInputV1;
import com.seeq.model.JiraAttachment;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * SupportRequestInputV1
 */
public class SupportRequestInputV1 {
  @JsonProperty("attachment")
  private AttachmentInputV1 attachment = null;

  @JsonProperty("attachmentForJira")
  private JiraAttachment attachmentForJira = null;

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

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

  /**
   * The observed frequency of the problem
   */
  public enum FrequencyEnum {
    NOTAPPLICABLE("NotApplicable"),
    ONCE("Once"),
    EVERYTIME("EveryTime"),
    INFREQUENTLY("Infrequently");

    private String value;

    FrequencyEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static FrequencyEnum fromValue(String input) {
      for (FrequencyEnum b : FrequencyEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("frequency")
  private FrequencyEnum frequency = null;

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

  /**
   * The severity level, S4 is the lowest and most common and S1 is the highest and for system down events
   */
  public enum SeverityEnum {
    S4("S4"),
    S3("S3"),
    S2("S2"),
    S1("S1");

    private String value;

    SeverityEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static SeverityEnum fromValue(String input) {
      for (SeverityEnum b : SeverityEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("severity")
  private SeverityEnum severity = null;

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

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

  public SupportRequestInputV1 attachment(AttachmentInputV1 attachment) {
    this.attachment = attachment;
    return this;
  }

   /**
   * Get attachment
   * @return attachment
  **/
  @Schema(description = "")
  public AttachmentInputV1 getAttachment() {
    return attachment;
  }

  public void setAttachment(AttachmentInputV1 attachment) {
    this.attachment = attachment;
  }

  public SupportRequestInputV1 attachmentForJira(JiraAttachment attachmentForJira) {
    this.attachmentForJira = attachmentForJira;
    return this;
  }

   /**
   * Get attachmentForJira
   * @return attachmentForJira
  **/
  @Schema(description = "")
  public JiraAttachment getAttachmentForJira() {
    return attachmentForJira;
  }

  public void setAttachmentForJira(JiraAttachment attachmentForJira) {
    this.attachmentForJira = attachmentForJira;
  }

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

   /**
   * Additional details that can help the Support Team understand the problem or request
   * @return description
  **/
  @Schema(required = true, description = "Additional details that can help the Support Team understand the problem or request")
  public String getDescription() {
    return description;
  }

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

  public SupportRequestInputV1 email(String email) {
    this.email = email;
    return this;
  }

   /**
   * The email address of the sender
   * @return email
  **/
  @Schema(required = true, description = "The email address of the sender")
  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public SupportRequestInputV1 frequency(FrequencyEnum frequency) {
    this.frequency = frequency;
    return this;
  }

   /**
   * The observed frequency of the problem
   * @return frequency
  **/
  @Schema(required = true, description = "The observed frequency of the problem")
  public FrequencyEnum getFrequency() {
    return frequency;
  }

  public void setFrequency(FrequencyEnum frequency) {
    this.frequency = frequency;
  }

  public SupportRequestInputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The name of the sender
   * @return name
  **/
  @Schema(required = true, description = "The name of the sender")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public SupportRequestInputV1 severity(SeverityEnum severity) {
    this.severity = severity;
    return this;
  }

   /**
   * The severity level, S4 is the lowest and most common and S1 is the highest and for system down events
   * @return severity
  **/
  @Schema(required = true, description = "The severity level, S4 is the lowest and most common and S1 is the highest and for system down events")
  public SeverityEnum getSeverity() {
    return severity;
  }

  public void setSeverity(SeverityEnum severity) {
    this.severity = severity;
  }

  public SupportRequestInputV1 stepsToReproduce(String stepsToReproduce) {
    this.stepsToReproduce = stepsToReproduce;
    return this;
  }

   /**
   * The steps to reproduce the problem
   * @return stepsToReproduce
  **/
  @Schema(description = "The steps to reproduce the problem")
  public String getStepsToReproduce() {
    return stepsToReproduce;
  }

  public void setStepsToReproduce(String stepsToReproduce) {
    this.stepsToReproduce = stepsToReproduce;
  }

  public SupportRequestInputV1 summary(String summary) {
    this.summary = summary;
    return this;
  }

   /**
   * A one-line description of the problem or feature request
   * @return summary
  **/
  @Schema(required = true, description = "A one-line description of the problem or feature request")
  public String getSummary() {
    return summary;
  }

  public void setSummary(String summary) {
    this.summary = summary;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SupportRequestInputV1 supportRequestInputV1 = (SupportRequestInputV1) o;
    return Objects.equals(this.attachment, supportRequestInputV1.attachment) &&
        Objects.equals(this.attachmentForJira, supportRequestInputV1.attachmentForJira) &&
        Objects.equals(this.description, supportRequestInputV1.description) &&
        Objects.equals(this.email, supportRequestInputV1.email) &&
        Objects.equals(this.frequency, supportRequestInputV1.frequency) &&
        Objects.equals(this.name, supportRequestInputV1.name) &&
        Objects.equals(this.severity, supportRequestInputV1.severity) &&
        Objects.equals(this.stepsToReproduce, supportRequestInputV1.stepsToReproduce) &&
        Objects.equals(this.summary, supportRequestInputV1.summary);
  }

  @Override
  public int hashCode() {
    return Objects.hash(attachment, attachmentForJira, description, email, frequency, name, severity, stepsToReproduce, summary);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SupportRequestInputV1 {\n");
    
    sb.append("    attachment: ").append(toIndentedString(attachment)).append("\n");
    sb.append("    attachmentForJira: ").append(toIndentedString(attachmentForJira)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    frequency: ").append(toIndentedString(frequency)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    severity: ").append(toIndentedString(severity)).append("\n");
    sb.append("    stepsToReproduce: ").append(toIndentedString(stepsToReproduce)).append("\n");
    sb.append("    summary: ").append(toIndentedString(summary)).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