aws-sdk-datazone 1.145.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)]
pub struct StartNotebookSyncInput {
    /// <p>The identifier of the Amazon SageMaker Unified Studio domain in which to sync the notebook.</p>
    pub domain_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the project that will own the synced notebook.</p>
    pub owning_project_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The source location of the notebook to sync. This specifies the Amazon Simple Storage Service URI of the notebook file.</p>
    pub source_location: ::std::option::Option<crate::types::SourceLocation>,
    /// <p>The Git metadata for the notebook sync, including repository, branch, and commit information.</p>
    pub git_metadata: ::std::option::Option<crate::types::GitMetadata>,
    /// <p>The identifier of an existing notebook to sync. If not specified, a new notebook is created.</p>
    pub notebook_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the notebook. The name must be between 1 and 256 characters.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The description of the notebook.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.</p>
    pub client_token: ::std::option::Option<::std::string::String>,
}
impl StartNotebookSyncInput {
    /// <p>The identifier of the Amazon SageMaker Unified Studio domain in which to sync the notebook.</p>
    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
        self.domain_identifier.as_deref()
    }
    /// <p>The identifier of the project that will own the synced notebook.</p>
    pub fn owning_project_identifier(&self) -> ::std::option::Option<&str> {
        self.owning_project_identifier.as_deref()
    }
    /// <p>The source location of the notebook to sync. This specifies the Amazon Simple Storage Service URI of the notebook file.</p>
    pub fn source_location(&self) -> ::std::option::Option<&crate::types::SourceLocation> {
        self.source_location.as_ref()
    }
    /// <p>The Git metadata for the notebook sync, including repository, branch, and commit information.</p>
    pub fn git_metadata(&self) -> ::std::option::Option<&crate::types::GitMetadata> {
        self.git_metadata.as_ref()
    }
    /// <p>The identifier of an existing notebook to sync. If not specified, a new notebook is created.</p>
    pub fn notebook_id(&self) -> ::std::option::Option<&str> {
        self.notebook_id.as_deref()
    }
    /// <p>The name of the notebook. The name must be between 1 and 256 characters.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The description of the notebook.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.</p>
    pub fn client_token(&self) -> ::std::option::Option<&str> {
        self.client_token.as_deref()
    }
}
impl ::std::fmt::Debug for StartNotebookSyncInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("StartNotebookSyncInput");
        formatter.field("domain_identifier", &self.domain_identifier);
        formatter.field("owning_project_identifier", &self.owning_project_identifier);
        formatter.field("source_location", &self.source_location);
        formatter.field("git_metadata", &self.git_metadata);
        formatter.field("notebook_id", &self.notebook_id);
        formatter.field("name", &"*** Sensitive Data Redacted ***");
        formatter.field("description", &"*** Sensitive Data Redacted ***");
        formatter.field("client_token", &self.client_token);
        formatter.finish()
    }
}
impl StartNotebookSyncInput {
    /// Creates a new builder-style object to manufacture [`StartNotebookSyncInput`](crate::operation::start_notebook_sync::StartNotebookSyncInput).
    pub fn builder() -> crate::operation::start_notebook_sync::builders::StartNotebookSyncInputBuilder {
        crate::operation::start_notebook_sync::builders::StartNotebookSyncInputBuilder::default()
    }
}

