Struct aws_sdk_secretsmanager::operation::update_secret_version_stage::builders::UpdateSecretVersionStageInputBuilder
source · #[non_exhaustive]pub struct UpdateSecretVersionStageInputBuilder { /* private fields */ }
Expand description
A builder for UpdateSecretVersionStageInput
.
Implementations§
source§impl UpdateSecretVersionStageInputBuilder
impl UpdateSecretVersionStageInputBuilder
sourcepub fn secret_id(self, input: impl Into<String>) -> Self
pub fn secret_id(self, input: impl Into<String>) -> Self
The ARN or the name of the secret with the version and staging labelsto modify.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
This field is required.sourcepub fn set_secret_id(self, input: Option<String>) -> Self
pub fn set_secret_id(self, input: Option<String>) -> Self
The ARN or the name of the secret with the version and staging labelsto modify.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
sourcepub fn get_secret_id(&self) -> &Option<String>
pub fn get_secret_id(&self) -> &Option<String>
The ARN or the name of the secret with the version and staging labelsto modify.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
sourcepub fn version_stage(self, input: impl Into<String>) -> Self
pub fn version_stage(self, input: impl Into<String>) -> Self
The staging label to add to this version.
This field is required.sourcepub fn set_version_stage(self, input: Option<String>) -> Self
pub fn set_version_stage(self, input: Option<String>) -> Self
The staging label to add to this version.
sourcepub fn get_version_stage(&self) -> &Option<String>
pub fn get_version_stage(&self) -> &Option<String>
The staging label to add to this version.
sourcepub fn remove_from_version_id(self, input: impl Into<String>) -> Self
pub fn remove_from_version_id(self, input: impl Into<String>) -> Self
The ID of the version that the staging label is to be removed from. If the staging label you are trying to attach to one version is already attached to a different version, then you must include this parameter and specify the version that the label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation fails.
sourcepub fn set_remove_from_version_id(self, input: Option<String>) -> Self
pub fn set_remove_from_version_id(self, input: Option<String>) -> Self
The ID of the version that the staging label is to be removed from. If the staging label you are trying to attach to one version is already attached to a different version, then you must include this parameter and specify the version that the label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation fails.
sourcepub fn get_remove_from_version_id(&self) -> &Option<String>
pub fn get_remove_from_version_id(&self) -> &Option<String>
The ID of the version that the staging label is to be removed from. If the staging label you are trying to attach to one version is already attached to a different version, then you must include this parameter and specify the version that the label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation fails.
sourcepub fn move_to_version_id(self, input: impl Into<String>) -> Self
pub fn move_to_version_id(self, input: impl Into<String>) -> Self
The ID of the version to add the staging label to. To remove a label from a version, then do not specify this parameter.
If the staging label is already attached to a different version of the secret, then you must also specify the RemoveFromVersionId
parameter.
sourcepub fn set_move_to_version_id(self, input: Option<String>) -> Self
pub fn set_move_to_version_id(self, input: Option<String>) -> Self
The ID of the version to add the staging label to. To remove a label from a version, then do not specify this parameter.
If the staging label is already attached to a different version of the secret, then you must also specify the RemoveFromVersionId
parameter.
sourcepub fn get_move_to_version_id(&self) -> &Option<String>
pub fn get_move_to_version_id(&self) -> &Option<String>
The ID of the version to add the staging label to. To remove a label from a version, then do not specify this parameter.
If the staging label is already attached to a different version of the secret, then you must also specify the RemoveFromVersionId
parameter.
sourcepub fn build(self) -> Result<UpdateSecretVersionStageInput, BuildError>
pub fn build(self) -> Result<UpdateSecretVersionStageInput, BuildError>
Consumes the builder and constructs a UpdateSecretVersionStageInput
.
source§impl UpdateSecretVersionStageInputBuilder
impl UpdateSecretVersionStageInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateSecretVersionStageOutput, SdkError<UpdateSecretVersionStageError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateSecretVersionStageOutput, SdkError<UpdateSecretVersionStageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateSecretVersionStageInputBuilder
impl Clone for UpdateSecretVersionStageInputBuilder
source§fn clone(&self) -> UpdateSecretVersionStageInputBuilder
fn clone(&self) -> UpdateSecretVersionStageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateSecretVersionStageInputBuilder
impl Default for UpdateSecretVersionStageInputBuilder
source§fn default() -> UpdateSecretVersionStageInputBuilder
fn default() -> UpdateSecretVersionStageInputBuilder
source§impl PartialEq for UpdateSecretVersionStageInputBuilder
impl PartialEq for UpdateSecretVersionStageInputBuilder
source§fn eq(&self, other: &UpdateSecretVersionStageInputBuilder) -> bool
fn eq(&self, other: &UpdateSecretVersionStageInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateSecretVersionStageInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateSecretVersionStageInputBuilder
impl RefUnwindSafe for UpdateSecretVersionStageInputBuilder
impl Send for UpdateSecretVersionStageInputBuilder
impl Sync for UpdateSecretVersionStageInputBuilder
impl Unpin for UpdateSecretVersionStageInputBuilder
impl UnwindSafe for UpdateSecretVersionStageInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)