aws-sdk-sagemaker 1.193.0

AWS SDK for Amazon SageMaker Service
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 DeletePartnerAppInput {
    /// <p>The ARN of the SageMaker Partner AI App to delete.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>A unique token that guarantees that the call to this API is idempotent.</p>
    pub client_token: ::std::option::Option<::std::string::String>,
}
impl DeletePartnerAppInput {
    /// <p>The ARN of the SageMaker Partner AI App to delete.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>A unique token that guarantees that the call to this API is idempotent.</p>
    pub fn client_token(&self) -> ::std::option::Option<&str> {
        self.client_token.as_deref()
    }
}
impl DeletePartnerAppInput {
    /// Creates a new builder-style object to manufacture [`DeletePartnerAppInput`](crate::operation::delete_partner_app::DeletePartnerAppInput).
    pub fn builder() -> crate::operation::delete_partner_app::builders::DeletePartnerAppInputBuilder {
        crate::operation::delete_partner_app::builders::DeletePartnerAppInputBuilder::default()
    }
}

/// A builder for [`DeletePartnerAppInput`](crate::operation::delete_partner_app::DeletePartnerAppInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeletePartnerAppInputBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl DeletePartnerAppInputBuilder {
    /// <p>The ARN of the SageMaker Partner AI App to delete.</p>
    /// This field is required.
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the SageMaker Partner AI App to delete.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The ARN of the SageMaker Partner AI App to delete.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>A unique token that guarantees that the call to this API is idempotent.</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 token that guarantees that the call to this API is idempotent.</p>
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_token = input;
        self
    }
    /// <p>A unique token that guarantees that the call to this API is idempotent.</p>
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_token
    }
    /// Consumes the builder and constructs a [`DeletePartnerAppInput`](crate::operation::delete_partner_app::DeletePartnerAppInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_partner_app::DeletePartnerAppInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_partner_app::DeletePartnerAppInput {
            arn: self.arn,
            client_token: self.client_token,
        })
    }
}