com.google.api.services.containeranalysis.v1.model.WindowsUpdate Maven / Gradle / Ivy
/*
* 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;
/**
* Windows Update represents the metadata about the update for the Windows operating system. The
* fields in this message come from the Windows Update API documented at
* https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate.
*
* 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 WindowsUpdate extends com.google.api.client.json.GenericJson {
/**
* The list of categories to which the update belongs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List categories;
static {
// hack to force ProGuard to consider Category 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(Category.class);
}
/**
* The localized description of the update.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Required - The unique identifier for the update.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Identity identity;
/**
* The Microsoft Knowledge Base article IDs that are associated with the update.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List kbArticleIds;
/**
* The last published timestamp of the update.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String lastPublishedTimestamp;
/**
* The hyperlink to the support information for the update.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String supportUrl;
/**
* The localized title of the update.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String title;
/**
* The list of categories to which the update belongs.
* @return value or {@code null} for none
*/
public java.util.List getCategories() {
return categories;
}
/**
* The list of categories to which the update belongs.
* @param categories categories or {@code null} for none
*/
public WindowsUpdate setCategories(java.util.List categories) {
this.categories = categories;
return this;
}
/**
* The localized description of the update.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* The localized description of the update.
* @param description description or {@code null} for none
*/
public WindowsUpdate setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Required - The unique identifier for the update.
* @return value or {@code null} for none
*/
public Identity getIdentity() {
return identity;
}
/**
* Required - The unique identifier for the update.
* @param identity identity or {@code null} for none
*/
public WindowsUpdate setIdentity(Identity identity) {
this.identity = identity;
return this;
}
/**
* The Microsoft Knowledge Base article IDs that are associated with the update.
* @return value or {@code null} for none
*/
public java.util.List getKbArticleIds() {
return kbArticleIds;
}
/**
* The Microsoft Knowledge Base article IDs that are associated with the update.
* @param kbArticleIds kbArticleIds or {@code null} for none
*/
public WindowsUpdate setKbArticleIds(java.util.List kbArticleIds) {
this.kbArticleIds = kbArticleIds;
return this;
}
/**
* The last published timestamp of the update.
* @return value or {@code null} for none
*/
public String getLastPublishedTimestamp() {
return lastPublishedTimestamp;
}
/**
* The last published timestamp of the update.
* @param lastPublishedTimestamp lastPublishedTimestamp or {@code null} for none
*/
public WindowsUpdate setLastPublishedTimestamp(String lastPublishedTimestamp) {
this.lastPublishedTimestamp = lastPublishedTimestamp;
return this;
}
/**
* The hyperlink to the support information for the update.
* @return value or {@code null} for none
*/
public java.lang.String getSupportUrl() {
return supportUrl;
}
/**
* The hyperlink to the support information for the update.
* @param supportUrl supportUrl or {@code null} for none
*/
public WindowsUpdate setSupportUrl(java.lang.String supportUrl) {
this.supportUrl = supportUrl;
return this;
}
/**
* The localized title of the update.
* @return value or {@code null} for none
*/
public java.lang.String getTitle() {
return title;
}
/**
* The localized title of the update.
* @param title title or {@code null} for none
*/
public WindowsUpdate setTitle(java.lang.String title) {
this.title = title;
return this;
}
@Override
public WindowsUpdate set(String fieldName, Object value) {
return (WindowsUpdate) super.set(fieldName, value);
}
@Override
public WindowsUpdate clone() {
return (WindowsUpdate) super.clone();
}
}