aws-sdk-sagemaker 1.196.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 DescribePartnerAppInput {
    /// <p>The ARN of the SageMaker Partner AI App to describe.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>When set to <code>TRUE</code>, the response includes available upgrade information for the SageMaker Partner AI App. Default is <code>FALSE</code>.</p>
    pub include_available_upgrade: ::std::option::Option<bool>,
}
impl DescribePartnerAppInput {
    /// <p>The ARN of the SageMaker Partner AI App to describe.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>When set to <code>TRUE</code>, the response includes available upgrade information for the SageMaker Partner AI App. Default is <code>FALSE</code>.</p>
    pub fn include_available_upgrade(&self) -> ::std::option::Option<bool> {
        self.include_available_upgrade
    }
}
impl DescribePartnerAppInput {
    /// Creates a new builder-style object to manufacture [`DescribePartnerAppInput`](crate::operation::describe_partner_app::DescribePartnerAppInput).
    pub fn builder() -> crate::operation::describe_partner_app::builders::DescribePartnerAppInputBuilder {
        crate::operation::describe_partner_app::builders::DescribePartnerAppInputBuilder::default()
    }
}

/// A builder for [`DescribePartnerAppInput`](crate::operation::describe_partner_app::DescribePartnerAppInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribePartnerAppInputBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) include_available_upgrade: ::std::option::Option<bool>,
}
impl DescribePartnerAppInputBuilder {
    /// <p>The ARN of the SageMaker Partner AI App to describe.</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 describe.</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 describe.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>When set to <code>TRUE</code>, the response includes available upgrade information for the SageMaker Partner AI App. Default is <code>FALSE</code>.</p>
    pub fn include_available_upgrade(mut self, input: bool) -> Self {
        self.include_available_upgrade = ::std::option::Option::Some(input);
        self
    }
    /// <p>When set to <code>TRUE</code>, the response includes available upgrade information for the SageMaker Partner AI App. Default is <code>FALSE</code>.</p>
    pub fn set_include_available_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
        self.include_available_upgrade = input;
        self
    }
    /// <p>When set to <code>TRUE</code>, the response includes available upgrade information for the SageMaker Partner AI App. Default is <code>FALSE</code>.</p>
    pub fn get_include_available_upgrade(&self) -> &::std::option::Option<bool> {
        &self.include_available_upgrade
    }
    /// Consumes the builder and constructs a [`DescribePartnerAppInput`](crate::operation::describe_partner_app::DescribePartnerAppInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_partner_app::DescribePartnerAppInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_partner_app::DescribePartnerAppInput {
            arn: self.arn,
            include_available_upgrade: self.include_available_upgrade,
        })
    }
}