aws-sdk-gamelift 0.26.0

AWS SDK for Amazon GameLift
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 DescribeScriptInput {
    /// <p>A unique identifier for the Realtime script to retrieve properties for. You can use either the script ID or ARN value.</p>
    #[doc(hidden)]
    pub script_id: std::option::Option<std::string::String>,
}
impl DescribeScriptInput {
    /// <p>A unique identifier for the Realtime script to retrieve properties for. You can use either the script ID or ARN value.</p>
    pub fn script_id(&self) -> std::option::Option<&str> {
        self.script_id.as_deref()
    }
}
impl DescribeScriptInput {
    /// Creates a new builder-style object to manufacture [`DescribeScriptInput`](crate::operation::describe_script::DescribeScriptInput).
    pub fn builder() -> crate::operation::describe_script::builders::DescribeScriptInputBuilder {
        crate::operation::describe_script::builders::DescribeScriptInputBuilder::default()
    }
}

/// A builder for [`DescribeScriptInput`](crate::operation::describe_script::DescribeScriptInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeScriptInputBuilder {
    pub(crate) script_id: std::option::Option<std::string::String>,
}
impl DescribeScriptInputBuilder {
    /// <p>A unique identifier for the Realtime script to retrieve properties for. You can use either the script ID or ARN value.</p>
    pub fn script_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.script_id = Some(input.into());
        self
    }
    /// <p>A unique identifier for the Realtime script to retrieve properties for. You can use either the script ID or ARN value.</p>
    pub fn set_script_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.script_id = input;
        self
    }
    /// Consumes the builder and constructs a [`DescribeScriptInput`](crate::operation::describe_script::DescribeScriptInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::describe_script::DescribeScriptInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::describe_script::DescribeScriptInput {
            script_id: self.script_id,
        })
    }
}