Struct aws_sdk_shield::types::builders::SubResourceSummaryBuilder
source · #[non_exhaustive]pub struct SubResourceSummaryBuilder { /* private fields */ }
Expand description
A builder for SubResourceSummary
.
Implementations§
source§impl SubResourceSummaryBuilder
impl SubResourceSummaryBuilder
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 get_type(&self) -> &Option<SubResourceType>
pub fn get_type(&self) -> &Option<SubResourceType>
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 get_attack_vectors(&self) -> &Option<Vec<SummarizedAttackVector>>
pub fn get_attack_vectors(&self) -> &Option<Vec<SummarizedAttackVector>>
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 get_counters(&self) -> &Option<Vec<SummarizedCounter>>
pub fn get_counters(&self) -> &Option<Vec<SummarizedCounter>>
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
.
Trait Implementations§
source§impl Clone for SubResourceSummaryBuilder
impl Clone for SubResourceSummaryBuilder
source§fn clone(&self) -> SubResourceSummaryBuilder
fn clone(&self) -> SubResourceSummaryBuilder
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 SubResourceSummaryBuilder
impl Debug for SubResourceSummaryBuilder
source§impl Default for SubResourceSummaryBuilder
impl Default for SubResourceSummaryBuilder
source§fn default() -> SubResourceSummaryBuilder
fn default() -> SubResourceSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SubResourceSummaryBuilder
impl PartialEq for SubResourceSummaryBuilder
source§fn eq(&self, other: &SubResourceSummaryBuilder) -> bool
fn eq(&self, other: &SubResourceSummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubResourceSummaryBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SubResourceSummaryBuilder
impl Send for SubResourceSummaryBuilder
impl Sync for SubResourceSummaryBuilder
impl Unpin for SubResourceSummaryBuilder
impl UnwindSafe for SubResourceSummaryBuilder
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>
Creates a shared type from an unshared type.