Struct aws_sdk_shield::model::attack_summary::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AttackSummary
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 build(self) -> AttackSummary
pub fn build(self) -> AttackSummary
Consumes the builder and constructs a AttackSummary
.