Class Patch
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Patch.Builder,Patch>
Represents metadata about a patch.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe Advisory ID of the patch.final Stringarch()The architecture of the patch.The Bugzilla ID of the patch.static Patch.Builderbuilder()final StringThe classification of the patch.final StringThe URL where more information can be obtained about the patch.cveIds()The Common Vulnerabilities and Exposures (CVE) ID of the patch.final StringThe description of the patch.final Integerepoch()The epoch of the patch.final booleanfinal booleanequalsBySdkFields(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 booleanFor responses, this returns true if the service returned a value for the AdvisoryIds property.final booleanFor responses, this returns true if the service returned a value for the BugzillaIds property.final booleanFor responses, this returns true if the service returned a value for the CVEIds property.final inthashCode()final Stringid()The ID of the patch.final StringkbNumber()The Microsoft Knowledge Base ID of the patch.final Stringlanguage()The language of the patch if it's language-specific.final StringThe ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to.final StringThe severity of the patch, such asCritical,Important, orModerate.final Stringname()The name of the patch.final Stringproduct()The specific product the patch is applicable for.final StringThe product family the patch is applicable for.final Stringrelease()The particular release of a patch.final InstantThe date the patch was released.final StringThe source patch repository for the operating system and version, such astrusty-securityfor Ubuntu Server 14.04 LTE andfocal-securityfor Ubuntu Server 20.04 LTE.static Class<? extends Patch.Builder> final Stringseverity()The severity level of the patch.final Stringtitle()The title of the patch.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Stringvendor()The name of the vendor providing the patch.final Stringversion()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
-
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,
WindowsorAmazon Linux 2.- Returns:
- The product family the patch is applicable for. For example,
WindowsorAmazon Linux 2.
-
product
The specific product the patch is applicable for. For example,
WindowsServer2016orAmazonLinux2018.03.- Returns:
- The specific product the patch is applicable for. For example,
WindowsServer2016orAmazonLinux2018.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,
CRITICALorMODERATE.- Returns:
- The severity level of the patch. For example,
CRITICALorMODERATE.
-
repository
The source patch repository for the operating system and version, such as
trusty-securityfor Ubuntu Server 14.04 LTE andfocal-securityfor 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-securityfor Ubuntu Server 14.04 LTE andfocal-securityfor Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Patch.Builder,Patch> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-