Struct aws_sdk_securityhub::types::builders::SoftwarePackageBuilder
source · #[non_exhaustive]pub struct SoftwarePackageBuilder { /* private fields */ }
Expand description
A builder for SoftwarePackage
.
Implementations§
source§impl SoftwarePackageBuilder
impl SoftwarePackageBuilder
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the software package.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the software package.
sourcepub fn set_release(self, input: Option<String>) -> Self
pub fn set_release(self, input: Option<String>) -> Self
The release of the software package.
sourcepub fn get_release(&self) -> &Option<String>
pub fn get_release(&self) -> &Option<String>
The release of the software package.
sourcepub fn architecture(self, input: impl Into<String>) -> Self
pub fn architecture(self, input: impl Into<String>) -> Self
The architecture used for the software package.
sourcepub fn set_architecture(self, input: Option<String>) -> Self
pub fn set_architecture(self, input: Option<String>) -> Self
The architecture used for the software package.
sourcepub fn get_architecture(&self) -> &Option<String>
pub fn get_architecture(&self) -> &Option<String>
The architecture used for the software package.
sourcepub fn package_manager(self, input: impl Into<String>) -> Self
pub fn package_manager(self, input: impl Into<String>) -> Self
The source of the package.
sourcepub fn set_package_manager(self, input: Option<String>) -> Self
pub fn set_package_manager(self, input: Option<String>) -> Self
The source of the package.
sourcepub fn get_package_manager(&self) -> &Option<String>
pub fn get_package_manager(&self) -> &Option<String>
The source of the package.
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
The file system path to the package manager inventory file.
sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
The file system path to the package manager inventory file.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The file system path to the package manager inventory file.
sourcepub fn fixed_in_version(self, input: impl Into<String>) -> Self
pub fn fixed_in_version(self, input: impl Into<String>) -> Self
The version of the software package in which the vulnerability has been resolved.
sourcepub fn set_fixed_in_version(self, input: Option<String>) -> Self
pub fn set_fixed_in_version(self, input: Option<String>) -> Self
The version of the software package in which the vulnerability has been resolved.
sourcepub fn get_fixed_in_version(&self) -> &Option<String>
pub fn get_fixed_in_version(&self) -> &Option<String>
The version of the software package in which the vulnerability has been resolved.
sourcepub fn remediation(self, input: impl Into<String>) -> Self
pub fn remediation(self, input: impl Into<String>) -> Self
Describes the actions a customer can take to resolve the vulnerability in the software package.
sourcepub fn set_remediation(self, input: Option<String>) -> Self
pub fn set_remediation(self, input: Option<String>) -> Self
Describes the actions a customer can take to resolve the vulnerability in the software package.
sourcepub fn get_remediation(&self) -> &Option<String>
pub fn get_remediation(&self) -> &Option<String>
Describes the actions a customer can take to resolve the vulnerability in the software package.
sourcepub fn source_layer_hash(self, input: impl Into<String>) -> Self
pub fn source_layer_hash(self, input: impl Into<String>) -> Self
The source layer hash of the vulnerable package.
sourcepub fn set_source_layer_hash(self, input: Option<String>) -> Self
pub fn set_source_layer_hash(self, input: Option<String>) -> Self
The source layer hash of the vulnerable package.
sourcepub fn get_source_layer_hash(&self) -> &Option<String>
pub fn get_source_layer_hash(&self) -> &Option<String>
The source layer hash of the vulnerable package.
sourcepub fn source_layer_arn(self, input: impl Into<String>) -> Self
pub fn source_layer_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the source layer.
sourcepub fn set_source_layer_arn(self, input: Option<String>) -> Self
pub fn set_source_layer_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the source layer.
sourcepub fn get_source_layer_arn(&self) -> &Option<String>
pub fn get_source_layer_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the source layer.
sourcepub fn build(self) -> SoftwarePackage
pub fn build(self) -> SoftwarePackage
Consumes the builder and constructs a SoftwarePackage
.
Trait Implementations§
source§impl Clone for SoftwarePackageBuilder
impl Clone for SoftwarePackageBuilder
source§fn clone(&self) -> SoftwarePackageBuilder
fn clone(&self) -> SoftwarePackageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SoftwarePackageBuilder
impl Debug for SoftwarePackageBuilder
source§impl Default for SoftwarePackageBuilder
impl Default for SoftwarePackageBuilder
source§fn default() -> SoftwarePackageBuilder
fn default() -> SoftwarePackageBuilder
source§impl PartialEq for SoftwarePackageBuilder
impl PartialEq for SoftwarePackageBuilder
source§fn eq(&self, other: &SoftwarePackageBuilder) -> bool
fn eq(&self, other: &SoftwarePackageBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.