#[non_exhaustive]pub struct ListResourcesInputBuilder { /* private fields */ }Expand description
A builder for ListResourcesInput.
Implementations§
source§impl ListResourcesInputBuilder
impl ListResourcesInputBuilder
sourcepub fn resource_owner(self, input: ResourceOwner) -> Self
pub fn resource_owner(self, input: ResourceOwner) -> Self
Specifies that you want to list only the resource shares that match the following:
-
SELF– resources that your account shares with other accounts -
OTHER-ACCOUNTS– resources that other accounts share with your account
sourcepub fn set_resource_owner(self, input: Option<ResourceOwner>) -> Self
pub fn set_resource_owner(self, input: Option<ResourceOwner>) -> Self
Specifies that you want to list only the resource shares that match the following:
-
SELF– resources that your account shares with other accounts -
OTHER-ACCOUNTS– resources that other accounts share with your account
sourcepub fn get_resource_owner(&self) -> &Option<ResourceOwner>
pub fn get_resource_owner(&self) -> &Option<ResourceOwner>
Specifies that you want to list only the resource shares that match the following:
-
SELF– resources that your account shares with other accounts -
OTHER-ACCOUNTS– resources that other accounts share with your account
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
Specifies that you want to list only the resource shares that are associated with the specified principal.
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
Specifies that you want to list only the resource shares that are associated with the specified principal.
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
Specifies that you want to list only the resource shares that are associated with the specified principal.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
Specifies that you want to list only the resource shares that include resources of the specified resource type.
For valid values, query the ListResourceTypes operation.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
Specifies that you want to list only the resource shares that include resources of the specified resource type.
For valid values, query the ListResourceTypes operation.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
Specifies that you want to list only the resource shares that include resources of the specified resource type.
For valid values, query the ListResourceTypes operation.
sourcepub fn resource_arns(self, input: impl Into<String>) -> Self
pub fn resource_arns(self, input: impl Into<String>) -> Self
Appends an item to resource_arns.
To override the contents of this collection use set_resource_arns.
Specifies that you want to list only the resource shares that include resources with the specified Amazon Resource Names (ARNs).
sourcepub fn set_resource_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_resource_arns(self, input: Option<Vec<String>>) -> Self
Specifies that you want to list only the resource shares that include resources with the specified Amazon Resource Names (ARNs).
sourcepub fn get_resource_arns(&self) -> &Option<Vec<String>>
pub fn get_resource_arns(&self) -> &Option<Vec<String>>
Specifies that you want to list only the resource shares that include resources with the specified Amazon Resource Names (ARNs).
Appends an item to resource_share_arns.
To override the contents of this collection use set_resource_share_arns.
Specifies that you want to list only resources in the resource shares identified by the specified Amazon Resource Names (ARNs).
Specifies that you want to list only resources in the resource shares identified by the specified Amazon Resource Names (ARNs).
Specifies that you want to list only resources in the resource shares identified by the specified Amazon Resource Names (ARNs).
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request 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
Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
sourcepub fn resource_region_scope(self, input: ResourceRegionScopeFilter) -> Self
pub fn resource_region_scope(self, input: ResourceRegionScopeFilter) -> Self
Specifies that you want the results to include only resources that have the specified scope.
-
ALL– the results include both global and regional resources or resource types. -
GLOBAL– the results include only global resources or resource types. -
REGIONAL– the results include only regional resources or resource types.
The default value is ALL.
sourcepub fn set_resource_region_scope(
self,
input: Option<ResourceRegionScopeFilter>
) -> Self
pub fn set_resource_region_scope( self, input: Option<ResourceRegionScopeFilter> ) -> Self
Specifies that you want the results to include only resources that have the specified scope.
-
ALL– the results include both global and regional resources or resource types. -
GLOBAL– the results include only global resources or resource types. -
REGIONAL– the results include only regional resources or resource types.
The default value is ALL.
sourcepub fn get_resource_region_scope(&self) -> &Option<ResourceRegionScopeFilter>
pub fn get_resource_region_scope(&self) -> &Option<ResourceRegionScopeFilter>
Specifies that you want the results to include only resources that have the specified scope.
-
ALL– the results include both global and regional resources or resource types. -
GLOBAL– the results include only global resources or resource types. -
REGIONAL– the results include only regional resources or resource types.
The default value is ALL.
sourcepub fn build(self) -> Result<ListResourcesInput, BuildError>
pub fn build(self) -> Result<ListResourcesInput, BuildError>
Consumes the builder and constructs a ListResourcesInput.
source§impl ListResourcesInputBuilder
impl ListResourcesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListResourcesOutput, SdkError<ListResourcesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListResourcesOutput, SdkError<ListResourcesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListResourcesInputBuilder
impl Clone for ListResourcesInputBuilder
source§fn clone(&self) -> ListResourcesInputBuilder
fn clone(&self) -> ListResourcesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListResourcesInputBuilder
impl Debug for ListResourcesInputBuilder
source§impl Default for ListResourcesInputBuilder
impl Default for ListResourcesInputBuilder
source§fn default() -> ListResourcesInputBuilder
fn default() -> ListResourcesInputBuilder
source§impl PartialEq for ListResourcesInputBuilder
impl PartialEq for ListResourcesInputBuilder
source§fn eq(&self, other: &ListResourcesInputBuilder) -> bool
fn eq(&self, other: &ListResourcesInputBuilder) -> bool
self and other values to be equal, and is used
by ==.