aws-sdk-robomaker 1.81.0

AWS SDK for AWS RoboMaker
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 DescribeWorldInput {
    /// <p>The Amazon Resource Name (arn) of the world you want to describe.</p>
    pub world: ::std::option::Option<::std::string::String>,
}
impl DescribeWorldInput {
    /// <p>The Amazon Resource Name (arn) of the world you want to describe.</p>
    pub fn world(&self) -> ::std::option::Option<&str> {
        self.world.as_deref()
    }
}
impl DescribeWorldInput {
    /// Creates a new builder-style object to manufacture [`DescribeWorldInput`](crate::operation::describe_world::DescribeWorldInput).
    pub fn builder() -> crate::operation::describe_world::builders::DescribeWorldInputBuilder {
        crate::operation::describe_world::builders::DescribeWorldInputBuilder::default()
    }
}

/// A builder for [`DescribeWorldInput`](crate::operation::describe_world::DescribeWorldInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeWorldInputBuilder {
    pub(crate) world: ::std::option::Option<::std::string::String>,
}
impl DescribeWorldInputBuilder {
    /// <p>The Amazon Resource Name (arn) of the world you want to describe.</p>
    /// This field is required.
    pub fn world(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.world = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (arn) of the world you want to describe.</p>
    pub fn set_world(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.world = input;
        self
    }
    /// <p>The Amazon Resource Name (arn) of the world you want to describe.</p>
    pub fn get_world(&self) -> &::std::option::Option<::std::string::String> {
        &self.world
    }
    /// Consumes the builder and constructs a [`DescribeWorldInput`](crate::operation::describe_world::DescribeWorldInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_world::DescribeWorldInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_world::DescribeWorldInput { world: self.world })
    }
}