com.google.api.services.osconfig.v1.model.VulnerabilityReportVulnerability 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;
/**
* A vulnerability affecting the VM instance.
*
* 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 VulnerabilityReportVulnerability 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.util.List availableInventoryItemIds;
/**
* The timestamp for when the vulnerability was first detected.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Contains metadata as per the upstream feed of the operating system and NVD.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private VulnerabilityReportVulnerabilityDetails details;
/**
* 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
* distros, this field may be empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List installedInventoryItemIds;
/**
* List of items affected by the vulnerability.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List items;
/**
* The timestamp for when the vulnerability was last modified.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;
/**
* 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.util.List getAvailableInventoryItemIds() {
return availableInventoryItemIds;
}
/**
* 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 availableInventoryItemIds availableInventoryItemIds or {@code null} for none
*/
public VulnerabilityReportVulnerability setAvailableInventoryItemIds(java.util.List availableInventoryItemIds) {
this.availableInventoryItemIds = availableInventoryItemIds;
return this;
}
/**
* The timestamp for when the vulnerability was first detected.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* The timestamp for when the vulnerability was first detected.
* @param createTime createTime or {@code null} for none
*/
public VulnerabilityReportVulnerability setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Contains metadata as per the upstream feed of the operating system and NVD.
* @return value or {@code null} for none
*/
public VulnerabilityReportVulnerabilityDetails getDetails() {
return details;
}
/**
* Contains metadata as per the upstream feed of the operating system and NVD.
* @param details details or {@code null} for none
*/
public VulnerabilityReportVulnerability setDetails(VulnerabilityReportVulnerabilityDetails details) {
this.details = details;
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
* distros, this field may be empty.
* @return value or {@code null} for none
*/
public java.util.List getInstalledInventoryItemIds() {
return installedInventoryItemIds;
}
/**
* 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
* distros, this field may be empty.
* @param installedInventoryItemIds installedInventoryItemIds or {@code null} for none
*/
public VulnerabilityReportVulnerability setInstalledInventoryItemIds(java.util.List installedInventoryItemIds) {
this.installedInventoryItemIds = installedInventoryItemIds;
return this;
}
/**
* List of items affected by the vulnerability.
* @return value or {@code null} for none
*/
public java.util.List getItems() {
return items;
}
/**
* List of items affected by the vulnerability.
* @param items items or {@code null} for none
*/
public VulnerabilityReportVulnerability setItems(java.util.List items) {
this.items = items;
return this;
}
/**
* The timestamp for when the vulnerability was last modified.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}
/**
* The timestamp for when the vulnerability was last modified.
* @param updateTime updateTime or {@code null} for none
*/
public VulnerabilityReportVulnerability setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
@Override
public VulnerabilityReportVulnerability set(String fieldName, Object value) {
return (VulnerabilityReportVulnerability) super.set(fieldName, value);
}
@Override
public VulnerabilityReportVulnerability clone() {
return (VulnerabilityReportVulnerability) super.clone();
}
}