Struct aws_sdk_rbin::operation::list_rules::builders::ListRulesFluentBuilder
source · pub struct ListRulesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListRules
.
Lists the Recycle Bin retention rules in the Region.
Implementations§
source§impl ListRulesFluentBuilder
impl ListRulesFluentBuilder
sourcepub fn as_input(&self) -> &ListRulesInputBuilder
pub fn as_input(&self) -> &ListRulesInputBuilder
Access the ListRules as a reference.
sourcepub async fn send(
self
) -> Result<ListRulesOutput, SdkError<ListRulesError, HttpResponse>>
pub async fn send( self ) -> Result<ListRulesOutput, SdkError<ListRulesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ListRulesOutput, ListRulesError, Self>
pub fn customize( self ) -> CustomizableOperation<ListRulesOutput, ListRulesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListRulesPaginator
pub fn into_paginator(self) -> ListRulesPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token for the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token for the next page of results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token for the next page of results.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify EC2_IMAGE
.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify EC2_IMAGE
.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify EC2_IMAGE
.
Appends an item to ResourceTags
.
To override the contents of this collection use set_resource_tags
.
Information about the resource tags used to identify resources that are retained by the retention rule.
Information about the resource tags used to identify resources that are retained by the retention rule.
Information about the resource tags used to identify resources that are retained by the retention rule.
sourcepub fn lock_state(self, input: LockState) -> Self
pub fn lock_state(self, input: LockState) -> Self
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
sourcepub fn set_lock_state(self, input: Option<LockState>) -> Self
pub fn set_lock_state(self, input: Option<LockState>) -> Self
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
sourcepub fn get_lock_state(&self) -> &Option<LockState>
pub fn get_lock_state(&self) -> &Option<LockState>
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
Trait Implementations§
source§impl Clone for ListRulesFluentBuilder
impl Clone for ListRulesFluentBuilder
source§fn clone(&self) -> ListRulesFluentBuilder
fn clone(&self) -> ListRulesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more