/// A builder for [`StartNotebookSyncInput`](crate::operation::start_notebook_sync::StartNotebookSyncInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct StartNotebookSyncInputBuilder {
    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) owning_project_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) source_location: ::std::option::Option<crate::types::SourceLocation>,
    pub(crate) git_metadata: ::std::option::Option<crate::types::GitMetadata>,
    pub(crate) notebook_id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl StartNotebookSyncInputBuilder {
    /// <p>The identifier of the Amazon SageMaker Unified Studio domain in which to sync the notebook.</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 identifier of the Amazon SageMaker Unified Studio domain in which to sync the notebook.</p>
    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_identifier = input;
        self
    }
    /// <p>The identifier of the Amazon SageMaker Unified Studio domain in which to sync the notebook.</p>
    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_identifier
    }
    /// <p>The identifier of the project that will own the synced notebook.</p>
    /// This field is required.
    pub fn owning_project_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.owning_project_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the project that will own the synced notebook.</p>
    pub fn set_owning_project_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.owning_project_identifier = input;
        self
    }
    /// <p>The identifier of the project that will own the synced notebook.</p>
    pub fn get_owning_project_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.owning_project_identifier
    }
    /// <p>The source location of the notebook to sync. This specifies the Amazon Simple Storage Service URI of the notebook file.</p>
    /// This field is required.
    pub fn source_location(mut self, input: crate::types::SourceLocation) -> Self {
        self.source_location = ::std::option::Option::Some(input);
        self
    }
    /// <p>The source location of the notebook to sync. This specifies the Amazon Simple Storage Service URI of the notebook file.</p>
    pub fn set_source_location(mut self, input: ::std::option::Option<crate::types::SourceLocation>) -> Self {
        self.source_location = input;
        self
    }
    /// <p>The source location of the notebook to sync. This specifies the Amazon Simple Storage Service URI of the notebook file.</p>
    pub fn get_source_location(&self) -> &::std::option::Option<crate::types::SourceLocation> {
        &self.source_location
    }
    /// <p>The Git metadata for the notebook sync, including repository, branch, and commit information.</p>
    pub fn git_metadata(mut self, input: crate::types::GitMetadata) -> Self {
        self.git_metadata = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Git metadata for the notebook sync, including repository, branch, and commit information.</p>
    pub fn set_git_metadata(mut self, input: ::std::option::Option<crate::types::GitMetadata>) -> Self {
        self.git_metadata = input;
        self
    }
    /// <p>The Git metadata for the notebook sync, including repository, branch, and commit information.</p>
    pub fn get_git_metadata(&self) -> &::std::option::Option<crate::types::GitMetadata> {
        &self.git_metadata
    }
    /// <p>The identifier of an existing notebook to sync. If not specified, a new notebook is created.</p>
    pub fn notebook_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.notebook_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of an existing notebook to sync. If not specified, a new notebook is created.</p>
    pub fn set_notebook_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.notebook_id = input;
        self
    }
    /// <p>The identifier of an existing notebook to sync. If not specified, a new notebook is created.</p>
    pub fn get_notebook_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.notebook_id
    }
    /// <p>The name of the notebook. The name must be between 1 and 256 characters.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the notebook. The name must be between 1 and 256 characters.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the notebook. The name must be between 1 and 256 characters.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The description of the notebook.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the notebook.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description of the notebook.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.</p>
    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 to ensure idempotency of the request. This field is automatically populated if not provided.</p>
    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 to ensure idempotency of the request. This field is automatically populated if not provided.</p>
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_token
    }
    /// Consumes the builder and constructs a [`StartNotebookSyncInput`](crate::operation::start_notebook_sync::StartNotebookSyncInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::start_notebook_sync::StartNotebookSyncInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::start_notebook_sync::StartNotebookSyncInput {
            domain_identifier: self.domain_identifier,
            owning_project_identifier: self.owning_project_identifier,
            source_location: self.source_location,
            git_metadata: self.git_metadata,
            notebook_id: self.notebook_id,
            name: self.name,
            description: self.description,
            client_token: self.client_token,
        })
    }
}
impl ::std::fmt::Debug for StartNotebookSyncInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("StartNotebookSyncInputBuilder");
        formatter.field("domain_identifier", &self.domain_identifier);
        formatter.field("owning_project_identifier", &self.owning_project_identifier);
        formatter.field("source_location", &self.source_location);
        formatter.field("git_metadata", &self.git_metadata);
        formatter.field("notebook_id", &self.notebook_id);
        formatter.field("name", &"*** Sensitive Data Redacted ***");
        formatter.field("description", &"*** Sensitive Data Redacted ***");
        formatter.field("client_token", &self.client_token);
        formatter.finish()
    }
}