
com.contrastsecurity.models.VulnerabilityTrend Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrast-sdk-java Show documentation
Show all versions of contrast-sdk-java Show documentation
Java SDK for using Contrast Security APIs
package com.contrastsecurity.models;
/*-
* #%L
* Contrast Java SDK
* %%
* Copyright (C) 2021 Contrast Security, Inc.
* %%
* Licensed 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.
* #L%
*/
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class VulnerabilityTrend {
// Inner Class for Trend Step
public class TrendStep {
// Inner Inner for status name value pairs
public class StatusBreakdown {
public String getName() {
return this.name;
}
@SerializedName("name")
private String name;
public int getValue() {
return this.value;
}
@SerializedName("value")
private int value = 0;
}
/**
* The count for the trend step
*
* @return the count for the trend step
*/
public int getCount() {
return this.count;
}
@SerializedName("count")
private int count = 0;
/**
* The timestamp for the trend step
*
* @return the timestamp for the trend step
*/
public long getTimestamp() {
return this.timestamp;
}
@SerializedName("timestamp")
private long timestamp = 0;
/**
* The breakdown for the trend step
*
* @return the breakdown for the trend step
*/
public List getBreakdown() {
return this.statusBreakdown;
}
@SerializedName("statusBreakdown")
private List statusBreakdown;
}
/**
* Return the open vulnerability trends
*
* @return the open vulnerability trends
*/
public List getOpenTrend() {
return openSteps;
}
@SerializedName("open")
private List openSteps;
/**
* Return the closed vulnerability trends
*
* @return the closed vulnerability trends
*/
public List getClosedTrend() {
return closedSteps;
}
@SerializedName("closed")
private List closedSteps;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy