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 UpdateSyncBlockerInput {
    /// <p>The ID of the sync blocker to be updated.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The sync type of the sync blocker to be updated.</p>
    pub sync_type: ::std::option::Option<crate::types::SyncConfigurationType>,
    /// <p>The name of the resource for the sync blocker to be updated.</p>
    pub resource_name: ::std::option::Option<::std::string::String>,
    /// <p>The reason for resolving the sync blocker.</p>
    pub resolved_reason: ::std::option::Option<::std::string::String>,
}
impl UpdateSyncBlockerInput {
    /// <p>The ID of the sync blocker to be updated.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The sync type of the sync blocker to be updated.</p>
    pub fn sync_type(&self) -> ::std::option::Option<&crate::types::SyncConfigurationType> {
        self.sync_type.as_ref()
    }
    /// <p>The name of the resource for the sync blocker to be updated.</p>
    pub fn resource_name(&self) -> ::std::option::Option<&str> {
        self.resource_name.as_deref()
    }
    /// <p>The reason for resolving the sync blocker.</p>
    pub fn resolved_reason(&self) -> ::std::option::Option<&str> {
        self.resolved_reason.as_deref()
    }
}
impl UpdateSyncBlockerInput {
    /// Creates a new builder-style object to manufacture [`UpdateSyncBlockerInput`](crate::operation::update_sync_blocker::UpdateSyncBlockerInput).
    pub fn builder() -> crate::operation::update_sync_blocker::builders::UpdateSyncBlockerInputBuilder {
        crate::operation::update_sync_blocker::builders::UpdateSyncBlockerInputBuilder::default()
    }
}

/// A builder for [`UpdateSyncBlockerInput`](crate::operation::update_sync_blocker::UpdateSyncBlockerInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateSyncBlockerInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) sync_type: ::std::option::Option<crate::types::SyncConfigurationType>,
    pub(crate) resource_name: ::std::option::Option<::std::string::String>,
    pub(crate) resolved_reason: ::std::option::Option<::std::string::String>,
}
impl UpdateSyncBlockerInputBuilder {
    /// <p>The ID of the sync blocker to be updated.</p>
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the sync blocker to be updated.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the sync blocker to be updated.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The sync type of the sync blocker to be updated.</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 of the sync blocker to be updated.</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 of the sync blocker to be updated.</p>
    pub fn get_sync_type(&self) -> &::std::option::Option<crate::types::SyncConfigurationType> {
        &self.sync_type
    }
    /// <p>The name of the resource for the sync blocker to be updated.</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 resource for the sync blocker to be updated.</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 resource for the sync blocker to be updated.</p>
    pub fn get_resource_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_name
    }
    /// <p>The reason for resolving the sync blocker.</p>
    /// This field is required.
    pub fn resolved_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resolved_reason = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The reason for resolving the sync blocker.</p>
    pub fn set_resolved_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resolved_reason = input;
        self
    }
    /// <p>The reason for resolving the sync blocker.</p>
    pub fn get_resolved_reason(&self) -> &::std::option::Option<::std::string::String> {
        &self.resolved_reason
    }
    /// Consumes the builder and constructs a [`UpdateSyncBlockerInput`](crate::operation::update_sync_blocker::UpdateSyncBlockerInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_sync_blocker::UpdateSyncBlockerInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_sync_blocker::UpdateSyncBlockerInput {
            id: self.id,
            sync_type: self.sync_type,
            resource_name: self.resource_name,
            resolved_reason: self.resolved_reason,
        })
    }
}