Struct aws_sdk_ecr::model::image_scan_finding::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ImageScanFinding.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name associated with the finding, usually a CVE number.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name associated with the finding, usually a CVE number.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the finding.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the finding.
sourcepub fn uri(self, input: impl Into<String>) -> Self
pub fn uri(self, input: impl Into<String>) -> Self
A link containing additional details about the security vulnerability.
sourcepub fn set_uri(self, input: Option<String>) -> Self
pub fn set_uri(self, input: Option<String>) -> Self
A link containing additional details about the security vulnerability.
sourcepub fn severity(self, input: FindingSeverity) -> Self
pub fn severity(self, input: FindingSeverity) -> Self
The finding severity.
sourcepub fn set_severity(self, input: Option<FindingSeverity>) -> Self
pub fn set_severity(self, input: Option<FindingSeverity>) -> Self
The finding severity.
sourcepub fn attributes(self, input: Attribute) -> Self
pub fn attributes(self, input: Attribute) -> Self
Appends an item to attributes.
To override the contents of this collection use set_attributes.
A collection of attributes of the host from which the finding is generated.
sourcepub fn set_attributes(self, input: Option<Vec<Attribute>>) -> Self
pub fn set_attributes(self, input: Option<Vec<Attribute>>) -> Self
A collection of attributes of the host from which the finding is generated.
sourcepub fn build(self) -> ImageScanFinding
pub fn build(self) -> ImageScanFinding
Consumes the builder and constructs a ImageScanFinding.