aws-sdk-codeconnections 1.81.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 GetSyncConfigurationInput {
    /// <p>The sync type for the sync configuration for which you want to retrieve information.</p>
    pub sync_type: ::std::option::Option<crate::types::SyncConfigurationType>,
    /// <p>The name of the Amazon Web Services resource for the sync configuration for which you want to retrieve information.</p>
    pub resource_name: ::std::option::Option<::std::string::String>,
}
impl GetSyncConfigurationInput {
    /// <p>The sync type for the sync configuration for which you want to retrieve information.</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 for the sync configuration for which you want to retrieve information.</p>
    pub fn resource_name(&self) -> ::std::option::Option<&str> {
        self.resource_name.as_deref()
    }
}
impl GetSyncConfigurationInput {
    /// Creates a new builder-style object to manufacture [`GetSyncConfigurationInput`](crate::operation::get_sync_configuration::GetSyncConfigurationInput).
    pub fn builder() -> crate::operation::get_sync_configuration::builders::GetSyncConfigurationInputBuilder {
        crate::operation::get_sync_configuration::builders::GetSyncConfigurationInputBuilder::default()
    }
}

/// A builder for [`GetSyncConfigurationInput`](crate::operation::get_sync_configuration::GetSyncConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSyncConfigurationInputBuilder {
    pub(crate) sync_type: ::std::option::Option<crate::types::SyncConfigurationType>,
    pub(crate) resource_name: ::std::option::Option<::std::string::String>,
}
impl GetSyncConfigurationInputBuilder {
    /// <p>The sync type for the sync configuration for which you want to retrieve information.</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 sync type for the sync configuration for which you want to retrieve information.</p>
    pub fn set_sync_type(mut self, input: ::std::option::Option<crate::types::SyncConfigurationType>) -> Self {
        self.sync_type = input;
        self
    }
    /// <p>The sync type for the sync configuration for which you want to retrieve information.</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 for the sync configuration for which you want to retrieve information.</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 for the sync configuration for which you want to retrieve information.</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 for the sync configuration for which you want to retrieve information.</p>
    pub fn get_resource_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_name
    }
    /// Consumes the builder and constructs a [`GetSyncConfigurationInput`](crate::operation::get_sync_configuration::GetSyncConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_sync_configuration::GetSyncConfigurationInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_sync_configuration::GetSyncConfigurationInput {
            sync_type: self.sync_type,
            resource_name: self.resource_name,
        })
    }
}