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

com.synopsys.integration.jira.common.model.response.AvailableAppResponseModel Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
/**
 * int-jira-common
 *
 * Copyright (c) 2019 Synopsys, Inc.
 *
 * 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.
 */
package com.synopsys.integration.jira.common.model.response;

import java.util.List;
import java.util.Optional;

import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.synopsys.integration.jira.common.model.JiraResponse;

public class AvailableAppResponseModel extends JiraResponse {
    private JsonObject links;
    private String key;
    private String name;
    private JsonObject vendor;
    private JsonObject logo;
    private String version;
    private String license;
    private String summary;
    private String description;
    private JsonObject versionDetails;
    private String marketPlaceType;
    private Boolean usesLicensing;
    private JsonArray categories;
    private Double rating;
    private Long ratingCount;
    private Long reviewCount;
    private Long downloadCount;
    private Long installationCount;
    private Boolean installed;
    private Boolean installable;
    private Boolean preinstalled;
    private Boolean stable;
    private Boolean dataCenterCompatible;
    private Boolean statusDataCenterCompatible;
    private List requests;
    private String hamsProductKey;

    public AvailableAppResponseModel() {
    }

    public Optional getBinaryLink() {
        if (null != links) {
            JsonElement binaryLink = links.get("binary");
            if (null != binaryLink) {
                return Optional.ofNullable(binaryLink.getAsString());
            }
        }
        return Optional.empty();
    }

    public JsonObject getLinks() {
        return links;
    }

    public String getKey() {
        return key;
    }

    public String getName() {
        return name;
    }

    public JsonObject getVendor() {
        return vendor;
    }

    public JsonObject getLogo() {
        return logo;
    }

    public String getVersion() {
        return version;
    }

    public String getLicense() {
        return license;
    }

    public String getSummary() {
        return summary;
    }

    public String getDescription() {
        return description;
    }

    public JsonObject getVersionDetails() {
        return versionDetails;
    }

    public String getMarketPlaceType() {
        return marketPlaceType;
    }

    public Boolean getUsesLicensing() {
        return usesLicensing;
    }

    public JsonArray getCategories() {
        return categories;
    }

    public Double getRating() {
        return rating;
    }

    public Long getRatingCount() {
        return ratingCount;
    }

    public Long getReviewCount() {
        return reviewCount;
    }

    public Long getDownloadCount() {
        return downloadCount;
    }

    public Long getInstallationCount() {
        return installationCount;
    }

    public Boolean getInstalled() {
        return installed;
    }

    public Boolean getInstallable() {
        return installable;
    }

    public Boolean getPreinstalled() {
        return preinstalled;
    }

    public Boolean getStable() {
        return stable;
    }

    public Boolean getDataCenterCompatible() {
        return dataCenterCompatible;
    }

    public Boolean getStatusDataCenterCompatible() {
        return statusDataCenterCompatible;
    }

    public List getRequests() {
        return requests;
    }

    public String getHamsProductKey() {
        return hamsProductKey;
    }
}