1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AddCache`](crate::operation::add_cache::builders::AddCacheFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::add_cache::builders::AddCacheFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::add_cache::builders::AddCacheFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p><br>
    ///   - [`disk_ids(impl Into<String>)`](crate::operation::add_cache::builders::AddCacheFluentBuilder::disk_ids) / [`set_disk_ids(Option<Vec::<String>>)`](crate::operation::add_cache::builders::AddCacheFluentBuilder::set_disk_ids):<br>required: **true**<br><p>An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the <code>ListLocalDisks</code> API.</p><br>
    /// - On success, responds with [`AddCacheOutput`](crate::operation::add_cache::AddCacheOutput) with field(s):
    ///   - [`gateway_arn(Option<String>)`](crate::operation::add_cache::AddCacheOutput::gateway_arn): <p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p>
    /// - On failure, responds with [`SdkError<AddCacheError>`](crate::operation::add_cache::AddCacheError)
    pub fn add_cache(&self) -> crate::operation::add_cache::builders::AddCacheFluentBuilder {
        crate::operation::add_cache::builders::AddCacheFluentBuilder::new(self.handle.clone())
    }
}