Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.blackducksoftware.integration.hub.model.VulnerabilityWithRemediationView Maven / Gradle / Ivy
/**
* hub-model-common
*
* Copyright (C) 2017 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
*
*
*
* 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.blackducksoftware.integration.hub.model;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.joda.time.DateTime;
/**
* VulnerabilityWithRemediationView
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class VulnerabilityWithRemediationView {
@SerializedName("baseScore")
private Double baseScore = null;
@SerializedName("cweId")
private String cweId = null;
@SerializedName("description")
private String description = null;
@SerializedName("exploitabilitySubscore")
private Double exploitabilitySubscore = null;
@SerializedName("impactSubscore")
private Double impactSubscore = null;
@SerializedName("remediationActualAt")
private DateTime remediationActualAt = null;
@SerializedName("remediationCreatedAt")
private DateTime remediationCreatedAt = null;
/**
* Gets or Sets remediationStatus
*/
public enum RemediationStatusEnum {
@SerializedName("DUPLICATE")
DUPLICATE("DUPLICATE"),
@SerializedName("IGNORED")
IGNORED("IGNORED"),
@SerializedName("MITIGATED")
MITIGATED("MITIGATED"),
@SerializedName("NEEDS_REVIEW")
NEEDS_REVIEW("NEEDS_REVIEW"),
@SerializedName("NEW")
NEW("NEW"),
@SerializedName("PATCHED")
PATCHED("PATCHED"),
@SerializedName("REMEDIATION_COMPLETE")
REMEDIATION_COMPLETE("REMEDIATION_COMPLETE"),
@SerializedName("REMEDIATION_REQUIRED")
REMEDIATION_REQUIRED("REMEDIATION_REQUIRED");
private String value;
RemediationStatusEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("remediationStatus")
private RemediationStatusEnum remediationStatus = null;
@SerializedName("remediationTargetAt")
private DateTime remediationTargetAt = null;
@SerializedName("remediationUpdatedAt")
private DateTime remediationUpdatedAt = null;
/**
* Gets or Sets severity
*/
public enum SeverityEnum {
@SerializedName("LOW")
LOW("LOW"),
@SerializedName("MEDIUM")
MEDIUM("MEDIUM"),
@SerializedName("HIGH")
HIGH("HIGH");
private String value;
SeverityEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("severity")
private SeverityEnum severity = null;
/**
* Gets or Sets source
*/
public enum SourceEnum {
@SerializedName("NVD")
NVD("NVD"),
@SerializedName("VULNDB")
VULNDB("VULNDB");
private String value;
SourceEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("source")
private SourceEnum source = null;
@SerializedName("vulnerabilityName")
private String vulnerabilityName = null;
@SerializedName("vulnerabilityPublishedDate")
private DateTime vulnerabilityPublishedDate = null;
@SerializedName("vulnerabilityUpdatedDate")
private DateTime vulnerabilityUpdatedDate = null;
public VulnerabilityWithRemediationView baseScore(Double baseScore) {
this.baseScore = baseScore;
return this;
}
/**
* Get baseScore
* @return baseScore
**/
@ApiModelProperty(example = "null", required = true, value = "")
public Double getBaseScore() {
return baseScore;
}
public void setBaseScore(Double baseScore) {
this.baseScore = baseScore;
}
public VulnerabilityWithRemediationView cweId(String cweId) {
this.cweId = cweId;
return this;
}
/**
* Get cweId
* @return cweId
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getCweId() {
return cweId;
}
public void setCweId(String cweId) {
this.cweId = cweId;
}
public VulnerabilityWithRemediationView description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public VulnerabilityWithRemediationView exploitabilitySubscore(Double exploitabilitySubscore) {
this.exploitabilitySubscore = exploitabilitySubscore;
return this;
}
/**
* Get exploitabilitySubscore
* @return exploitabilitySubscore
**/
@ApiModelProperty(example = "null", required = true, value = "")
public Double getExploitabilitySubscore() {
return exploitabilitySubscore;
}
public void setExploitabilitySubscore(Double exploitabilitySubscore) {
this.exploitabilitySubscore = exploitabilitySubscore;
}
public VulnerabilityWithRemediationView impactSubscore(Double impactSubscore) {
this.impactSubscore = impactSubscore;
return this;
}
/**
* Get impactSubscore
* @return impactSubscore
**/
@ApiModelProperty(example = "null", required = true, value = "")
public Double getImpactSubscore() {
return impactSubscore;
}
public void setImpactSubscore(Double impactSubscore) {
this.impactSubscore = impactSubscore;
}
public VulnerabilityWithRemediationView remediationActualAt(DateTime remediationActualAt) {
this.remediationActualAt = remediationActualAt;
return this;
}
/**
* Get remediationActualAt
* @return remediationActualAt
**/
@ApiModelProperty(example = "null", required = true, value = "")
public DateTime getRemediationActualAt() {
return remediationActualAt;
}
public void setRemediationActualAt(DateTime remediationActualAt) {
this.remediationActualAt = remediationActualAt;
}
public VulnerabilityWithRemediationView remediationCreatedAt(DateTime remediationCreatedAt) {
this.remediationCreatedAt = remediationCreatedAt;
return this;
}
/**
* Get remediationCreatedAt
* @return remediationCreatedAt
**/
@ApiModelProperty(example = "null", required = true, value = "")
public DateTime getRemediationCreatedAt() {
return remediationCreatedAt;
}
public void setRemediationCreatedAt(DateTime remediationCreatedAt) {
this.remediationCreatedAt = remediationCreatedAt;
}
public VulnerabilityWithRemediationView remediationStatus(RemediationStatusEnum remediationStatus) {
this.remediationStatus = remediationStatus;
return this;
}
/**
* Get remediationStatus
* @return remediationStatus
**/
@ApiModelProperty(example = "null", required = true, value = "")
public RemediationStatusEnum getRemediationStatus() {
return remediationStatus;
}
public void setRemediationStatus(RemediationStatusEnum remediationStatus) {
this.remediationStatus = remediationStatus;
}
public VulnerabilityWithRemediationView remediationTargetAt(DateTime remediationTargetAt) {
this.remediationTargetAt = remediationTargetAt;
return this;
}
/**
* Get remediationTargetAt
* @return remediationTargetAt
**/
@ApiModelProperty(example = "null", required = true, value = "")
public DateTime getRemediationTargetAt() {
return remediationTargetAt;
}
public void setRemediationTargetAt(DateTime remediationTargetAt) {
this.remediationTargetAt = remediationTargetAt;
}
public VulnerabilityWithRemediationView remediationUpdatedAt(DateTime remediationUpdatedAt) {
this.remediationUpdatedAt = remediationUpdatedAt;
return this;
}
/**
* Get remediationUpdatedAt
* @return remediationUpdatedAt
**/
@ApiModelProperty(example = "null", required = true, value = "")
public DateTime getRemediationUpdatedAt() {
return remediationUpdatedAt;
}
public void setRemediationUpdatedAt(DateTime remediationUpdatedAt) {
this.remediationUpdatedAt = remediationUpdatedAt;
}
public VulnerabilityWithRemediationView severity(SeverityEnum severity) {
this.severity = severity;
return this;
}
/**
* Get severity
* @return severity
**/
@ApiModelProperty(example = "null", required = true, value = "")
public SeverityEnum getSeverity() {
return severity;
}
public void setSeverity(SeverityEnum severity) {
this.severity = severity;
}
public VulnerabilityWithRemediationView source(SourceEnum source) {
this.source = source;
return this;
}
/**
* Get source
* @return source
**/
@ApiModelProperty(example = "null", required = true, value = "")
public SourceEnum getSource() {
return source;
}
public void setSource(SourceEnum source) {
this.source = source;
}
public VulnerabilityWithRemediationView vulnerabilityName(String vulnerabilityName) {
this.vulnerabilityName = vulnerabilityName;
return this;
}
/**
* Get vulnerabilityName
* @return vulnerabilityName
**/
@ApiModelProperty(example = "null", required = true, value = "")
public String getVulnerabilityName() {
return vulnerabilityName;
}
public void setVulnerabilityName(String vulnerabilityName) {
this.vulnerabilityName = vulnerabilityName;
}
public VulnerabilityWithRemediationView vulnerabilityPublishedDate(DateTime vulnerabilityPublishedDate) {
this.vulnerabilityPublishedDate = vulnerabilityPublishedDate;
return this;
}
/**
* Get vulnerabilityPublishedDate
* @return vulnerabilityPublishedDate
**/
@ApiModelProperty(example = "null", required = true, value = "")
public DateTime getVulnerabilityPublishedDate() {
return vulnerabilityPublishedDate;
}
public void setVulnerabilityPublishedDate(DateTime vulnerabilityPublishedDate) {
this.vulnerabilityPublishedDate = vulnerabilityPublishedDate;
}
public VulnerabilityWithRemediationView vulnerabilityUpdatedDate(DateTime vulnerabilityUpdatedDate) {
this.vulnerabilityUpdatedDate = vulnerabilityUpdatedDate;
return this;
}
/**
* Get vulnerabilityUpdatedDate
* @return vulnerabilityUpdatedDate
**/
@ApiModelProperty(example = "null", required = true, value = "")
public DateTime getVulnerabilityUpdatedDate() {
return vulnerabilityUpdatedDate;
}
public void setVulnerabilityUpdatedDate(DateTime vulnerabilityUpdatedDate) {
this.vulnerabilityUpdatedDate = vulnerabilityUpdatedDate;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VulnerabilityWithRemediationView vulnerabilityWithRemediationView = (VulnerabilityWithRemediationView) o;
return Objects.equals(this.baseScore, vulnerabilityWithRemediationView.baseScore) &&
Objects.equals(this.cweId, vulnerabilityWithRemediationView.cweId) &&
Objects.equals(this.description, vulnerabilityWithRemediationView.description) &&
Objects.equals(this.exploitabilitySubscore, vulnerabilityWithRemediationView.exploitabilitySubscore) &&
Objects.equals(this.impactSubscore, vulnerabilityWithRemediationView.impactSubscore) &&
Objects.equals(this.remediationActualAt, vulnerabilityWithRemediationView.remediationActualAt) &&
Objects.equals(this.remediationCreatedAt, vulnerabilityWithRemediationView.remediationCreatedAt) &&
Objects.equals(this.remediationStatus, vulnerabilityWithRemediationView.remediationStatus) &&
Objects.equals(this.remediationTargetAt, vulnerabilityWithRemediationView.remediationTargetAt) &&
Objects.equals(this.remediationUpdatedAt, vulnerabilityWithRemediationView.remediationUpdatedAt) &&
Objects.equals(this.severity, vulnerabilityWithRemediationView.severity) &&
Objects.equals(this.source, vulnerabilityWithRemediationView.source) &&
Objects.equals(this.vulnerabilityName, vulnerabilityWithRemediationView.vulnerabilityName) &&
Objects.equals(this.vulnerabilityPublishedDate, vulnerabilityWithRemediationView.vulnerabilityPublishedDate) &&
Objects.equals(this.vulnerabilityUpdatedDate, vulnerabilityWithRemediationView.vulnerabilityUpdatedDate);
}
@Override
public int hashCode() {
return Objects.hash(baseScore, cweId, description, exploitabilitySubscore, impactSubscore, remediationActualAt, remediationCreatedAt, remediationStatus, remediationTargetAt, remediationUpdatedAt, severity, source, vulnerabilityName, vulnerabilityPublishedDate, vulnerabilityUpdatedDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VulnerabilityWithRemediationView {\n");
sb.append(" baseScore: ").append(toIndentedString(baseScore)).append("\n");
sb.append(" cweId: ").append(toIndentedString(cweId)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" exploitabilitySubscore: ").append(toIndentedString(exploitabilitySubscore)).append("\n");
sb.append(" impactSubscore: ").append(toIndentedString(impactSubscore)).append("\n");
sb.append(" remediationActualAt: ").append(toIndentedString(remediationActualAt)).append("\n");
sb.append(" remediationCreatedAt: ").append(toIndentedString(remediationCreatedAt)).append("\n");
sb.append(" remediationStatus: ").append(toIndentedString(remediationStatus)).append("\n");
sb.append(" remediationTargetAt: ").append(toIndentedString(remediationTargetAt)).append("\n");
sb.append(" remediationUpdatedAt: ").append(toIndentedString(remediationUpdatedAt)).append("\n");
sb.append(" severity: ").append(toIndentedString(severity)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" vulnerabilityName: ").append(toIndentedString(vulnerabilityName)).append("\n");
sb.append(" vulnerabilityPublishedDate: ").append(toIndentedString(vulnerabilityPublishedDate)).append("\n");
sb.append(" vulnerabilityUpdatedDate: ").append(toIndentedString(vulnerabilityUpdatedDate)).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 ");
}
}