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

io.github.algomaster99.terminator.commons.cyclonedx.Reference Maven / Gradle / Ivy


package io.github.algomaster99.terminator.commons.cyclonedx;

import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "id",
    "source"
})
@Generated("jsonschema2pojo")
public class Reference {

    /**
     * ID
     * 

* An identifier that uniquely identifies the vulnerability. * (Required) * */ @JsonProperty("id") @JsonPropertyDescription("An identifier that uniquely identifies the vulnerability.") private String id; /** * Source *

* The source of vulnerability information. This is often the organization that published the vulnerability. * (Required) * */ @JsonProperty("source") @JsonPropertyDescription("The source of vulnerability information. This is often the organization that published the vulnerability.") private VulnerabilitySource source; /** * ID *

* An identifier that uniquely identifies the vulnerability. * (Required) * */ @JsonProperty("id") public String getId() { return id; } /** * ID *

* An identifier that uniquely identifies the vulnerability. * (Required) * */ @JsonProperty("id") public void setId(String id) { this.id = id; } /** * Source *

* The source of vulnerability information. This is often the organization that published the vulnerability. * (Required) * */ @JsonProperty("source") public VulnerabilitySource getSource() { return source; } /** * Source *

* The source of vulnerability information. This is often the organization that published the vulnerability. * (Required) * */ @JsonProperty("source") public void setSource(VulnerabilitySource source) { this.source = source; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(Reference.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("id"); sb.append('='); sb.append(((this.id == null)?"":this.id)); sb.append(','); sb.append("source"); sb.append('='); sb.append(((this.source == null)?"":this.source)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode())); result = ((result* 31)+((this.source == null)? 0 :this.source.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Reference) == false) { return false; } Reference rhs = ((Reference) other); return (((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id)))&&((this.source == rhs.source)||((this.source!= null)&&this.source.equals(rhs.source)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy