Struct aws_sdk_securityhub::types::builders::ThreatBuilder
source · #[non_exhaustive]pub struct ThreatBuilder { /* private fields */ }
Expand description
A builder for Threat
.
Implementations§
source§impl ThreatBuilder
impl ThreatBuilder
sourcepub fn set_severity(self, input: Option<String>) -> Self
pub fn set_severity(self, input: Option<String>) -> Self
The severity of the threat.
sourcepub fn get_severity(&self) -> &Option<String>
pub fn get_severity(&self) -> &Option<String>
The severity of the threat.
sourcepub fn item_count(self, input: i32) -> Self
pub fn item_count(self, input: i32) -> Self
This total number of items in which the threat has been detected.
sourcepub fn set_item_count(self, input: Option<i32>) -> Self
pub fn set_item_count(self, input: Option<i32>) -> Self
This total number of items in which the threat has been detected.
sourcepub fn get_item_count(&self) -> &Option<i32>
pub fn get_item_count(&self) -> &Option<i32>
This total number of items in which the threat has been detected.
sourcepub fn file_paths(self, input: FilePaths) -> Self
pub fn file_paths(self, input: FilePaths) -> Self
Appends an item to file_paths
.
To override the contents of this collection use set_file_paths
.
Provides information about the file paths that were affected by the threat.
sourcepub fn set_file_paths(self, input: Option<Vec<FilePaths>>) -> Self
pub fn set_file_paths(self, input: Option<Vec<FilePaths>>) -> Self
Provides information about the file paths that were affected by the threat.
sourcepub fn get_file_paths(&self) -> &Option<Vec<FilePaths>>
pub fn get_file_paths(&self) -> &Option<Vec<FilePaths>>
Provides information about the file paths that were affected by the threat.
Trait Implementations§
source§impl Clone for ThreatBuilder
impl Clone for ThreatBuilder
source§fn clone(&self) -> ThreatBuilder
fn clone(&self) -> ThreatBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreatBuilder
impl Debug for ThreatBuilder
source§impl Default for ThreatBuilder
impl Default for ThreatBuilder
source§fn default() -> ThreatBuilder
fn default() -> ThreatBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ThreatBuilder
impl PartialEq for ThreatBuilder
source§fn eq(&self, other: &ThreatBuilder) -> bool
fn eq(&self, other: &ThreatBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ThreatBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ThreatBuilder
impl Send for ThreatBuilder
impl Sync for ThreatBuilder
impl Unpin for ThreatBuilder
impl UnwindSafe for ThreatBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.