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

com.google.api.services.containeranalysis.v1.model.PackageIssue Maven / Gradle / Ivy

There is a newer version: v1-rev20240816-2.0.0
Show newest version
/*
 * 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.containeranalysis.v1.model;

/**
 * A detail for a distro and package this vulnerability occurrence was found in and its associated
 * fix (if one is available).
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Container Analysis API. For a detailed explanation * see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class PackageIssue extends com.google.api.client.json.GenericJson { /** * Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String affectedCpeUri; /** * Required. The package this vulnerability was found in. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String affectedPackage; /** * Required. The version of the package that is installed on the resource affected by this * vulnerability. * The value may be {@code null}. */ @com.google.api.client.util.Key private Version affectedVersion; /** * Output only. The distro or language system assigned severity for this vulnerability when that * is available and note provider assigned severity when it is not available. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String effectiveSeverity; /** * The location at which this package was found. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List fileLocation; static { // hack to force ProGuard to consider GrafeasV1FileLocation used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(GrafeasV1FileLocation.class); } /** * Output only. Whether a fix is available for this package. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean fixAvailable; /** * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is * possible for this to be different from the affected_cpe_uri. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String fixedCpeUri; /** * The package this vulnerability was fixed in. It is possible for this to be different from the * affected_package. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String fixedPackage; /** * Required. The version of the package this vulnerability was fixed in. Setting this to * VersionKind.MAXIMUM means no fix is yet available. * The value may be {@code null}. */ @com.google.api.client.util.Key private Version fixedVersion; /** * The type of package (e.g. OS, MAVEN, GO). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String packageType; /** * Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in. * @return value or {@code null} for none */ public java.lang.String getAffectedCpeUri() { return affectedCpeUri; } /** * Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in. * @param affectedCpeUri affectedCpeUri or {@code null} for none */ public PackageIssue setAffectedCpeUri(java.lang.String affectedCpeUri) { this.affectedCpeUri = affectedCpeUri; return this; } /** * Required. The package this vulnerability was found in. * @return value or {@code null} for none */ public java.lang.String getAffectedPackage() { return affectedPackage; } /** * Required. The package this vulnerability was found in. * @param affectedPackage affectedPackage or {@code null} for none */ public PackageIssue setAffectedPackage(java.lang.String affectedPackage) { this.affectedPackage = affectedPackage; return this; } /** * Required. The version of the package that is installed on the resource affected by this * vulnerability. * @return value or {@code null} for none */ public Version getAffectedVersion() { return affectedVersion; } /** * Required. The version of the package that is installed on the resource affected by this * vulnerability. * @param affectedVersion affectedVersion or {@code null} for none */ public PackageIssue setAffectedVersion(Version affectedVersion) { this.affectedVersion = affectedVersion; return this; } /** * Output only. The distro or language system assigned severity for this vulnerability when that * is available and note provider assigned severity when it is not available. * @return value or {@code null} for none */ public java.lang.String getEffectiveSeverity() { return effectiveSeverity; } /** * Output only. The distro or language system assigned severity for this vulnerability when that * is available and note provider assigned severity when it is not available. * @param effectiveSeverity effectiveSeverity or {@code null} for none */ public PackageIssue setEffectiveSeverity(java.lang.String effectiveSeverity) { this.effectiveSeverity = effectiveSeverity; return this; } /** * The location at which this package was found. * @return value or {@code null} for none */ public java.util.List getFileLocation() { return fileLocation; } /** * The location at which this package was found. * @param fileLocation fileLocation or {@code null} for none */ public PackageIssue setFileLocation(java.util.List fileLocation) { this.fileLocation = fileLocation; return this; } /** * Output only. Whether a fix is available for this package. * @return value or {@code null} for none */ public java.lang.Boolean getFixAvailable() { return fixAvailable; } /** * Output only. Whether a fix is available for this package. * @param fixAvailable fixAvailable or {@code null} for none */ public PackageIssue setFixAvailable(java.lang.Boolean fixAvailable) { this.fixAvailable = fixAvailable; return this; } /** * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is * possible for this to be different from the affected_cpe_uri. * @return value or {@code null} for none */ public java.lang.String getFixedCpeUri() { return fixedCpeUri; } /** * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is * possible for this to be different from the affected_cpe_uri. * @param fixedCpeUri fixedCpeUri or {@code null} for none */ public PackageIssue setFixedCpeUri(java.lang.String fixedCpeUri) { this.fixedCpeUri = fixedCpeUri; return this; } /** * The package this vulnerability was fixed in. It is possible for this to be different from the * affected_package. * @return value or {@code null} for none */ public java.lang.String getFixedPackage() { return fixedPackage; } /** * The package this vulnerability was fixed in. It is possible for this to be different from the * affected_package. * @param fixedPackage fixedPackage or {@code null} for none */ public PackageIssue setFixedPackage(java.lang.String fixedPackage) { this.fixedPackage = fixedPackage; return this; } /** * Required. The version of the package this vulnerability was fixed in. Setting this to * VersionKind.MAXIMUM means no fix is yet available. * @return value or {@code null} for none */ public Version getFixedVersion() { return fixedVersion; } /** * Required. The version of the package this vulnerability was fixed in. Setting this to * VersionKind.MAXIMUM means no fix is yet available. * @param fixedVersion fixedVersion or {@code null} for none */ public PackageIssue setFixedVersion(Version fixedVersion) { this.fixedVersion = fixedVersion; return this; } /** * The type of package (e.g. OS, MAVEN, GO). * @return value or {@code null} for none */ public java.lang.String getPackageType() { return packageType; } /** * The type of package (e.g. OS, MAVEN, GO). * @param packageType packageType or {@code null} for none */ public PackageIssue setPackageType(java.lang.String packageType) { this.packageType = packageType; return this; } @Override public PackageIssue set(String fieldName, Object value) { return (PackageIssue) super.set(fieldName, value); } @Override public PackageIssue clone() { return (PackageIssue) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy