// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetDataProtectionPolicy`](crate::operation::get_data_protection_policy::builders::GetDataProtectionPolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::operation::get_data_protection_policy::builders::GetDataProtectionPolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_data_protection_policy::builders::GetDataProtectionPolicyFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The ARN of the topic whose <code>DataProtectionPolicy</code> you want to get.</p> <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the Amazon Web Services General Reference.</p><br>
/// - On success, responds with [`GetDataProtectionPolicyOutput`](crate::operation::get_data_protection_policy::GetDataProtectionPolicyOutput) with field(s):
/// - [`data_protection_policy(Option<String>)`](crate::operation::get_data_protection_policy::GetDataProtectionPolicyOutput::data_protection_policy): <p>Retrieves the <code>DataProtectionPolicy</code> in JSON string format.</p>
/// - On failure, responds with [`SdkError<GetDataProtectionPolicyError>`](crate::operation::get_data_protection_policy::GetDataProtectionPolicyError)
pub fn get_data_protection_policy(&self) -> crate::operation::get_data_protection_policy::builders::GetDataProtectionPolicyFluentBuilder {
crate::operation::get_data_protection_policy::builders::GetDataProtectionPolicyFluentBuilder::new(self.handle.clone())
}
}