Struct aws_sdk_rbin::operation::list_rules::builders::ListRulesInputBuilder
source · #[non_exhaustive]pub struct ListRulesInputBuilder { /* private fields */ }
Expand description
A builder for ListRulesInput
.
Implementations§
source§impl ListRulesInputBuilder
impl ListRulesInputBuilder
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 resource_tags
.
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.
sourcepub fn build(self) -> Result<ListRulesInput, BuildError>
pub fn build(self) -> Result<ListRulesInput, BuildError>
Consumes the builder and constructs a ListRulesInput
.
source§impl ListRulesInputBuilder
impl ListRulesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListRulesOutput, SdkError<ListRulesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListRulesOutput, SdkError<ListRulesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListRulesInputBuilder
impl Clone for ListRulesInputBuilder
source§fn clone(&self) -> ListRulesInputBuilder
fn clone(&self) -> ListRulesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListRulesInputBuilder
impl Debug for ListRulesInputBuilder
source§impl Default for ListRulesInputBuilder
impl Default for ListRulesInputBuilder
source§fn default() -> ListRulesInputBuilder
fn default() -> ListRulesInputBuilder
source§impl PartialEq for ListRulesInputBuilder
impl PartialEq for ListRulesInputBuilder
source§fn eq(&self, other: &ListRulesInputBuilder) -> bool
fn eq(&self, other: &ListRulesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.