Struct aws_sdk_shield::model::sub_resource_summary::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SubResourceSummary
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: SubResourceType) -> Self
pub fn type(self, input: SubResourceType) -> Self
The SubResource
type.
sourcepub fn set_type(self, input: Option<SubResourceType>) -> Self
pub fn set_type(self, input: Option<SubResourceType>) -> Self
The SubResource
type.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier (ID) of the SubResource
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier (ID) of the SubResource
.
sourcepub fn attack_vectors(self, input: SummarizedAttackVector) -> Self
pub fn attack_vectors(self, input: SummarizedAttackVector) -> Self
Appends an item to attack_vectors
.
To override the contents of this collection use set_attack_vectors
.
The list of attack types and associated counters.
sourcepub fn set_attack_vectors(
self,
input: Option<Vec<SummarizedAttackVector>>
) -> Self
pub fn set_attack_vectors(
self,
input: Option<Vec<SummarizedAttackVector>>
) -> Self
The list of attack types and associated counters.
sourcepub fn counters(self, input: SummarizedCounter) -> Self
pub fn counters(self, input: SummarizedCounter) -> Self
Appends an item to counters
.
To override the contents of this collection use set_counters
.
The counters that describe the details of the attack.
sourcepub fn set_counters(self, input: Option<Vec<SummarizedCounter>>) -> Self
pub fn set_counters(self, input: Option<Vec<SummarizedCounter>>) -> Self
The counters that describe the details of the attack.
sourcepub fn build(self) -> SubResourceSummary
pub fn build(self) -> SubResourceSummary
Consumes the builder and constructs a SubResourceSummary
.