Struct aws_sdk_ssm::types::builders::PatchComplianceDataBuilder
source · #[non_exhaustive]pub struct PatchComplianceDataBuilder { /* private fields */ }
Expand description
A builder for PatchComplianceData
.
Implementations§
source§impl PatchComplianceDataBuilder
impl PatchComplianceDataBuilder
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the patch.
This field is required.sourcepub fn kb_id(self, input: impl Into<String>) -> Self
pub fn kb_id(self, input: impl Into<String>) -> Self
The operating system-specific ID of the patch.
This field is required.sourcepub fn set_kb_id(self, input: Option<String>) -> Self
pub fn set_kb_id(self, input: Option<String>) -> Self
The operating system-specific ID of the patch.
sourcepub fn classification(self, input: impl Into<String>) -> Self
pub fn classification(self, input: impl Into<String>) -> Self
The classification of the patch, such as SecurityUpdates
, Updates
, and CriticalUpdates
.
sourcepub fn set_classification(self, input: Option<String>) -> Self
pub fn set_classification(self, input: Option<String>) -> Self
The classification of the patch, such as SecurityUpdates
, Updates
, and CriticalUpdates
.
sourcepub fn get_classification(&self) -> &Option<String>
pub fn get_classification(&self) -> &Option<String>
The classification of the patch, such as SecurityUpdates
, Updates
, and CriticalUpdates
.
sourcepub fn severity(self, input: impl Into<String>) -> Self
pub fn severity(self, input: impl Into<String>) -> Self
The severity of the patch such as Critical
, Important
, and Moderate
.
sourcepub fn set_severity(self, input: Option<String>) -> Self
pub fn set_severity(self, input: Option<String>) -> Self
The severity of the patch such as Critical
, Important
, and Moderate
.
sourcepub fn get_severity(&self) -> &Option<String>
pub fn get_severity(&self) -> &Option<String>
The severity of the patch such as Critical
, Important
, and Moderate
.
sourcepub fn state(self, input: PatchComplianceDataState) -> Self
pub fn state(self, input: PatchComplianceDataState) -> Self
The state of the patch on the managed node, such as INSTALLED or FAILED.
For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.
This field is required.sourcepub fn set_state(self, input: Option<PatchComplianceDataState>) -> Self
pub fn set_state(self, input: Option<PatchComplianceDataState>) -> Self
The state of the patch on the managed node, such as INSTALLED or FAILED.
For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.
sourcepub fn get_state(&self) -> &Option<PatchComplianceDataState>
pub fn get_state(&self) -> &Option<PatchComplianceDataState>
The state of the patch on the managed node, such as INSTALLED or FAILED.
For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.
sourcepub fn installed_time(self, input: DateTime) -> Self
pub fn installed_time(self, input: DateTime) -> Self
The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.
This field is required.sourcepub fn set_installed_time(self, input: Option<DateTime>) -> Self
pub fn set_installed_time(self, input: Option<DateTime>) -> Self
The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.
sourcepub fn get_installed_time(&self) -> &Option<DateTime>
pub fn get_installed_time(&self) -> &Option<DateTime>
The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.
sourcepub fn cve_ids(self, input: impl Into<String>) -> Self
pub fn cve_ids(self, input: impl Into<String>) -> Self
The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.
Currently, CVE ID values are reported only for patches with a status of Missing
or Failed
.
sourcepub fn set_cve_ids(self, input: Option<String>) -> Self
pub fn set_cve_ids(self, input: Option<String>) -> Self
The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.
Currently, CVE ID values are reported only for patches with a status of Missing
or Failed
.
sourcepub fn get_cve_ids(&self) -> &Option<String>
pub fn get_cve_ids(&self) -> &Option<String>
The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by the patch.
Currently, CVE ID values are reported only for patches with a status of Missing
or Failed
.
sourcepub fn build(self) -> Result<PatchComplianceData, BuildError>
pub fn build(self) -> Result<PatchComplianceData, BuildError>
Consumes the builder and constructs a PatchComplianceData
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PatchComplianceDataBuilder
impl Clone for PatchComplianceDataBuilder
source§fn clone(&self) -> PatchComplianceDataBuilder
fn clone(&self) -> PatchComplianceDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PatchComplianceDataBuilder
impl Debug for PatchComplianceDataBuilder
source§impl Default for PatchComplianceDataBuilder
impl Default for PatchComplianceDataBuilder
source§fn default() -> PatchComplianceDataBuilder
fn default() -> PatchComplianceDataBuilder
source§impl PartialEq for PatchComplianceDataBuilder
impl PartialEq for PatchComplianceDataBuilder
source§fn eq(&self, other: &PatchComplianceDataBuilder) -> bool
fn eq(&self, other: &PatchComplianceDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.