#[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 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 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<ListProtectionsOutputBuilder> for ListProtectionsOutputBuilder
impl PartialEq<ListProtectionsOutputBuilder> 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 ==.