aws-sdk-entityresolution 1.108.0

AWS SDK for AWS EntityResolution
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 GetProviderServiceInput {
    /// <p>The name of the provider. This name is typically the company name.</p>
    pub provider_name: ::std::option::Option<::std::string::String>,
    /// <p>The ARN (Amazon Resource Name) of the product that the provider service provides.</p>
    pub provider_service_name: ::std::option::Option<::std::string::String>,
}
impl GetProviderServiceInput {
    /// <p>The name of the provider. This name is typically the company name.</p>
    pub fn provider_name(&self) -> ::std::option::Option<&str> {
        self.provider_name.as_deref()
    }
    /// <p>The ARN (Amazon Resource Name) of the product that the provider service provides.</p>
    pub fn provider_service_name(&self) -> ::std::option::Option<&str> {
        self.provider_service_name.as_deref()
    }
}
impl GetProviderServiceInput {
    /// Creates a new builder-style object to manufacture [`GetProviderServiceInput`](crate::operation::get_provider_service::GetProviderServiceInput).
    pub fn builder() -> crate::operation::get_provider_service::builders::GetProviderServiceInputBuilder {
        crate::operation::get_provider_service::builders::GetProviderServiceInputBuilder::default()
    }
}

/// A builder for [`GetProviderServiceInput`](crate::operation::get_provider_service::GetProviderServiceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetProviderServiceInputBuilder {
    pub(crate) provider_name: ::std::option::Option<::std::string::String>,
    pub(crate) provider_service_name: ::std::option::Option<::std::string::String>,
}
impl GetProviderServiceInputBuilder {
    /// <p>The name of the provider. This name is typically the company name.</p>
    /// This field is required.
    pub fn provider_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.provider_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the provider. This name is typically the company name.</p>
    pub fn set_provider_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.provider_name = input;
        self
    }
    /// <p>The name of the provider. This name is typically the company name.</p>
    pub fn get_provider_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.provider_name
    }
    /// <p>The ARN (Amazon Resource Name) of the product that the provider service provides.</p>
    /// This field is required.
    pub fn provider_service_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.provider_service_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN (Amazon Resource Name) of the product that the provider service provides.</p>
    pub fn set_provider_service_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.provider_service_name = input;
        self
    }
    /// <p>The ARN (Amazon Resource Name) of the product that the provider service provides.</p>
    pub fn get_provider_service_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.provider_service_name
    }
    /// Consumes the builder and constructs a [`GetProviderServiceInput`](crate::operation::get_provider_service::GetProviderServiceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_provider_service::GetProviderServiceInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_provider_service::GetProviderServiceInput {
            provider_name: self.provider_name,
            provider_service_name: self.provider_service_name,
        })
    }
}