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
source§fn eq(&self, other: &AttackSummaryBuilder) -> bool
fn eq(&self, other: &AttackSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.