aws-sdk-medialive 1.149.0

AWS SDK for AWS Elemental MediaLive
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Placeholder documentation for DescribeOfferingRequest
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeOfferingInput {
    /// Unique offering ID, e.g. '87654321'
    pub offering_id: ::std::option::Option<::std::string::String>,
}
impl DescribeOfferingInput {
    /// Unique offering ID, e.g. '87654321'
    pub fn offering_id(&self) -> ::std::option::Option<&str> {
        self.offering_id.as_deref()
    }
}
impl DescribeOfferingInput {
    /// Creates a new builder-style object to manufacture [`DescribeOfferingInput`](crate::operation::describe_offering::DescribeOfferingInput).
    pub fn builder() -> crate::operation::describe_offering::builders::DescribeOfferingInputBuilder {
        crate::operation::describe_offering::builders::DescribeOfferingInputBuilder::default()
    }
}

/// A builder for [`DescribeOfferingInput`](crate::operation::describe_offering::DescribeOfferingInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeOfferingInputBuilder {
    pub(crate) offering_id: ::std::option::Option<::std::string::String>,
}
impl DescribeOfferingInputBuilder {
    /// Unique offering ID, e.g. '87654321'
    /// This field is required.
    pub fn offering_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.offering_id = ::std::option::Option::Some(input.into());
        self
    }
    /// Unique offering ID, e.g. '87654321'
    pub fn set_offering_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.offering_id = input;
        self
    }
    /// Unique offering ID, e.g. '87654321'
    pub fn get_offering_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.offering_id
    }
    /// Consumes the builder and constructs a [`DescribeOfferingInput`](crate::operation::describe_offering::DescribeOfferingInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_offering::DescribeOfferingInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_offering::DescribeOfferingInput {
            offering_id: self.offering_id,
        })
    }
}