pub struct Builder { /* private fields */ }
Expand description
A builder for ListAccessPoliciesInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: AccessPolicyType) -> Self
pub fn type(self, input: AccessPolicyType) -> Self
The type of access policy.
sourcepub fn set_type(self, input: Option<AccessPolicyType>) -> Self
pub fn set_type(self, input: Option<AccessPolicyType>) -> Self
The type of access policy.
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
Appends an item to resource
.
To override the contents of this collection use set_resource
.
Resource filters (can be collection or indexes) that policies can apply to.
sourcepub fn set_resource(self, input: Option<Vec<String>>) -> Self
pub fn set_resource(self, input: Option<Vec<String>>) -> Self
Resource filters (can be collection or indexes) that policies can apply to.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If your initial ListAccessPolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListAccessPolicies
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 ListAccessPolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListAccessPolicies
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 nextToken
to get the next page of results. The default is 20.
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 nextToken
to get the next page of results. The default is 20.
sourcepub fn build(self) -> Result<ListAccessPoliciesInput, BuildError>
pub fn build(self) -> Result<ListAccessPoliciesInput, BuildError>
Consumes the builder and constructs a ListAccessPoliciesInput
.