@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)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAdvisoryIds()
Returns true if the AdvisoryIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasBugzillaIds()
Returns true if the BugzillaIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasCveIds()
Returns true if the CVEIds property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
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.
|
copy
public final String id()
The ID of the patch. Applies to Windows patches only.
This ID is not the same as the Microsoft Knowledge Base ID.
This ID is not 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()
public final List<String> advisoryIds()
The Advisory ID of the patch. For example, RHSA-2020:3779
. Applies to Linux-based instances only.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAdvisoryIds()
to see if a value was sent in this field.
RHSA-2020:3779
. Applies to Linux-based instances
only.public final boolean hasBugzillaIds()
public final List<String> bugzillaIds()
The Bugzilla ID of the patch. For example, 1600646
. Applies to Linux-based instances only.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasBugzillaIds()
to see if a value was sent in this field.
1600646
. Applies to Linux-based instances only.public final boolean hasCveIds()
public final List<String> cveIds()
The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, CVE-2011-3192
. Applies
to Linux-based instances only.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCveIds()
to see if a value was sent in this field.
CVE-2011-3192
.
Applies to Linux-based instances only.public final String name()
The name of the patch. Applies to Linux-based instances 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 instances only.
pkg-example-EE-20180914-2.2.amzn1.noarch
, the epoch
value is 20180914-2
. Applies to Linux-based instances 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 instances only.
example-pkg-1.710.10-2.7.abcd.x86_64
, the
version number is indicated by -1
. Applies to Linux-based instances 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 instances only.
pkg-example-EE-20180914-2.2.amzn1.noarch
,
the release is 2.amaz1
. Applies to Linux-based instances 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 instances only.
example-pkg-0.710.10-2.7.abcd.x86_64
, the
architecture is indicated by x86_64
. Applies to Linux-based instances 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 instances
only.
trusty-security
for Ubuntu Server 14.04 LTE and focal-security
for Ubuntu Server 20.04 LTE. Applies to
Linux-based instances only.public Patch.Builder toBuilder()
ToCopyableBuilder
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)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.