// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetParametersForImport`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`key_material_type(KeyMaterialType)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::key_material_type) / [`set_key_material_type(Option<KeyMaterialType>)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::set_key_material_type):<br>required: **true**<br><p>The method to use for key material import. Import token is only required for TR-34 WrappedKeyBlock (<code>TR34_KEY_BLOCK</code>) and RSA WrappedKeyCryptogram (<code>KEY_CRYPTOGRAM</code>).</p> <p>Import token is not required for TR-31, root public key cerificate or trusted public key certificate.</p><br>
/// - [`wrapping_key_algorithm(KeyAlgorithm)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::wrapping_key_algorithm) / [`set_wrapping_key_algorithm(Option<KeyAlgorithm>)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::set_wrapping_key_algorithm):<br>required: **true**<br><p>The wrapping key algorithm to generate a wrapping key certificate. This certificate wraps the key under import.</p> <p>At this time, <code>RSA_2048</code> is the allowed algorithm for TR-34 WrappedKeyBlock import. Additionally, <code>RSA_2048</code>, <code>RSA_3072</code>, <code>RSA_4096</code> are the allowed algorithms for RSA WrappedKeyCryptogram import.</p><br>
/// - [`reuse_last_generated_token(bool)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::reuse_last_generated_token) / [`set_reuse_last_generated_token(Option<bool>)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::set_reuse_last_generated_token):<br>required: **false**<br><p>Specifies whether to reuse the existing import token and wrapping key certificate. If set to <code>true</code> and a valid import token exists for the same key material type and wrapping key algorithm with at least 7 days of remaining validity, the existing token and wrapping key certificate are returned. Otherwise, a new import token and wrapping key certificate are generated. The default value is <code>false</code>, which generates a new import token and wrapping key certificate on every call.</p><br>
/// - On success, responds with [`GetParametersForImportOutput`](crate::operation::get_parameters_for_import::GetParametersForImportOutput) with field(s):
/// - [`wrapping_key_certificate(String)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::wrapping_key_certificate): <p>The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key block. The certificate expires in 30 days.</p>
/// - [`wrapping_key_certificate_chain(String)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::wrapping_key_certificate_chain): <p>The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key certificate in PEM format (base64 encoded).</p>
/// - [`wrapping_key_algorithm(KeyAlgorithm)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::wrapping_key_algorithm): <p>The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram.</p>
/// - [`import_token(String)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::import_token): <p>The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires after 30 days. You can use the same import token to import multiple keys to the same service account.</p>
/// - [`parameters_valid_until_timestamp(DateTime)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::parameters_valid_until_timestamp): <p>The validity period of the import token.</p>
/// - On failure, responds with [`SdkError<GetParametersForImportError>`](crate::operation::get_parameters_for_import::GetParametersForImportError)
pub fn get_parameters_for_import(&self) -> crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder {
crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::new(self.handle.clone())
}
}