1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateTapeWithBarcode`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tape with. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p><br>
    ///   - [`tape_size_in_bytes(i64)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::tape_size_in_bytes) / [`set_tape_size_in_bytes(Option<i64>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_tape_size_in_bytes):<br>required: **true**<br><p>The size, in bytes, of the virtual tape that you want to create.</p><note>  <p>The size must be aligned by gigabyte (1024*1024*1024 bytes).</p> </note><br>
    ///   - [`tape_barcode(impl Into<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::tape_barcode) / [`set_tape_barcode(Option<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_tape_barcode):<br>required: **true**<br><p>The barcode that you want to assign to the tape.</p><note>  <p>Barcodes cannot be reused. This includes barcodes used for tapes that have been deleted.</p> </note><br>
    ///   - [`kms_encrypted(bool)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::kms_encrypted) / [`set_kms_encrypted(Option<bool>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_kms_encrypted):<br>required: **false**<br><p>Set to <code>true</code> to use Amazon S3 server-side encryption with your own KMS key, or <code>false</code> to use a key managed by Amazon S3. Optional.</p> <p>Valid Values: <code>true</code> | <code>false</code></p><br>
    ///   - [`kms_key(impl Into<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::kms_key) / [`set_kms_key(Option<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_kms_key):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value can only be set when <code>KMSEncrypted</code> is <code>true</code>. Optional.</p><br>
    ///   - [`pool_id(impl Into<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::pool_id) / [`set_pool_id(Option<String>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_pool_id):<br>required: **false**<br><p>The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Deep Archive) that corresponds to the pool.</p><br>
    ///   - [`worm(bool)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::worm) / [`set_worm(Option<bool>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_worm):<br>required: **false**<br><p>Set to <code>TRUE</code> if the tape you are creating is to be configured as a write-once-read-many (WORM) tape.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::set_tags):<br>required: **false**<br><p>A list of up to 50 tags that can be assigned to a virtual tape that has a barcode. Each tag is a key-value pair.</p><note>  <p>Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.</p> </note><br>
    /// - On success, responds with [`CreateTapeWithBarcodeOutput`](crate::operation::create_tape_with_barcode::CreateTapeWithBarcodeOutput) with field(s):
    ///   - [`tape_arn(Option<String>)`](crate::operation::create_tape_with_barcode::CreateTapeWithBarcodeOutput::tape_arn): <p>A unique Amazon Resource Name (ARN) that represents the virtual tape that was created.</p>
    /// - On failure, responds with [`SdkError<CreateTapeWithBarcodeError>`](crate::operation::create_tape_with_barcode::CreateTapeWithBarcodeError)
    pub fn create_tape_with_barcode(&self) -> crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder {
        crate::operation::create_tape_with_barcode::builders::CreateTapeWithBarcodeFluentBuilder::new(self.handle.clone())
    }
}