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

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

There is a newer version: 3.4.2
Show newest version
/*
 * Copyright (c) 2014, Contrast Security, LLC.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification, are
 * permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of
 * conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice, this list of
 * conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 *
 * Neither the name of the Contrast Security, LLC. nor the names of its contributors may
 * be used to endorse or promote products derived from this software without specific
 * prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package com.contrastsecurity.models;

import com.google.gson.annotations.SerializedName;

public class Application {

    /**
     * The ID of this application, which is a long, alphanumeric token.
     *
     * @return the ID of this application
     */
    public String getId() {
        return this.id;
    }

    @SerializedName("app_id")
    private String id = null;

    /**
     * Return the archived status of the application
     *
     * @return the application is archived
     */
    public boolean getArchived() {
        return this.archived;
    }

    private boolean archived = false;

    /**
     * Return the importance of the application
     *
     * @return application importance
     */
    public int getImportance() {
        return this.importance;
    }

    private int importance = 0;

    /**
     * Return the defend status of the application
     *
     * @return the application has rasp enabled
     */
    public boolean getDefend() {
        return this.defend;
    }

    private boolean defend = false;

    /**
     * Return the creation date of the application
     *
     * @return long date of when the application was created
     */

    public long getCreated() {
        return this.created;
    }

    private long created = 0;

    /**
     * Return the status of the application
     *
     * @return status of the application
     */
    public String getStatus() {
        return this.status;
    }

    private String status = null;

    /**
     * Return the paid license level of the application.
     *
     * @return the license level of the applied; one of Enterprise, Business, Pro, Trial
     */
    public License getLicense() {
        return this.license;
    }

    private License license = null;

    /**
     * Return the path of the web application, e.g., /AcmeApp
     *
     * @return the base path of the application, like /AcmeApp
     */
    public String getPath() {
        return this.path;
    }

    private String path = null;

    /**
     * Return the notes of the application
     *
     * @return applications notes
     */
    public String getNotes() {
        return this.notes;
    }

    private String notes = "";

    /**
     * Return the human-readable name of the web application. Note that this method will
     * return "ROOT" for apps that run at the root of the app when Contrast can't find
     * a human-readable representation.
     *
     * @return the human-readable name of the web application
     */
    public String getName() {
        return this.name;
    }

    private String name = null;

    /**
     * Return the language of the application, e.g., Java.
     *
     * @return the language the application is written in
     */
    public String getLanguage() {
        return language;
    }

    private String language;

    /**
     * Return the group name the application belongs to
     *
     * @return the application's group name
     */
    public String getGroupName() {
        return groupName;
    }

    @SerializedName("group_name")
    private String groupName = null;

    /**
     * Return the time the application was last monitored by Contrast.
     *
     * @return the epoch time when the last report was received for this application
     */
    public long getLastSeen() {
        return lastSeen;
    }

    @SerializedName("last_seen")
    private long lastSeen;

    /**
     * Return the modules under this application
     *
     * @return number of modules the application has
     */
    public Integer getModules() {
        return modules;
    }

    @SerializedName("total_modules")
    private Integer modules;

    /**
     * Return the master status of this application
     *
     * @return the application is a master application
     */
    public boolean getMaster() {
        return this.master;
    }

    private boolean master = false;

    /**
     * Return the scores of the application
     *
     * @return Scores
     */
    public Scores getScores() {
        return this.scores;
    }
    @SerializedName("scores")
    private Scores scores;

    /**
     * Return the trace breakdown of the application
     *
     * @return TraceBreakdown
     */
    public TraceBreakdown getTraceBreakdown() {
        return this.traceBreakdown;
    }
    @SerializedName("trace_breakdown")
    private TraceBreakdown traceBreakdown;

    /**
     * Total lines of code size in shorthand notation.
     *
     * @return Total LOC size shorthand
     */
    public String getSizeShorthand() {
        return this.sizeShorthand;
    }
    @SerializedName("size_shorthand")
    private String sizeShorthand = "";

    /**
     * Total lines of code size.
     *
     * @return Total LOC size
     */
    public long getSize() {
        return this.size;
    }
    private long size;

    /**
     * Total custom classes lines of code size in shorthand notation.
     *
     * @return Total custom classesLOC size shorthand
     */
    public String getCodeShorthand() {
        return this.codeShorthand;
    }
    @SerializedName("code_shorthand")
    private String codeShorthand = "";

    /**
     * Total custom classes lines of code size.
     *
     * @return Total custom classes LOC size
     */
    public long getCode() {
        return this.code;
    }
    private long code;

    /**
     * Application's override Url
     *
     * @return Application's override Url
     */
    public String getOverrideUrl() {
        return this.overrideUrl;
    }
    @SerializedName("override_url")
    private String overrideUrl = null;


    /**
     * Application's short name.
     *
     * @return Application's short name
     */
    public String getShortName() {
        return this.shortName;
    }
    @SerializedName("short_name")
    private String shortName = null;

    /**
     * Application's attack label.
     *
     * @return Application's attack label
     */
    public String getAttackLabel() {
        return this.attackLabel;
    }
    @SerializedName("attack_label")
    private String attackLabel = "";

    /**
     * Application's tags.
     *
     * @return Application's tags
     */
    public String[] getTags() {
        return this.tags;
    }
    @SerializedName("tags")
    private String[] tags;


    /**
     * Application metadata.
     *
     * @return Application's metadata
     */
    public MetadataEntity[] getMetadataEntities() {return  metadataEntities;}
    @SerializedName("metadataEntities")
    private MetadataEntity[] metadataEntities;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy