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

com.amazonaws.services.simplesystemsmanagement.model.Patch Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.
 */
package com.amazonaws.services.simplesystemsmanagement.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Represents metadata about a patch. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Patch implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the patch. Applies to Windows patches only. *

* *

* This ID isn't the same as the Microsoft Knowledge Base ID. *

*
*/ private String id; /** *

* The date the patch was released. *

*/ private java.util.Date releaseDate; /** *

* The title of the patch. *

*/ private String title; /** *

* The description of the patch. *

*/ private String description; /** *

* The URL where more information can be obtained about the patch. *

*/ private String contentUrl; /** *

* The name of the vendor providing the patch. *

*/ private String vendor; /** *

* The product family the patch is applicable for. For example, Windows or Amazon Linux 2. *

*/ private String productFamily; /** *

* The specific product the patch is applicable for. For example, WindowsServer2016 or * AmazonLinux2018.03. *

*/ private String product; /** *

* The classification of the patch. For example, SecurityUpdates, Updates, or * CriticalUpdates. *

*/ private String classification; /** *

* The severity of the patch, such as Critical, Important, or Moderate. * Applies to Windows patches only. *

*/ private String msrcSeverity; /** *

* The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only. *

*/ private String kbNumber; /** *

* The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, * MS14-045. Applies to Windows patches only. *

*/ private String msrcNumber; /** *

* The language of the patch if it's language-specific. *

*/ private String language; /** *

* The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes * only. *

*/ private com.amazonaws.internal.SdkInternalList advisoryIds; /** *

* The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only. *

*/ private com.amazonaws.internal.SdkInternalList bugzillaIds; /** *

* The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies * to Linux-based managed nodes only. *

*/ private com.amazonaws.internal.SdkInternalList cVEIds; /** *

* The name of the patch. Applies to Linux-based managed nodes only. *

*/ private String name; /** *

* The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is * 20180914-2. Applies to Linux-based managed nodes only. *

*/ private Integer epoch; /** *

* The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the version * number is indicated by -1. Applies to Linux-based managed nodes only. *

*/ private String version; /** *

* The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, the * release is 2.amaz1. Applies to Linux-based managed nodes only. *

*/ private String release; /** *

* The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the * architecture is indicated by x86_64. Applies to Linux-based managed nodes only. *

*/ private String arch; /** *

* The severity level of the patch. For example, CRITICAL or MODERATE. *

*/ private String severity; /** *

* The source patch repository for the operating system and version, such as trusty-security for Ubuntu * Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to Linux-based managed * nodes only. *

*/ private String repository; /** *

* The ID of the patch. Applies to Windows patches only. *

* *

* This ID isn't the same as the Microsoft Knowledge Base ID. *

*
* * @param id * The ID of the patch. Applies to Windows patches only.

*

* This ID isn't the same as the Microsoft Knowledge Base ID. *

*/ public void setId(String id) { this.id = id; } /** *

* The ID of the patch. Applies to Windows patches only. *

* *

* This ID isn't the same as the Microsoft Knowledge Base ID. *

*
* * @return The ID of the patch. Applies to Windows patches only.

*

* This ID isn't the same as the Microsoft Knowledge Base ID. *

*/ public String getId() { return this.id; } /** *

* The ID of the patch. Applies to Windows patches only. *

* *

* This ID isn't the same as the Microsoft Knowledge Base ID. *

*
* * @param id * The ID of the patch. Applies to Windows patches only.

*

* This ID isn't the same as the Microsoft Knowledge Base ID. *

* @return Returns a reference to this object so that method calls can be chained together. */ public Patch withId(String id) { setId(id); return this; } /** *

* The date the patch was released. *

* * @param releaseDate * The date the patch was released. */ public void setReleaseDate(java.util.Date releaseDate) { this.releaseDate = releaseDate; } /** *

* The date the patch was released. *

* * @return The date the patch was released. */ public java.util.Date getReleaseDate() { return this.releaseDate; } /** *

* The date the patch was released. *

* * @param releaseDate * The date the patch was released. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withReleaseDate(java.util.Date releaseDate) { setReleaseDate(releaseDate); return this; } /** *

* The title of the patch. *

* * @param title * The title of the patch. */ public void setTitle(String title) { this.title = title; } /** *

* The title of the patch. *

* * @return The title of the patch. */ public String getTitle() { return this.title; } /** *

* The title of the patch. *

* * @param title * The title of the patch. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withTitle(String title) { setTitle(title); return this; } /** *

* The description of the patch. *

* * @param description * The description of the patch. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the patch. *

* * @return The description of the patch. */ public String getDescription() { return this.description; } /** *

* The description of the patch. *

* * @param description * The description of the patch. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withDescription(String description) { setDescription(description); return this; } /** *

* The URL where more information can be obtained about the patch. *

* * @param contentUrl * The URL where more information can be obtained about the patch. */ public void setContentUrl(String contentUrl) { this.contentUrl = contentUrl; } /** *

* The URL where more information can be obtained about the patch. *

* * @return The URL where more information can be obtained about the patch. */ public String getContentUrl() { return this.contentUrl; } /** *

* The URL where more information can be obtained about the patch. *

* * @param contentUrl * The URL where more information can be obtained about the patch. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withContentUrl(String contentUrl) { setContentUrl(contentUrl); return this; } /** *

* The name of the vendor providing the patch. *

* * @param vendor * The name of the vendor providing the patch. */ public void setVendor(String vendor) { this.vendor = vendor; } /** *

* The name of the vendor providing the patch. *

* * @return The name of the vendor providing the patch. */ public String getVendor() { return this.vendor; } /** *

* The name of the vendor providing the patch. *

* * @param vendor * The name of the vendor providing the patch. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withVendor(String vendor) { setVendor(vendor); return this; } /** *

* The product family the patch is applicable for. For example, Windows or Amazon Linux 2. *

* * @param productFamily * The product family the patch is applicable for. For example, Windows or * Amazon Linux 2. */ public void setProductFamily(String productFamily) { this.productFamily = productFamily; } /** *

* The product family the patch is applicable for. For example, Windows or Amazon Linux 2. *

* * @return The product family the patch is applicable for. For example, Windows or * Amazon Linux 2. */ public String getProductFamily() { return this.productFamily; } /** *

* The product family the patch is applicable for. For example, Windows or Amazon Linux 2. *

* * @param productFamily * The product family the patch is applicable for. For example, Windows or * Amazon Linux 2. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withProductFamily(String productFamily) { setProductFamily(productFamily); return this; } /** *

* The specific product the patch is applicable for. For example, WindowsServer2016 or * AmazonLinux2018.03. *

* * @param product * The specific product the patch is applicable for. For example, WindowsServer2016 or * AmazonLinux2018.03. */ public void setProduct(String product) { this.product = product; } /** *

* The specific product the patch is applicable for. For example, WindowsServer2016 or * AmazonLinux2018.03. *

* * @return The specific product the patch is applicable for. For example, WindowsServer2016 or * AmazonLinux2018.03. */ public String getProduct() { return this.product; } /** *

* The specific product the patch is applicable for. For example, WindowsServer2016 or * AmazonLinux2018.03. *

* * @param product * The specific product the patch is applicable for. For example, WindowsServer2016 or * AmazonLinux2018.03. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withProduct(String product) { setProduct(product); return this; } /** *

* The classification of the patch. For example, SecurityUpdates, Updates, or * CriticalUpdates. *

* * @param classification * The classification of the patch. For example, SecurityUpdates, Updates, or * CriticalUpdates. */ public void setClassification(String classification) { this.classification = classification; } /** *

* The classification of the patch. For example, SecurityUpdates, Updates, or * CriticalUpdates. *

* * @return The classification of the patch. For example, SecurityUpdates, Updates, or * CriticalUpdates. */ public String getClassification() { return this.classification; } /** *

* The classification of the patch. For example, SecurityUpdates, Updates, or * CriticalUpdates. *

* * @param classification * The classification of the patch. For example, SecurityUpdates, Updates, or * CriticalUpdates. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withClassification(String classification) { setClassification(classification); return this; } /** *

* The severity of the patch, such as Critical, Important, or Moderate. * Applies to Windows patches only. *

* * @param msrcSeverity * The severity of the patch, such as Critical, Important, or Moderate * . Applies to Windows patches only. */ public void setMsrcSeverity(String msrcSeverity) { this.msrcSeverity = msrcSeverity; } /** *

* The severity of the patch, such as Critical, Important, or Moderate. * Applies to Windows patches only. *

* * @return The severity of the patch, such as Critical, Important, or * Moderate. Applies to Windows patches only. */ public String getMsrcSeverity() { return this.msrcSeverity; } /** *

* The severity of the patch, such as Critical, Important, or Moderate. * Applies to Windows patches only. *

* * @param msrcSeverity * The severity of the patch, such as Critical, Important, or Moderate * . Applies to Windows patches only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withMsrcSeverity(String msrcSeverity) { setMsrcSeverity(msrcSeverity); return this; } /** *

* The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only. *

* * @param kbNumber * The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only. */ public void setKbNumber(String kbNumber) { this.kbNumber = kbNumber; } /** *

* The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only. *

* * @return The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only. */ public String getKbNumber() { return this.kbNumber; } /** *

* The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only. *

* * @param kbNumber * The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withKbNumber(String kbNumber) { setKbNumber(kbNumber); return this; } /** *

* The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, * MS14-045. Applies to Windows patches only. *

* * @param msrcNumber * The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, * MS14-045. Applies to Windows patches only. */ public void setMsrcNumber(String msrcNumber) { this.msrcNumber = msrcNumber; } /** *

* The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, * MS14-045. Applies to Windows patches only. *

* * @return The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, * MS14-045. Applies to Windows patches only. */ public String getMsrcNumber() { return this.msrcNumber; } /** *

* The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, * MS14-045. Applies to Windows patches only. *

* * @param msrcNumber * The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example, * MS14-045. Applies to Windows patches only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withMsrcNumber(String msrcNumber) { setMsrcNumber(msrcNumber); return this; } /** *

* The language of the patch if it's language-specific. *

* * @param language * The language of the patch if it's language-specific. */ public void setLanguage(String language) { this.language = language; } /** *

* The language of the patch if it's language-specific. *

* * @return The language of the patch if it's language-specific. */ public String getLanguage() { return this.language; } /** *

* The language of the patch if it's language-specific. *

* * @param language * The language of the patch if it's language-specific. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withLanguage(String language) { setLanguage(language); return this; } /** *

* The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes * only. *

* * @return The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed * nodes only. */ public java.util.List getAdvisoryIds() { if (advisoryIds == null) { advisoryIds = new com.amazonaws.internal.SdkInternalList(); } return advisoryIds; } /** *

* The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes * only. *

* * @param advisoryIds * The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed * nodes only. */ public void setAdvisoryIds(java.util.Collection advisoryIds) { if (advisoryIds == null) { this.advisoryIds = null; return; } this.advisoryIds = new com.amazonaws.internal.SdkInternalList(advisoryIds); } /** *

* The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes * only. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdvisoryIds(java.util.Collection)} or {@link #withAdvisoryIds(java.util.Collection)} if you want to * override the existing values. *

* * @param advisoryIds * The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed * nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withAdvisoryIds(String... advisoryIds) { if (this.advisoryIds == null) { setAdvisoryIds(new com.amazonaws.internal.SdkInternalList(advisoryIds.length)); } for (String ele : advisoryIds) { this.advisoryIds.add(ele); } return this; } /** *

* The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes * only. *

* * @param advisoryIds * The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed * nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withAdvisoryIds(java.util.Collection advisoryIds) { setAdvisoryIds(advisoryIds); return this; } /** *

* The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only. *

* * @return The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes * only. */ public java.util.List getBugzillaIds() { if (bugzillaIds == null) { bugzillaIds = new com.amazonaws.internal.SdkInternalList(); } return bugzillaIds; } /** *

* The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only. *

* * @param bugzillaIds * The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes * only. */ public void setBugzillaIds(java.util.Collection bugzillaIds) { if (bugzillaIds == null) { this.bugzillaIds = null; return; } this.bugzillaIds = new com.amazonaws.internal.SdkInternalList(bugzillaIds); } /** *

* The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setBugzillaIds(java.util.Collection)} or {@link #withBugzillaIds(java.util.Collection)} if you want to * override the existing values. *

* * @param bugzillaIds * The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes * only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withBugzillaIds(String... bugzillaIds) { if (this.bugzillaIds == null) { setBugzillaIds(new com.amazonaws.internal.SdkInternalList(bugzillaIds.length)); } for (String ele : bugzillaIds) { this.bugzillaIds.add(ele); } return this; } /** *

* The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only. *

* * @param bugzillaIds * The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes * only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withBugzillaIds(java.util.Collection bugzillaIds) { setBugzillaIds(bugzillaIds); return this; } /** *

* The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies * to Linux-based managed nodes only. *

* * @return The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. * Applies to Linux-based managed nodes only. */ public java.util.List getCVEIds() { if (cVEIds == null) { cVEIds = new com.amazonaws.internal.SdkInternalList(); } return cVEIds; } /** *

* The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies * to Linux-based managed nodes only. *

* * @param cVEIds * The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. * Applies to Linux-based managed nodes only. */ public void setCVEIds(java.util.Collection cVEIds) { if (cVEIds == null) { this.cVEIds = null; return; } this.cVEIds = new com.amazonaws.internal.SdkInternalList(cVEIds); } /** *

* The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies * to Linux-based managed nodes only. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCVEIds(java.util.Collection)} or {@link #withCVEIds(java.util.Collection)} if you want to override the * existing values. *

* * @param cVEIds * The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. * Applies to Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withCVEIds(String... cVEIds) { if (this.cVEIds == null) { setCVEIds(new com.amazonaws.internal.SdkInternalList(cVEIds.length)); } for (String ele : cVEIds) { this.cVEIds.add(ele); } return this; } /** *

* The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies * to Linux-based managed nodes only. *

* * @param cVEIds * The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. * Applies to Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withCVEIds(java.util.Collection cVEIds) { setCVEIds(cVEIds); return this; } /** *

* The name of the patch. Applies to Linux-based managed nodes only. *

* * @param name * The name of the patch. Applies to Linux-based managed nodes only. */ public void setName(String name) { this.name = name; } /** *

* The name of the patch. Applies to Linux-based managed nodes only. *

* * @return The name of the patch. Applies to Linux-based managed nodes only. */ public String getName() { return this.name; } /** *

* The name of the patch. Applies to Linux-based managed nodes only. *

* * @param name * The name of the patch. Applies to Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withName(String name) { setName(name); return this; } /** *

* The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is * 20180914-2. Applies to Linux-based managed nodes only. *

* * @param epoch * The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch * value is 20180914-2. Applies to Linux-based managed nodes only. */ public void setEpoch(Integer epoch) { this.epoch = epoch; } /** *

* The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is * 20180914-2. Applies to Linux-based managed nodes only. *

* * @return The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch * value is 20180914-2. Applies to Linux-based managed nodes only. */ public Integer getEpoch() { return this.epoch; } /** *

* The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is * 20180914-2. Applies to Linux-based managed nodes only. *

* * @param epoch * The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch * value is 20180914-2. Applies to Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withEpoch(Integer epoch) { setEpoch(epoch); return this; } /** *

* The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the version * number is indicated by -1. Applies to Linux-based managed nodes only. *

* * @param version * The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the * version number is indicated by -1. Applies to Linux-based managed nodes only. */ public void setVersion(String version) { this.version = version; } /** *

* The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the version * number is indicated by -1. Applies to Linux-based managed nodes only. *

* * @return The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the * version number is indicated by -1. Applies to Linux-based managed nodes only. */ public String getVersion() { return this.version; } /** *

* The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the version * number is indicated by -1. Applies to Linux-based managed nodes only. *

* * @param version * The version number of the patch. For example, in example-pkg-1.710.10-2.7.abcd.x86_64, the * version number is indicated by -1. Applies to Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withVersion(String version) { setVersion(version); return this; } /** *

* The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, the * release is 2.amaz1. Applies to Linux-based managed nodes only. *

* * @param release * The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, * the release is 2.amaz1. Applies to Linux-based managed nodes only. */ public void setRelease(String release) { this.release = release; } /** *

* The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, the * release is 2.amaz1. Applies to Linux-based managed nodes only. *

* * @return The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, * the release is 2.amaz1. Applies to Linux-based managed nodes only. */ public String getRelease() { return this.release; } /** *

* The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, the * release is 2.amaz1. Applies to Linux-based managed nodes only. *

* * @param release * The particular release of a patch. For example, in pkg-example-EE-20180914-2.2.amzn1.noarch, * the release is 2.amaz1. Applies to Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withRelease(String release) { setRelease(release); return this; } /** *

* The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the * architecture is indicated by x86_64. Applies to Linux-based managed nodes only. *

* * @param arch * The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the * architecture is indicated by x86_64. Applies to Linux-based managed nodes only. */ public void setArch(String arch) { this.arch = arch; } /** *

* The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the * architecture is indicated by x86_64. Applies to Linux-based managed nodes only. *

* * @return The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the * architecture is indicated by x86_64. Applies to Linux-based managed nodes only. */ public String getArch() { return this.arch; } /** *

* The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the * architecture is indicated by x86_64. Applies to Linux-based managed nodes only. *

* * @param arch * The architecture of the patch. For example, in example-pkg-0.710.10-2.7.abcd.x86_64, the * architecture is indicated by x86_64. Applies to Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withArch(String arch) { setArch(arch); return this; } /** *

* The severity level of the patch. For example, CRITICAL or MODERATE. *

* * @param severity * The severity level of the patch. For example, CRITICAL or MODERATE. */ public void setSeverity(String severity) { this.severity = severity; } /** *

* The severity level of the patch. For example, CRITICAL or MODERATE. *

* * @return The severity level of the patch. For example, CRITICAL or MODERATE. */ public String getSeverity() { return this.severity; } /** *

* The severity level of the patch. For example, CRITICAL or MODERATE. *

* * @param severity * The severity level of the patch. For example, CRITICAL or MODERATE. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withSeverity(String severity) { setSeverity(severity); return this; } /** *

* The source patch repository for the operating system and version, such as trusty-security for Ubuntu * Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to Linux-based managed * nodes only. *

* * @param repository * The source patch repository for the operating system and version, such as trusty-security for * Ubuntu Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to * Linux-based managed nodes only. */ public void setRepository(String repository) { this.repository = repository; } /** *

* The source patch repository for the operating system and version, such as trusty-security for Ubuntu * Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to Linux-based managed * nodes only. *

* * @return The source patch repository for the operating system and version, such as trusty-security * for Ubuntu Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to * Linux-based managed nodes only. */ public String getRepository() { return this.repository; } /** *

* The source patch repository for the operating system and version, such as trusty-security for Ubuntu * Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to Linux-based managed * nodes only. *

* * @param repository * The source patch repository for the operating system and version, such as trusty-security for * Ubuntu Server 14.04 LTE and focal-security for Ubuntu Server 20.04 LTE. Applies to * Linux-based managed nodes only. * @return Returns a reference to this object so that method calls can be chained together. */ public Patch withRepository(String repository) { setRepository(repository); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getReleaseDate() != null) sb.append("ReleaseDate: ").append(getReleaseDate()).append(","); if (getTitle() != null) sb.append("Title: ").append(getTitle()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getContentUrl() != null) sb.append("ContentUrl: ").append(getContentUrl()).append(","); if (getVendor() != null) sb.append("Vendor: ").append(getVendor()).append(","); if (getProductFamily() != null) sb.append("ProductFamily: ").append(getProductFamily()).append(","); if (getProduct() != null) sb.append("Product: ").append(getProduct()).append(","); if (getClassification() != null) sb.append("Classification: ").append(getClassification()).append(","); if (getMsrcSeverity() != null) sb.append("MsrcSeverity: ").append(getMsrcSeverity()).append(","); if (getKbNumber() != null) sb.append("KbNumber: ").append(getKbNumber()).append(","); if (getMsrcNumber() != null) sb.append("MsrcNumber: ").append(getMsrcNumber()).append(","); if (getLanguage() != null) sb.append("Language: ").append(getLanguage()).append(","); if (getAdvisoryIds() != null) sb.append("AdvisoryIds: ").append(getAdvisoryIds()).append(","); if (getBugzillaIds() != null) sb.append("BugzillaIds: ").append(getBugzillaIds()).append(","); if (getCVEIds() != null) sb.append("CVEIds: ").append(getCVEIds()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getEpoch() != null) sb.append("Epoch: ").append(getEpoch()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getRelease() != null) sb.append("Release: ").append(getRelease()).append(","); if (getArch() != null) sb.append("Arch: ").append(getArch()).append(","); if (getSeverity() != null) sb.append("Severity: ").append(getSeverity()).append(","); if (getRepository() != null) sb.append("Repository: ").append(getRepository()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Patch == false) return false; Patch other = (Patch) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getReleaseDate() == null ^ this.getReleaseDate() == null) return false; if (other.getReleaseDate() != null && other.getReleaseDate().equals(this.getReleaseDate()) == false) return false; if (other.getTitle() == null ^ this.getTitle() == null) return false; if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getContentUrl() == null ^ this.getContentUrl() == null) return false; if (other.getContentUrl() != null && other.getContentUrl().equals(this.getContentUrl()) == false) return false; if (other.getVendor() == null ^ this.getVendor() == null) return false; if (other.getVendor() != null && other.getVendor().equals(this.getVendor()) == false) return false; if (other.getProductFamily() == null ^ this.getProductFamily() == null) return false; if (other.getProductFamily() != null && other.getProductFamily().equals(this.getProductFamily()) == false) return false; if (other.getProduct() == null ^ this.getProduct() == null) return false; if (other.getProduct() != null && other.getProduct().equals(this.getProduct()) == false) return false; if (other.getClassification() == null ^ this.getClassification() == null) return false; if (other.getClassification() != null && other.getClassification().equals(this.getClassification()) == false) return false; if (other.getMsrcSeverity() == null ^ this.getMsrcSeverity() == null) return false; if (other.getMsrcSeverity() != null && other.getMsrcSeverity().equals(this.getMsrcSeverity()) == false) return false; if (other.getKbNumber() == null ^ this.getKbNumber() == null) return false; if (other.getKbNumber() != null && other.getKbNumber().equals(this.getKbNumber()) == false) return false; if (other.getMsrcNumber() == null ^ this.getMsrcNumber() == null) return false; if (other.getMsrcNumber() != null && other.getMsrcNumber().equals(this.getMsrcNumber()) == false) return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) return false; if (other.getAdvisoryIds() == null ^ this.getAdvisoryIds() == null) return false; if (other.getAdvisoryIds() != null && other.getAdvisoryIds().equals(this.getAdvisoryIds()) == false) return false; if (other.getBugzillaIds() == null ^ this.getBugzillaIds() == null) return false; if (other.getBugzillaIds() != null && other.getBugzillaIds().equals(this.getBugzillaIds()) == false) return false; if (other.getCVEIds() == null ^ this.getCVEIds() == null) return false; if (other.getCVEIds() != null && other.getCVEIds().equals(this.getCVEIds()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getEpoch() == null ^ this.getEpoch() == null) return false; if (other.getEpoch() != null && other.getEpoch().equals(this.getEpoch()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getRelease() == null ^ this.getRelease() == null) return false; if (other.getRelease() != null && other.getRelease().equals(this.getRelease()) == false) return false; if (other.getArch() == null ^ this.getArch() == null) return false; if (other.getArch() != null && other.getArch().equals(this.getArch()) == false) return false; if (other.getSeverity() == null ^ this.getSeverity() == null) return false; if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == false) return false; if (other.getRepository() == null ^ this.getRepository() == null) return false; if (other.getRepository() != null && other.getRepository().equals(this.getRepository()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getReleaseDate() == null) ? 0 : getReleaseDate().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getContentUrl() == null) ? 0 : getContentUrl().hashCode()); hashCode = prime * hashCode + ((getVendor() == null) ? 0 : getVendor().hashCode()); hashCode = prime * hashCode + ((getProductFamily() == null) ? 0 : getProductFamily().hashCode()); hashCode = prime * hashCode + ((getProduct() == null) ? 0 : getProduct().hashCode()); hashCode = prime * hashCode + ((getClassification() == null) ? 0 : getClassification().hashCode()); hashCode = prime * hashCode + ((getMsrcSeverity() == null) ? 0 : getMsrcSeverity().hashCode()); hashCode = prime * hashCode + ((getKbNumber() == null) ? 0 : getKbNumber().hashCode()); hashCode = prime * hashCode + ((getMsrcNumber() == null) ? 0 : getMsrcNumber().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getAdvisoryIds() == null) ? 0 : getAdvisoryIds().hashCode()); hashCode = prime * hashCode + ((getBugzillaIds() == null) ? 0 : getBugzillaIds().hashCode()); hashCode = prime * hashCode + ((getCVEIds() == null) ? 0 : getCVEIds().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getEpoch() == null) ? 0 : getEpoch().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getRelease() == null) ? 0 : getRelease().hashCode()); hashCode = prime * hashCode + ((getArch() == null) ? 0 : getArch().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getRepository() == null) ? 0 : getRepository().hashCode()); return hashCode; } @Override public Patch clone() { try { return (Patch) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.simplesystemsmanagement.model.transform.PatchMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy