Struct aws_sdk_opensearchserverless::operation::list_lifecycle_policies::builders::ListLifecyclePoliciesInputBuilder
source · #[non_exhaustive]pub struct ListLifecyclePoliciesInputBuilder { /* private fields */ }
Expand description
A builder for ListLifecyclePoliciesInput
.
Implementations§
source§impl ListLifecyclePoliciesInputBuilder
impl ListLifecyclePoliciesInputBuilder
sourcepub fn type(self, input: LifecyclePolicyType) -> Self
pub fn type(self, input: LifecyclePolicyType) -> Self
The type of lifecycle policy.
This field is required.sourcepub fn set_type(self, input: Option<LifecyclePolicyType>) -> Self
pub fn set_type(self, input: Option<LifecyclePolicyType>) -> Self
The type of lifecycle policy.
sourcepub fn get_type(&self) -> &Option<LifecyclePolicyType>
pub fn get_type(&self) -> &Option<LifecyclePolicyType>
The type of lifecycle policy.
sourcepub fn resources(self, input: impl Into<String>) -> Self
pub fn resources(self, input: impl Into<String>) -> Self
Appends an item to resources
.
To override the contents of this collection use set_resources
.
Resource filters that policies can apply to. Currently, the only supported resource type is index
.
sourcepub fn set_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_resources(self, input: Option<Vec<String>>) -> Self
Resource filters that policies can apply to. Currently, the only supported resource type is index
.
sourcepub fn get_resources(&self) -> &Option<Vec<String>>
pub fn get_resources(&self) -> &Option<Vec<String>>
Resource filters that policies can apply to. Currently, the only supported resource type is index
.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If your initial ListLifecyclePolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListLifecyclePolicies
operations, which returns results in the next page.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If your initial ListLifecyclePolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListLifecyclePolicies
operations, which returns results in the next page.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
If your initial ListLifecyclePolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListLifecyclePolicies
operations, which returns results in the next page.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
An optional parameter that specifies the maximum number of results to return. You can use use nextToken
to get the next page of results. The default is 10.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
An optional parameter that specifies the maximum number of results to return. You can use use nextToken
to get the next page of results. The default is 10.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
An optional parameter that specifies the maximum number of results to return. You can use use nextToken
to get the next page of results. The default is 10.
sourcepub fn build(self) -> Result<ListLifecyclePoliciesInput, BuildError>
pub fn build(self) -> Result<ListLifecyclePoliciesInput, BuildError>
Consumes the builder and constructs a ListLifecyclePoliciesInput
.
source§impl ListLifecyclePoliciesInputBuilder
impl ListLifecyclePoliciesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListLifecyclePoliciesOutput, SdkError<ListLifecyclePoliciesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListLifecyclePoliciesOutput, SdkError<ListLifecyclePoliciesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListLifecyclePoliciesInputBuilder
impl Clone for ListLifecyclePoliciesInputBuilder
source§fn clone(&self) -> ListLifecyclePoliciesInputBuilder
fn clone(&self) -> ListLifecyclePoliciesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ListLifecyclePoliciesInputBuilder
impl Default for ListLifecyclePoliciesInputBuilder
source§fn default() -> ListLifecyclePoliciesInputBuilder
fn default() -> ListLifecyclePoliciesInputBuilder
source§impl PartialEq for ListLifecyclePoliciesInputBuilder
impl PartialEq for ListLifecyclePoliciesInputBuilder
source§fn eq(&self, other: &ListLifecyclePoliciesInputBuilder) -> bool
fn eq(&self, other: &ListLifecyclePoliciesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.