com.google.api.services.osconfig.v1.model.VulnerabilityReportVulnerabilityItem Maven / Gradle / Ivy
The 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.osconfig.v1.model;
/**
* OS inventory item that is affected by a vulnerability or fixed as a result of a vulnerability.
*
* 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 OS Config 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 VulnerabilityReportVulnerabilityItem extends com.google.api.client.json.GenericJson {
/**
* Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the vulnerability report
* was not updated after the VM inventory update, these values might not display in VM inventory.
* If there is no available fix, the field is empty. The `inventory_item` value specifies the
* latest `SoftwarePackage` available to the VM that fixes the vulnerability.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String availableInventoryItemId;
/**
* The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for
* this vulnerability.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fixedCpeUri;
/**
* Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field displays the
* inventory items affected by this vulnerability. If the vulnerability report was not updated
* after the VM inventory update, these values might not display in VM inventory. For some
* operating systems, this field might be empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String installedInventoryItemId;
/**
* The upstream OS patch, packages or KB that fixes the vulnerability.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String upstreamFix;
/**
* Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the vulnerability report
* was not updated after the VM inventory update, these values might not display in VM inventory.
* If there is no available fix, the field is empty. The `inventory_item` value specifies the
* latest `SoftwarePackage` available to the VM that fixes the vulnerability.
* @return value or {@code null} for none
*/
public java.lang.String getAvailableInventoryItemId() {
return availableInventoryItemId;
}
/**
* Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the vulnerability report
* was not updated after the VM inventory update, these values might not display in VM inventory.
* If there is no available fix, the field is empty. The `inventory_item` value specifies the
* latest `SoftwarePackage` available to the VM that fixes the vulnerability.
* @param availableInventoryItemId availableInventoryItemId or {@code null} for none
*/
public VulnerabilityReportVulnerabilityItem setAvailableInventoryItemId(java.lang.String availableInventoryItemId) {
this.availableInventoryItemId = availableInventoryItemId;
return this;
}
/**
* The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for
* this vulnerability.
* @return value or {@code null} for none
*/
public java.lang.String getFixedCpeUri() {
return fixedCpeUri;
}
/**
* The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for
* this vulnerability.
* @param fixedCpeUri fixedCpeUri or {@code null} for none
*/
public VulnerabilityReportVulnerabilityItem setFixedCpeUri(java.lang.String fixedCpeUri) {
this.fixedCpeUri = fixedCpeUri;
return this;
}
/**
* Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field displays the
* inventory items affected by this vulnerability. If the vulnerability report was not updated
* after the VM inventory update, these values might not display in VM inventory. For some
* operating systems, this field might be empty.
* @return value or {@code null} for none
*/
public java.lang.String getInstalledInventoryItemId() {
return installedInventoryItemId;
}
/**
* Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field displays the
* inventory items affected by this vulnerability. If the vulnerability report was not updated
* after the VM inventory update, these values might not display in VM inventory. For some
* operating systems, this field might be empty.
* @param installedInventoryItemId installedInventoryItemId or {@code null} for none
*/
public VulnerabilityReportVulnerabilityItem setInstalledInventoryItemId(java.lang.String installedInventoryItemId) {
this.installedInventoryItemId = installedInventoryItemId;
return this;
}
/**
* The upstream OS patch, packages or KB that fixes the vulnerability.
* @return value or {@code null} for none
*/
public java.lang.String getUpstreamFix() {
return upstreamFix;
}
/**
* The upstream OS patch, packages or KB that fixes the vulnerability.
* @param upstreamFix upstreamFix or {@code null} for none
*/
public VulnerabilityReportVulnerabilityItem setUpstreamFix(java.lang.String upstreamFix) {
this.upstreamFix = upstreamFix;
return this;
}
@Override
public VulnerabilityReportVulnerabilityItem set(String fieldName, Object value) {
return (VulnerabilityReportVulnerabilityItem) super.set(fieldName, value);
}
@Override
public VulnerabilityReportVulnerabilityItem clone() {
return (VulnerabilityReportVulnerabilityItem) super.clone();
}
}