Struct aws_sdk_kms::operation::list_retirable_grants::builders::ListRetirableGrantsInputBuilder
source · #[non_exhaustive]pub struct ListRetirableGrantsInputBuilder { /* private fields */ }
Expand description
A builder for ListRetirableGrantsInput
.
Implementations§
source§impl ListRetirableGrantsInputBuilder
impl ListRetirableGrantsInputBuilder
sourcepub fn limit(self, input: i32) -> Self
pub fn limit(self, input: i32) -> Self
Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.
This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.
sourcepub fn set_limit(self, input: Option<i32>) -> Self
pub fn set_limit(self, input: Option<i32>) -> Self
Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.
This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.
sourcepub fn get_limit(&self) -> &Option<i32>
pub fn get_limit(&self) -> &Option<i32>
Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.
This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.
sourcepub fn marker(self, input: impl Into<String>) -> Self
pub fn marker(self, input: impl Into<String>) -> Self
Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker
from the truncated response you just received.
sourcepub fn set_marker(self, input: Option<String>) -> Self
pub fn set_marker(self, input: Option<String>) -> Self
Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker
from the truncated response you just received.
sourcepub fn get_marker(&self) -> &Option<String>
pub fn get_marker(&self) -> &Option<String>
Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker
from the truncated response you just received.
sourcepub fn retiring_principal(self, input: impl Into<String>) -> Self
pub fn retiring_principal(self, input: impl Into<String>) -> Self
The retiring principal for which to list grants. Enter a principal in your Amazon Web Services account.
To specify the retiring principal, use the Amazon Resource Name (ARN) of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal, see IAM ARNs in the Identity and Access Management User Guide .
This field is required.sourcepub fn set_retiring_principal(self, input: Option<String>) -> Self
pub fn set_retiring_principal(self, input: Option<String>) -> Self
The retiring principal for which to list grants. Enter a principal in your Amazon Web Services account.
To specify the retiring principal, use the Amazon Resource Name (ARN) of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal, see IAM ARNs in the Identity and Access Management User Guide .
sourcepub fn get_retiring_principal(&self) -> &Option<String>
pub fn get_retiring_principal(&self) -> &Option<String>
The retiring principal for which to list grants. Enter a principal in your Amazon Web Services account.
To specify the retiring principal, use the Amazon Resource Name (ARN) of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal, see IAM ARNs in the Identity and Access Management User Guide .
sourcepub fn build(self) -> Result<ListRetirableGrantsInput, BuildError>
pub fn build(self) -> Result<ListRetirableGrantsInput, BuildError>
Consumes the builder and constructs a ListRetirableGrantsInput
.
source§impl ListRetirableGrantsInputBuilder
impl ListRetirableGrantsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListRetirableGrantsOutput, SdkError<ListRetirableGrantsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListRetirableGrantsOutput, SdkError<ListRetirableGrantsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListRetirableGrantsInputBuilder
impl Clone for ListRetirableGrantsInputBuilder
source§fn clone(&self) -> ListRetirableGrantsInputBuilder
fn clone(&self) -> ListRetirableGrantsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ListRetirableGrantsInputBuilder
impl Default for ListRetirableGrantsInputBuilder
source§fn default() -> ListRetirableGrantsInputBuilder
fn default() -> ListRetirableGrantsInputBuilder
source§impl PartialEq for ListRetirableGrantsInputBuilder
impl PartialEq for ListRetirableGrantsInputBuilder
source§fn eq(&self, other: &ListRetirableGrantsInputBuilder) -> bool
fn eq(&self, other: &ListRetirableGrantsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.