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

com.finbourne.scheduler.model.Vulnerability Maven / Gradle / Ivy

There is a newer version: 0.0.944
Show newest version
/*
 * FINBOURNE Scheduler API
 * ### Introduction   # Error Codes   | Code|Name|Description | | ---|---|--- | | -1|Unknown error|An unexpected error was encountered on our side. | | 144|Duplicate In Parameter Set|  | | 151|Invalid Parameter Value|  | | 152|Action Execution Failure|  | | 157|Invalid Request|  | | 186|Access Denied|  | | 187|Invalid Identity Token|  | | 689|The supplied pagination token is invalid|  | | 692|This endpoint does not support impersonation|  | | 704|Cannot Delete Job|  | | 731|Unable to process images associated with request.|  | | 756|Image Scan Failure|  | | 871|The specified impersonated user does not exist|  | 
 *
 * The version of the OpenAPI document: 0.0.936
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.finbourne.scheduler.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Represents the details of an image vulnerability
 */
@ApiModel(description = "Represents the details of an image vulnerability")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Vulnerability {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_PACKAGE = "package";
  @SerializedName(SERIALIZED_NAME_PACKAGE)
  private String _package;

  public static final String SERIALIZED_NAME_VERSION = "version";
  @SerializedName(SERIALIZED_NAME_VERSION)
  private String version;

  public static final String SERIALIZED_NAME_FIX_VERSION = "fixVersion";
  @SerializedName(SERIALIZED_NAME_FIX_VERSION)
  private String fixVersion;

  public static final String SERIALIZED_NAME_SEVERITY = "severity";
  @SerializedName(SERIALIZED_NAME_SEVERITY)
  private String severity;

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_LINKS = "links";
  @SerializedName(SERIALIZED_NAME_LINKS)
  private List links = null;


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

   /**
   * The name of the vulnerability
   * @return name
  **/
  @ApiModelProperty(value = "The name of the vulnerability")
  public String getName() {
    return name;
  }

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


  public Vulnerability _package(String _package) {
    this._package = _package; 
    return this;
  }

   /**
   * The package that contains the vulnerability
   * @return _package
  **/
  @ApiModelProperty(value = "The package that contains the vulnerability")
  public String getPackage() {
    return _package;
  }

  public void setPackage(String _package) {
    this._package = _package;
  }


  public Vulnerability version(String version) {
    this.version = version; 
    return this;
  }

   /**
   * The version of the package
   * @return version
  **/
  @ApiModelProperty(value = "The version of the package")
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }


  public Vulnerability fixVersion(String fixVersion) {
    this.fixVersion = fixVersion; 
    return this;
  }

   /**
   * The version that has a fix for the vulnerability (if known)
   * @return fixVersion
  **/
  @ApiModelProperty(value = "The version that has a fix for the vulnerability (if known)")
  public String getFixVersion() {
    return fixVersion;
  }

  public void setFixVersion(String fixVersion) {
    this.fixVersion = fixVersion;
  }


  public Vulnerability severity(String severity) {
    this.severity = severity; 
    return this;
  }

   /**
   * The severity of the vulnerability
   * @return severity
  **/
  @ApiModelProperty(value = "The severity of the vulnerability")
  public String getSeverity() {
    return severity;
  }

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


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

   /**
   * The description of the vulnerability
   * @return description
  **/
  @ApiModelProperty(value = "The description of the vulnerability")
  public String getDescription() {
    return description;
  }

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


  public Vulnerability links(List links) {
    this.links = links; 
    return this;
  }

  public Vulnerability addLinksItem(String linksItem) {
   
    if (this.links == null) {
      this.links = new ArrayList<>();
    }
    this.links.add(linksItem);
    return this;
  }

   /**
   * Relevant links for the vulnerability
   * @return links
  **/
  @ApiModelProperty(value = "Relevant links for the vulnerability")
  public List getLinks() {
    return links;
  }

  public void setLinks(List links) {
    this.links = links;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    return true;
  }

  @Override
  public int hashCode() {
    return super.hashCode();  
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Vulnerability {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    _package: ").append(toIndentedString(_package)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    fixVersion: ").append(toIndentedString(fixVersion)).append("\n");
    sb.append("    severity: ").append(toIndentedString(severity)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    links: ").append(toIndentedString(links)).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    ");
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy