Struct aws_sdk_backup::input::UpdateBackupPlanInput
source · #[non_exhaustive]pub struct UpdateBackupPlanInput { /* private fields */ }
Implementations§
source§impl UpdateBackupPlanInput
impl UpdateBackupPlanInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateBackupPlan, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateBackupPlan, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateBackupPlan
>
Examples found in repository?
src/client.rs (line 7153)
7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateBackupPlan,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateBackupPlanError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateBackupPlanOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateBackupPlanError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateBackupPlanInput
.
source§impl UpdateBackupPlanInput
impl UpdateBackupPlanInput
sourcepub fn backup_plan_id(&self) -> Option<&str>
pub fn backup_plan_id(&self) -> Option<&str>
Uniquely identifies a backup plan.
sourcepub fn backup_plan(&self) -> Option<&BackupPlanInput>
pub fn backup_plan(&self) -> Option<&BackupPlanInput>
Specifies the body of a backup plan. Includes a BackupPlanName
and one or more sets of Rules
.
Trait Implementations§
source§impl Clone for UpdateBackupPlanInput
impl Clone for UpdateBackupPlanInput
source§fn clone(&self) -> UpdateBackupPlanInput
fn clone(&self) -> UpdateBackupPlanInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more