Struct aws_sdk_shield::types::builders::AttackSummaryBuilder
source · #[non_exhaustive]pub struct AttackSummaryBuilder { /* private fields */ }
Expand description
A builder for AttackSummary
.
Implementations§
source§impl AttackSummaryBuilder
impl AttackSummaryBuilder
sourcepub fn attack_id(self, input: impl Into<String>) -> Self
pub fn attack_id(self, input: impl Into<String>) -> Self
The unique identifier (ID) of the attack.
sourcepub fn set_attack_id(self, input: Option<String>) -> Self
pub fn set_attack_id(self, input: Option<String>) -> Self
The unique identifier (ID) of the attack.
sourcepub fn get_attack_id(&self) -> &Option<String>
pub fn get_attack_id(&self) -> &Option<String>
The unique identifier (ID) of the attack.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) of the resource that was attacked.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) of the resource that was attacked.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN (Amazon Resource Name) of the resource that was attacked.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start time of the attack, in Unix time in seconds.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start time of the attack, in Unix time in seconds.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The start time of the attack, in Unix time in seconds.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The end time of the attack, in Unix time in seconds.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end time of the attack, in Unix time in seconds.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The end time of the attack, in Unix time in seconds.
sourcepub fn attack_vectors(self, input: AttackVectorDescription) -> Self
pub fn attack_vectors(self, input: AttackVectorDescription) -> Self
Appends an item to attack_vectors
.
To override the contents of this collection use set_attack_vectors
.
The list of attacks for a specified time period.
sourcepub fn set_attack_vectors(
self,
input: Option<Vec<AttackVectorDescription>>,
) -> Self
pub fn set_attack_vectors( self, input: Option<Vec<AttackVectorDescription>>, ) -> Self
The list of attacks for a specified time period.
sourcepub fn get_attack_vectors(&self) -> &Option<Vec<AttackVectorDescription>>
pub fn get_attack_vectors(&self) -> &Option<Vec<AttackVectorDescription>>
The list of attacks for a specified time period.
sourcepub fn build(self) -> AttackSummary
pub fn build(self) -> AttackSummary
Consumes the builder and constructs a AttackSummary
.
Trait Implementations§
source§impl Clone for AttackSummaryBuilder
impl Clone for AttackSummaryBuilder
source§fn clone(&self) -> AttackSummaryBuilder
fn clone(&self) -> AttackSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttackSummaryBuilder
impl Debug for AttackSummaryBuilder
source§impl Default for AttackSummaryBuilder
impl Default for AttackSummaryBuilder
source§fn default() -> AttackSummaryBuilder
fn default() -> AttackSummaryBuilder
source§impl PartialEq for AttackSummaryBuilder
impl PartialEq for AttackSummaryBuilder
impl StructuralPartialEq for AttackSummaryBuilder
Auto Trait Implementations§
impl Freeze for AttackSummaryBuilder
impl RefUnwindSafe for AttackSummaryBuilder
impl Send for AttackSummaryBuilder
impl Sync for AttackSummaryBuilder
impl Unpin for AttackSummaryBuilder
impl UnwindSafe for AttackSummaryBuilder
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