com.google.api.services.containeranalysis.v1.model.VulnerabilityAssessmentNote 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.containeranalysis.v1.model;
/**
* A single VulnerabilityAssessmentNote represents one particular product's vulnerability assessment
* for one CVE.
*
* 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 VulnerabilityAssessmentNote extends com.google.api.client.json.GenericJson {
/**
* Represents a vulnerability assessment for the product.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Assessment assessment;
/**
* Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String languageCode;
/**
* A detailed description of this Vex.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String longDescription;
/**
* The product affected by this vex.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Product product;
/**
* Publisher details of this Note.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Publisher publisher;
/**
* A one sentence description of this Vex.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String shortDescription;
/**
* The title of the note. E.g. `Vex-Debian-11.4`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String title;
/**
* Represents a vulnerability assessment for the product.
* @return value or {@code null} for none
*/
public Assessment getAssessment() {
return assessment;
}
/**
* Represents a vulnerability assessment for the product.
* @param assessment assessment or {@code null} for none
*/
public VulnerabilityAssessmentNote setAssessment(Assessment assessment) {
this.assessment = assessment;
return this;
}
/**
* Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646.
* @return value or {@code null} for none
*/
public java.lang.String getLanguageCode() {
return languageCode;
}
/**
* Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646.
* @param languageCode languageCode or {@code null} for none
*/
public VulnerabilityAssessmentNote setLanguageCode(java.lang.String languageCode) {
this.languageCode = languageCode;
return this;
}
/**
* A detailed description of this Vex.
* @return value or {@code null} for none
*/
public java.lang.String getLongDescription() {
return longDescription;
}
/**
* A detailed description of this Vex.
* @param longDescription longDescription or {@code null} for none
*/
public VulnerabilityAssessmentNote setLongDescription(java.lang.String longDescription) {
this.longDescription = longDescription;
return this;
}
/**
* The product affected by this vex.
* @return value or {@code null} for none
*/
public Product getProduct() {
return product;
}
/**
* The product affected by this vex.
* @param product product or {@code null} for none
*/
public VulnerabilityAssessmentNote setProduct(Product product) {
this.product = product;
return this;
}
/**
* Publisher details of this Note.
* @return value or {@code null} for none
*/
public Publisher getPublisher() {
return publisher;
}
/**
* Publisher details of this Note.
* @param publisher publisher or {@code null} for none
*/
public VulnerabilityAssessmentNote setPublisher(Publisher publisher) {
this.publisher = publisher;
return this;
}
/**
* A one sentence description of this Vex.
* @return value or {@code null} for none
*/
public java.lang.String getShortDescription() {
return shortDescription;
}
/**
* A one sentence description of this Vex.
* @param shortDescription shortDescription or {@code null} for none
*/
public VulnerabilityAssessmentNote setShortDescription(java.lang.String shortDescription) {
this.shortDescription = shortDescription;
return this;
}
/**
* The title of the note. E.g. `Vex-Debian-11.4`
* @return value or {@code null} for none
*/
public java.lang.String getTitle() {
return title;
}
/**
* The title of the note. E.g. `Vex-Debian-11.4`
* @param title title or {@code null} for none
*/
public VulnerabilityAssessmentNote setTitle(java.lang.String title) {
this.title = title;
return this;
}
@Override
public VulnerabilityAssessmentNote set(String fieldName, Object value) {
return (VulnerabilityAssessmentNote) super.set(fieldName, value);
}
@Override
public VulnerabilityAssessmentNote clone() {
return (VulnerabilityAssessmentNote) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy