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.
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.
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.
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.
sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
The file system path of the malware that was observed.
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
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 MalwareBuilder
impl Debug for MalwareBuilder
source§impl Default for MalwareBuilder
impl Default for MalwareBuilder
source§fn default() -> MalwareBuilder
fn default() -> MalwareBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MalwareBuilder
impl PartialEq for MalwareBuilder
source§fn eq(&self, other: &MalwareBuilder) -> bool
fn eq(&self, other: &MalwareBuilder) -> bool
This method tests for
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
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.