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

com.contrastsecurity.models.VulnerabilityTrend Maven / Gradle / Ivy

There is a newer version: 3.4.2
Show newest version
package com.contrastsecurity.models;

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 - 2024 Weber Informatics LLC | Privacy Policy