Struct aws_sdk_ram::operation::set_default_permission_version::builders::SetDefaultPermissionVersionInputBuilder
source · #[non_exhaustive]pub struct SetDefaultPermissionVersionInputBuilder { /* private fields */ }Expand description
A builder for SetDefaultPermissionVersionInput.
Implementations§
source§impl SetDefaultPermissionVersionInputBuilder
impl SetDefaultPermissionVersionInputBuilder
sourcepub fn permission_arn(self, input: impl Into<String>) -> Self
pub fn permission_arn(self, input: impl Into<String>) -> Self
Specifies the Amazon Resource Name (ARN) of the customer managed permission whose default version you want to change.
This field is required.sourcepub fn set_permission_arn(self, input: Option<String>) -> Self
pub fn set_permission_arn(self, input: Option<String>) -> Self
Specifies the Amazon Resource Name (ARN) of the customer managed permission whose default version you want to change.
sourcepub fn get_permission_arn(&self) -> &Option<String>
pub fn get_permission_arn(&self) -> &Option<String>
Specifies the Amazon Resource Name (ARN) of the customer managed permission whose default version you want to change.
sourcepub fn permission_version(self, input: i32) -> Self
pub fn permission_version(self, input: i32) -> Self
Specifies the version number that you want to designate as the default for customer managed permission. To see a list of all available version numbers, use ListPermissionVersions.
sourcepub fn set_permission_version(self, input: Option<i32>) -> Self
pub fn set_permission_version(self, input: Option<i32>) -> Self
Specifies the version number that you want to designate as the default for customer managed permission. To see a list of all available version numbers, use ListPermissionVersions.
sourcepub fn get_permission_version(&self) -> &Option<i32>
pub fn get_permission_version(&self) -> &Option<i32>
Specifies the version number that you want to designate as the default for customer managed permission. To see a list of all available version numbers, use ListPermissionVersions.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn build(self) -> Result<SetDefaultPermissionVersionInput, BuildError>
pub fn build(self) -> Result<SetDefaultPermissionVersionInput, BuildError>
Consumes the builder and constructs a SetDefaultPermissionVersionInput.
source§impl SetDefaultPermissionVersionInputBuilder
impl SetDefaultPermissionVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SetDefaultPermissionVersionOutput, SdkError<SetDefaultPermissionVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SetDefaultPermissionVersionOutput, SdkError<SetDefaultPermissionVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetDefaultPermissionVersionInputBuilder
impl Clone for SetDefaultPermissionVersionInputBuilder
source§fn clone(&self) -> SetDefaultPermissionVersionInputBuilder
fn clone(&self) -> SetDefaultPermissionVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SetDefaultPermissionVersionInputBuilder
impl Default for SetDefaultPermissionVersionInputBuilder
source§fn default() -> SetDefaultPermissionVersionInputBuilder
fn default() -> SetDefaultPermissionVersionInputBuilder
source§impl PartialEq for SetDefaultPermissionVersionInputBuilder
impl PartialEq for SetDefaultPermissionVersionInputBuilder
source§fn eq(&self, other: &SetDefaultPermissionVersionInputBuilder) -> bool
fn eq(&self, other: &SetDefaultPermissionVersionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.