Skip to main content

aws_sdk_appmonetization/client/
archive_plan.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ArchivePlan`](crate::operation::archive_plan::builders::ArchivePlanFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::archive_plan::builders::ArchivePlanFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::archive_plan::builders::ArchivePlanFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
7    ///   - [`plan_id(impl Into<String>)`](crate::operation::archive_plan::builders::ArchivePlanFluentBuilder::plan_id) / [`set_plan_id(Option<String>)`](crate::operation::archive_plan::builders::ArchivePlanFluentBuilder::set_plan_id):<br>required: **true**<br>The identifier of the plan. We generate this value when you create the plan. It is unique within the app and is never reused. Treat it as opaque.<br>
8    /// - On success, responds with [`ArchivePlanOutput`](crate::operation::archive_plan::ArchivePlanOutput) with field(s):
9    ///   - [`app_id(String)`](crate::operation::archive_plan::ArchivePlanOutput::app_id): The ID of the app the archived plan belonged to.
10    ///   - [`plan_id(String)`](crate::operation::archive_plan::ArchivePlanOutput::plan_id): The server-generated identifier of the archived plan.
11    /// - On failure, responds with [`SdkError<ArchivePlanError>`](crate::operation::archive_plan::ArchivePlanError)
12    pub fn archive_plan(&self) -> crate::operation::archive_plan::builders::ArchivePlanFluentBuilder {
13        crate::operation::archive_plan::builders::ArchivePlanFluentBuilder::new(self.handle.clone())
14    }
15}