aws-sdk-codebuild 1.122.0

AWS SDK for AWS CodeBuild
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 DeleteWebhookInput {
    /// <p>The name of the CodeBuild project.</p>
    pub project_name: ::std::option::Option<::std::string::String>,
}
impl DeleteWebhookInput {
    /// <p>The name of the CodeBuild project.</p>
    pub fn project_name(&self) -> ::std::option::Option<&str> {
        self.project_name.as_deref()
    }
}
impl DeleteWebhookInput {
    /// Creates a new builder-style object to manufacture [`DeleteWebhookInput`](crate::operation::delete_webhook::DeleteWebhookInput).
    pub fn builder() -> crate::operation::delete_webhook::builders::DeleteWebhookInputBuilder {
        crate::operation::delete_webhook::builders::DeleteWebhookInputBuilder::default()
    }
}

/// A builder for [`DeleteWebhookInput`](crate::operation::delete_webhook::DeleteWebhookInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteWebhookInputBuilder {
    pub(crate) project_name: ::std::option::Option<::std::string::String>,
}
impl DeleteWebhookInputBuilder {
    /// <p>The name of the CodeBuild project.</p>
    /// This field is required.
    pub fn project_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.project_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the CodeBuild project.</p>
    pub fn set_project_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.project_name = input;
        self
    }
    /// <p>The name of the CodeBuild project.</p>
    pub fn get_project_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.project_name
    }
    /// Consumes the builder and constructs a [`DeleteWebhookInput`](crate::operation::delete_webhook::DeleteWebhookInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_webhook::DeleteWebhookInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_webhook::DeleteWebhookInput {
            project_name: self.project_name,
        })
    }
}