aws-sdk-codeconnections 1.83.0

AWS SDK for AWS CodeConnections
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 DeleteSyncConfigurationInput {
    /// <p>The type of sync configuration to be deleted.</p>
    pub sync_type: ::std::option::Option<crate::types::SyncConfigurationType>,
    /// <p>The name of the Amazon Web Services resource associated with the sync configuration to be deleted.</p>
    pub resource_name: ::std::option::Option<::std::string::String>,
}
impl DeleteSyncConfigurationInput {
    /// <p>The type of sync configuration to be deleted.</p>
    pub fn sync_type(&self) -> ::std::option::Option<&crate::types::SyncConfigurationType> {
        self.sync_type.as_ref()
    }
    /// <p>The name of the Amazon Web Services resource associated with the sync configuration to be deleted.</p>
    pub fn resource_name(&self) -> ::std::option::Option<&str> {
        self.resource_name.as_deref()
    }
}
impl DeleteSyncConfigurationInput {
    /// Creates a new builder-style object to manufacture [`DeleteSyncConfigurationInput`](crate::operation::delete_sync_configuration::DeleteSyncConfigurationInput).
    pub fn builder() -> crate::operation::delete_sync_configuration::builders::DeleteSyncConfigurationInputBuilder {
        crate::operation::delete_sync_configuration::builders::DeleteSyncConfigurationInputBuilder::default()
    }
}

/// A builder for [`DeleteSyncConfigurationInput`](crate::operation::delete_sync_configuration::DeleteSyncConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteSyncConfigurationInputBuilder {
    pub(crate) sync_type: ::std::option::Option<crate::types::SyncConfigurationType>,
    pub(crate) resource_name: ::std::option::Option<::std::string::String>,
}
impl DeleteSyncConfigurationInputBuilder {
    /// <p>The type of sync configuration to be deleted.</p>
    /// This field is required.
    pub fn sync_type(mut self, input: crate::types::SyncConfigurationType) -> Self {
        self.sync_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of sync configuration to be deleted.</p>
    pub fn set_sync_type(mut self, input: ::std::option::Option<crate::types::SyncConfigurationType>) -> Self {
        self.sync_type = input;
        self
    }
    /// <p>The type of sync configuration to be deleted.</p>
    pub fn get_sync_type(&self) -> &::std::option::Option<crate::types::SyncConfigurationType> {
        &self.sync_type
    }
    /// <p>The name of the Amazon Web Services resource associated with the sync configuration to be deleted.</p>
    /// This field is required.
    pub fn resource_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the Amazon Web Services resource associated with the sync configuration to be deleted.</p>
    pub fn set_resource_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_name = input;
        self
    }
    /// <p>The name of the Amazon Web Services resource associated with the sync configuration to be deleted.</p>
    pub fn get_resource_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_name
    }
    /// Consumes the builder and constructs a [`DeleteSyncConfigurationInput`](crate::operation::delete_sync_configuration::DeleteSyncConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_sync_configuration::DeleteSyncConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_sync_configuration::DeleteSyncConfigurationInput {
            sync_type: self.sync_type,
            resource_name: self.resource_name,
        })
    }
}