1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
// 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>
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>
/// This field is required.
pub fn script_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.script_id = ::std::option::Option::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
}
/// <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 get_script_id(&self) -> &::std::option::Option<::std::string::String> {
&self.script_id
}
/// Consumes the builder and constructs a [`DescribeScriptInput`](crate::operation::describe_script::DescribeScriptInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_script::DescribeScriptInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_script::DescribeScriptInput { script_id: self.script_id })
}
}