aws-sdk-datazone 1.136.0

AWS SDK for Amazon DataZone
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDataSourceInput {
    /// <p>The ID of the Amazon DataZone domain in which the data source is deleted.</p>
    pub domain_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the data source that is deleted.</p>
    pub identifier: ::std::option::Option<::std::string::String>,
    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
    #[deprecated(note = "This field is no longer required for idempotency.", since = "2024-12-02")]
    pub client_token: ::std::option::Option<::std::string::String>,
    /// <p>Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source.</p>
    pub retain_permissions_on_revoke_failure: ::std::option::Option<bool>,
}
impl DeleteDataSourceInput {
    /// <p>The ID of the Amazon DataZone domain in which the data source is deleted.</p>
    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
        self.domain_identifier.as_deref()
    }
    /// <p>The identifier of the data source that is deleted.</p>
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
    #[deprecated(note = "This field is no longer required for idempotency.", since = "2024-12-02")]
    pub fn client_token(&self) -> ::std::option::Option<&str> {
        self.client_token.as_deref()
    }
    /// <p>Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source.</p>
    pub fn retain_permissions_on_revoke_failure(&self) -> ::std::option::Option<bool> {
        self.retain_permissions_on_revoke_failure
    }
}
impl DeleteDataSourceInput {
    /// Creates a new builder-style object to manufacture [`DeleteDataSourceInput`](crate::operation::delete_data_source::DeleteDataSourceInput).
    pub fn builder() -> crate::operation::delete_data_source::builders::DeleteDataSourceInputBuilder {
        crate::operation::delete_data_source::builders::DeleteDataSourceInputBuilder::default()
    }
}

/// A builder for [`DeleteDataSourceInput`](crate::operation::delete_data_source::DeleteDataSourceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDataSourceInputBuilder {
    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) identifier: ::std::option::Option<::std::string::String>,
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
    pub(crate) retain_permissions_on_revoke_failure: ::std::option::Option<bool>,
}
impl DeleteDataSourceInputBuilder {
    /// <p>The ID of the Amazon DataZone domain in which the data source is deleted.</p>
    /// This field is required.
    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Amazon DataZone domain in which the data source is deleted.</p>
    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_identifier = input;
        self
    }
    /// <p>The ID of the Amazon DataZone domain in which the data source is deleted.</p>
    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_identifier
    }
    /// <p>The identifier of the data source that is deleted.</p>
    /// This field is required.
    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the data source that is deleted.</p>
    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.identifier = input;
        self
    }
    /// <p>The identifier of the data source that is deleted.</p>
    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.identifier
    }
    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
    #[deprecated(note = "This field is no longer required for idempotency.", since = "2024-12-02")]
    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
    #[deprecated(note = "This field is no longer required for idempotency.", since = "2024-12-02")]
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_token = input;
        self
    }
    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
    #[deprecated(note = "This field is no longer required for idempotency.", since = "2024-12-02")]
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_token
    }
    /// <p>Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source.</p>
    pub fn retain_permissions_on_revoke_failure(mut self, input: bool) -> Self {
        self.retain_permissions_on_revoke_failure = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source.</p>
    pub fn set_retain_permissions_on_revoke_failure(mut self, input: ::std::option::Option<bool>) -> Self {
        self.retain_permissions_on_revoke_failure = input;
        self
    }
    /// <p>Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source.</p>
    pub fn get_retain_permissions_on_revoke_failure(&self) -> &::std::option::Option<bool> {
        &self.retain_permissions_on_revoke_failure
    }
    /// Consumes the builder and constructs a [`DeleteDataSourceInput`](crate::operation::delete_data_source::DeleteDataSourceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_data_source::DeleteDataSourceInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_data_source::DeleteDataSourceInput {
            domain_identifier: self.domain_identifier,
            identifier: self.identifier,
            client_token: self.client_token,
            retain_permissions_on_revoke_failure: self.retain_permissions_on_revoke_failure,
        })
    }
}