#[non_exhaustive]pub struct ListProtectionsOutputBuilder { /* private fields */ }Expand description
A builder for ListProtectionsOutput.
Implementations§
source§impl ListProtectionsOutputBuilder
impl ListProtectionsOutputBuilder
sourcepub fn protections(self, input: Protection) -> Self
pub fn protections(self, input: Protection) -> Self
Appends an item to protections.
To override the contents of this collection use set_protections.
The array of enabled Protection objects.
sourcepub fn set_protections(self, input: Option<Vec<Protection>>) -> Self
pub fn set_protections(self, input: Option<Vec<Protection>>) -> Self
The array of enabled Protection objects.
sourcepub fn get_protections(&self) -> &Option<Vec<Protection>>
pub fn get_protections(&self) -> &Option<Vec<Protection>>
The array of enabled Protection objects.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.
sourcepub fn build(self) -> ListProtectionsOutput
pub fn build(self) -> ListProtectionsOutput
Consumes the builder and constructs a ListProtectionsOutput.
Trait Implementations§
source§impl Clone for ListProtectionsOutputBuilder
impl Clone for ListProtectionsOutputBuilder
source§fn clone(&self) -> ListProtectionsOutputBuilder
fn clone(&self) -> ListProtectionsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListProtectionsOutputBuilder
impl Debug for ListProtectionsOutputBuilder
source§impl Default for ListProtectionsOutputBuilder
impl Default for ListProtectionsOutputBuilder
source§fn default() -> ListProtectionsOutputBuilder
fn default() -> ListProtectionsOutputBuilder
source§impl PartialEq for ListProtectionsOutputBuilder
impl PartialEq for ListProtectionsOutputBuilder
source§fn eq(&self, other: &ListProtectionsOutputBuilder) -> bool
fn eq(&self, other: &ListProtectionsOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ListProtectionsOutputBuilder
Auto Trait Implementations§
impl Freeze for ListProtectionsOutputBuilder
impl RefUnwindSafe for ListProtectionsOutputBuilder
impl Send for ListProtectionsOutputBuilder
impl Sync for ListProtectionsOutputBuilder
impl Unpin for ListProtectionsOutputBuilder
impl UnwindSafe for ListProtectionsOutputBuilder
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
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>
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>
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 more