@Generated(value="software.amazon.awssdk:codegen") public final class Patch extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Patch.Builder,Patch>
Represents metadata about a patch.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Patch.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
advisoryIds()
The Advisory ID of the patch.
|
String |
arch()
The architecture of the patch.
|
List<String> |
bugzillaIds()
The Bugzilla ID of the patch.
|
static Patch.Builder |
builder() |
String |
classification()
The classification of the patch.
|
String |
contentUrl()
The URL where more information can be obtained about the patch.
|
List<String> |
cveIds()
The Common Vulnerabilities and Exposures (CVE) ID of the patch.
|
String |
description()
The description of the patch.
|
Integer |
epoch()
The epoch of the patch.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAdvisoryIds()
For responses, this returns true if the service returned a value for the AdvisoryIds property.
|
boolean |
hasBugzillaIds()
For responses, this returns true if the service returned a value for the BugzillaIds property.
|
boolean |
hasCveIds()
For responses, this returns true if the service returned a value for the CVEIds property.
|
int |
hashCode() |
String |
id()
The ID of the patch.
|
String |
kbNumber()
The Microsoft Knowledge Base ID of the patch.
|
String |
language()
The language of the patch if it's language-specific.
|
String |
msrcNumber()
The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to.
|
String |
msrcSeverity()
The severity of the patch, such as
Critical, Important, or Moderate. |
String |
name()
The name of the patch.
|
String |
product()
The specific product the patch is applicable for.
|
String |
productFamily()
The product family the patch is applicable for.
|
String |
release()
The particular release of a patch.
|
Instant |
releaseDate()
The date the patch was released.
|
String |
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. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Patch.Builder> |
serializableBuilderClass() |
String |
severity()
The severity level of the patch.
|
String |
title()
The title of the patch.
|
Patch.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vendor()
The name of the vendor providing the patch.
|
String |
version()
The version number of the patch.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID of the patch. Applies to Windows patches only.
This ID isn't the same as the Microsoft Knowledge Base ID.
This ID isn't the same as the Microsoft Knowledge Base ID.
public final Instant releaseDate()
The date the patch was released.
public final String title()
The title of the patch.
public final String description()
The description of the patch.
public final String contentUrl()
The URL where more information can be obtained about the patch.
public final String vendor()
The name of the vendor providing the patch.
public final String productFamily()
The product family the patch is applicable for. For example, Windows or Amazon Linux 2.
Windows or
Amazon Linux 2.public final String product()
The specific product the patch is applicable for. For example, WindowsServer2016 or
AmazonLinux2018.03.
WindowsServer2016 or
AmazonLinux2018.03.public final String classification()
The classification of the patch. For example, SecurityUpdates, Updates, or
CriticalUpdates.
SecurityUpdates, Updates, or
CriticalUpdates.public final String msrcSeverity()
The severity of the patch, such as Critical, Important, or Moderate.
Applies to Windows patches only.
Critical, Important, or
Moderate. Applies to Windows patches only.public final String kbNumber()
The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.
public final String 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.
MS14-045. Applies to Windows patches only.public final String language()
The language of the patch if it's language-specific.
public final boolean hasAdvisoryIds()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> advisoryIds()
The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to Linux-based managed nodes
only.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAdvisoryIds() method.
RHSA-2020:3779. Applies to Linux-based managed
nodes only.public final boolean hasBugzillaIds()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> bugzillaIds()
The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based managed nodes only.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBugzillaIds() method.
1600646. Applies to Linux-based managed nodes
only.public final boolean hasCveIds()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> cveIds()
The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192. Applies
to Linux-based managed nodes only.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCveIds() method.
CVE-2011-3192.
Applies to Linux-based managed nodes only.public final String name()
The name of the patch. Applies to Linux-based managed nodes only.
public final Integer 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.
pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch
value is 20180914-2. Applies to Linux-based managed nodes only.public final String 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.
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 final String 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.
pkg-example-EE-20180914-2.2.amzn1.noarch,
the release is 2.amaz1. Applies to Linux-based managed nodes only.public final String 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.
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 final String severity()
The severity level of the patch. For example, CRITICAL or MODERATE.
CRITICAL or MODERATE.public final String 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.
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 Patch.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Patch.Builder,Patch>public static Patch.Builder builder()
public static Class<? extends Patch.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.