Struct aws_sdk_shield::operation::describe_attack_statistics::builders::DescribeAttackStatisticsOutputBuilder
source · #[non_exhaustive]pub struct DescribeAttackStatisticsOutputBuilder { /* private fields */ }Expand description
A builder for DescribeAttackStatisticsOutput.
Implementations§
source§impl DescribeAttackStatisticsOutputBuilder
impl DescribeAttackStatisticsOutputBuilder
sourcepub fn time_range(self, input: TimeRange) -> Self
pub fn time_range(self, input: TimeRange) -> Self
The time range of the attack.
This field is required.sourcepub fn set_time_range(self, input: Option<TimeRange>) -> Self
pub fn set_time_range(self, input: Option<TimeRange>) -> Self
The time range of the attack.
sourcepub fn get_time_range(&self) -> &Option<TimeRange>
pub fn get_time_range(&self) -> &Option<TimeRange>
The time range of the attack.
sourcepub fn data_items(self, input: AttackStatisticsDataItem) -> Self
pub fn data_items(self, input: AttackStatisticsDataItem) -> Self
Appends an item to data_items.
To override the contents of this collection use set_data_items.
The data that describes the attacks detected during the time period.
sourcepub fn set_data_items(
self,
input: Option<Vec<AttackStatisticsDataItem>>
) -> Self
pub fn set_data_items( self, input: Option<Vec<AttackStatisticsDataItem>> ) -> Self
The data that describes the attacks detected during the time period.
sourcepub fn get_data_items(&self) -> &Option<Vec<AttackStatisticsDataItem>>
pub fn get_data_items(&self) -> &Option<Vec<AttackStatisticsDataItem>>
The data that describes the attacks detected during the time period.
sourcepub fn build(self) -> Result<DescribeAttackStatisticsOutput, BuildError>
pub fn build(self) -> Result<DescribeAttackStatisticsOutput, BuildError>
Consumes the builder and constructs a DescribeAttackStatisticsOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DescribeAttackStatisticsOutputBuilder
impl Clone for DescribeAttackStatisticsOutputBuilder
source§fn clone(&self) -> DescribeAttackStatisticsOutputBuilder
fn clone(&self) -> DescribeAttackStatisticsOutputBuilder
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 Default for DescribeAttackStatisticsOutputBuilder
impl Default for DescribeAttackStatisticsOutputBuilder
source§fn default() -> DescribeAttackStatisticsOutputBuilder
fn default() -> DescribeAttackStatisticsOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DescribeAttackStatisticsOutputBuilder
impl PartialEq for DescribeAttackStatisticsOutputBuilder
source§fn eq(&self, other: &DescribeAttackStatisticsOutputBuilder) -> bool
fn eq(&self, other: &DescribeAttackStatisticsOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DescribeAttackStatisticsOutputBuilder
Auto Trait Implementations§
impl Freeze for DescribeAttackStatisticsOutputBuilder
impl RefUnwindSafe for DescribeAttackStatisticsOutputBuilder
impl Send for DescribeAttackStatisticsOutputBuilder
impl Sync for DescribeAttackStatisticsOutputBuilder
impl Unpin for DescribeAttackStatisticsOutputBuilder
impl UnwindSafe for DescribeAttackStatisticsOutputBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.