Class Patch
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Patch.Builder,
Patch>
Represents metadata about a patch.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe Advisory ID of the patch.final String
arch()
The architecture of the patch.The Bugzilla ID of the patch.static Patch.Builder
builder()
final String
The classification of the patch.final String
The URL where more information can be obtained about the patch.cveIds()
The Common Vulnerabilities and Exposures (CVE) ID of the patch.final String
The description of the patch.final Integer
epoch()
The epoch of the patch.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the AdvisoryIds property.final boolean
For responses, this returns true if the service returned a value for the BugzillaIds property.final boolean
For responses, this returns true if the service returned a value for the CVEIds property.final int
hashCode()
final String
id()
The ID of the patch.final String
kbNumber()
The Microsoft Knowledge Base ID of the patch.final String
language()
The language of the patch if it's language-specific.final String
The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to.final String
The severity of the patch, such asCritical
,Important
, orModerate
.final String
name()
The name of the patch.final String
product()
The specific product the patch is applicable for.final String
The product family the patch is applicable for.final String
release()
The particular release of a patch.final Instant
The date the patch was released.final String
The source patch repository for the operating system and version, such astrusty-security
for Ubuntu Server 14.04 LTE andfocal-security
for Ubuntu Server 20.04 LTE.static Class
<? extends Patch.Builder> final String
severity()
The severity level of the patch.final String
title()
The title of the patch.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
vendor()
The name of the vendor providing the patch.final String
version()
The version number of the patch.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID of the patch. Applies to Windows patches only.
This ID isn't the same as the Microsoft Knowledge Base ID.
- Returns:
- The ID of the patch. Applies to Windows patches only.
This ID isn't the same as the Microsoft Knowledge Base ID.
-
releaseDate
The date the patch was released.
- Returns:
- The date the patch was released.
-
title
The title of the patch.
- Returns:
- The title of the patch.
-
description
The description of the patch.
- Returns:
- The description of the patch.
-
contentUrl
The URL where more information can be obtained about the patch.
- Returns:
- The URL where more information can be obtained about the patch.
-
vendor
The name of the vendor providing the patch.
- Returns:
- The name of the vendor providing the patch.
-
productFamily
The product family the patch is applicable for. For example,
Windows
orAmazon Linux 2
.- Returns:
- The product family the patch is applicable for. For example,
Windows
orAmazon Linux 2
.
-
product
The specific product the patch is applicable for. For example,
WindowsServer2016
orAmazonLinux2018.03
.- Returns:
- The specific product the patch is applicable for. For example,
WindowsServer2016
orAmazonLinux2018.03
.
-
classification
The classification of the patch. For example,
SecurityUpdates
,Updates
, orCriticalUpdates
.- Returns:
- The classification of the patch. For example,
SecurityUpdates
,Updates
, orCriticalUpdates
.
-
msrcSeverity
The severity of the patch, such as
Critical
,Important
, orModerate
. Applies to Windows patches only.- Returns:
- The severity of the patch, such as
Critical
,Important
, orModerate
. Applies to Windows patches only.
-
kbNumber
The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.
- Returns:
- The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.
-
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.- Returns:
- The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. For example,
MS14-045
. Applies to Windows patches only.
-
language
The language of the patch if it's language-specific.
- Returns:
- The language of the patch if it's language-specific.
-
hasAdvisoryIds
public final boolean hasAdvisoryIds()For responses, this returns true if the service returned a value for the AdvisoryIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- The Advisory ID of the patch. For example,
RHSA-2020:3779
. Applies to Linux-based managed nodes only.
-
hasBugzillaIds
public final boolean hasBugzillaIds()For responses, this returns true if the service returned a value for the BugzillaIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- The Bugzilla ID of the patch. For example,
1600646
. Applies to Linux-based managed nodes only.
-
hasCveIds
public final boolean hasCveIds()For responses, this returns true if the service returned a value for the CVEIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example,
CVE-2011-3192
. Applies to Linux-based managed nodes only.
-
name
The name of the patch. Applies to Linux-based managed nodes only.
- Returns:
- The name of the patch. Applies to Linux-based managed nodes only.
-
epoch
The epoch of the patch. For example in
pkg-example-EE-20180914-2.2.amzn1.noarch
, the epoch value is20180914-2
. Applies to Linux-based managed nodes only.- Returns:
- The epoch of the patch. For example in
pkg-example-EE-20180914-2.2.amzn1.noarch
, the epoch value is20180914-2
. Applies to Linux-based managed nodes only.
-
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.- Returns:
- 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.
-
release
The particular release of a patch. For example, in
pkg-example-EE-20180914-2.2.amzn1.noarch
, the release is2.amaz1
. Applies to Linux-based managed nodes only.- Returns:
- The particular release of a patch. For example, in
pkg-example-EE-20180914-2.2.amzn1.noarch
, the release is2.amaz1
. Applies to Linux-based managed nodes only.
-
arch
The architecture of the patch. For example, in
example-pkg-0.710.10-2.7.abcd.x86_64
, the architecture is indicated byx86_64
. Applies to Linux-based managed nodes only.- Returns:
- The architecture of the patch. For example, in
example-pkg-0.710.10-2.7.abcd.x86_64
, the architecture is indicated byx86_64
. Applies to Linux-based managed nodes only.
-
severity
The severity level of the patch. For example,
CRITICAL
orMODERATE
.- Returns:
- The severity level of the patch. For example,
CRITICAL
orMODERATE
.
-
repository
The source patch repository for the operating system and version, such as
trusty-security
for Ubuntu Server 14.04 LTE andfocal-security
for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.- Returns:
- The source patch repository for the operating system and version, such as
trusty-security
for Ubuntu Server 14.04 LTE andfocal-security
for Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Patch.Builder,
Patch> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
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. -
getValueForField
-
sdkFields
-