Struct aws_sdk_securityhub::types::builders::MalwareBuilder
source · #[non_exhaustive]pub struct MalwareBuilder { /* private fields */ }
Expand description
A builder for Malware
.
Implementations§
source§impl MalwareBuilder
impl MalwareBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 64.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 64.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 64.
sourcepub fn type(self, input: MalwareType) -> Self
pub fn type(self, input: MalwareType) -> Self
The type of the malware that was observed.
sourcepub fn set_type(self, input: Option<MalwareType>) -> Self
pub fn set_type(self, input: Option<MalwareType>) -> Self
The type of the malware that was observed.
sourcepub fn get_type(&self) -> &Option<MalwareType>
pub fn get_type(&self) -> &Option<MalwareType>
The type of the malware that was observed.
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The file system path of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 512.
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The file system path of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 512.
sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
The file system path of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 512.
sourcepub fn state(self, input: MalwareState) -> Self
pub fn state(self, input: MalwareState) -> Self
The state of the malware that was observed.
sourcepub fn set_state(self, input: Option<MalwareState>) -> Self
pub fn set_state(self, input: Option<MalwareState>) -> Self
The state of the malware that was observed.
sourcepub fn get_state(&self) -> &Option<MalwareState>
pub fn get_state(&self) -> &Option<MalwareState>
The state of the malware that was observed.
Trait Implementations§
source§impl Clone for MalwareBuilder
impl Clone for MalwareBuilder
source§fn clone(&self) -> MalwareBuilder
fn clone(&self) -> MalwareBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MalwareBuilder
impl Debug for MalwareBuilder
source§impl Default for MalwareBuilder
impl Default for MalwareBuilder
source§fn default() -> MalwareBuilder
fn default() -> MalwareBuilder
source§impl PartialEq for MalwareBuilder
impl PartialEq for MalwareBuilder
source§fn eq(&self, other: &MalwareBuilder) -> bool
fn eq(&self, other: &MalwareBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MalwareBuilder
Auto Trait Implementations§
impl Freeze for MalwareBuilder
impl RefUnwindSafe for MalwareBuilder
impl Send for MalwareBuilder
impl Sync for MalwareBuilder
impl Unpin for MalwareBuilder
impl UnwindSafe for MalwareBuilder
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> 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