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 name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
sourcepub fn severity(self, input: impl Into<String>) -> Self
pub fn severity(self, input: impl Into<String>) -> Self
The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
sourcepub fn set_severity(self, input: Option<String>) -> Self
pub fn set_severity(self, input: Option<String>) -> Self
The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
sourcepub fn get_severity(&self) -> &Option<String>
pub fn get_severity(&self) -> &Option<String>
The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
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.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
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.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
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.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
Trait Implementations§
source§impl Clone for ThreatBuilder
impl Clone for ThreatBuilder
source§fn clone(&self) -> ThreatBuilder
fn clone(&self) -> ThreatBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for ThreatBuilder
impl PartialEq for ThreatBuilder
source§fn eq(&self, other: &ThreatBuilder) -> bool
fn eq(&self, other: &ThreatBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ThreatBuilder
Auto Trait Implementations§
impl Freeze for ThreatBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more