1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
23/// <p>The <code>ReadPresetRequest</code> structure.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ReadPresetInput {
7/// <p>The identifier of the preset for which you want to get detailed information.</p>
8pub id: ::std::option::Option<::std::string::String>,
9}
10impl ReadPresetInput {
11/// <p>The identifier of the preset for which you want to get detailed information.</p>
12pub fn id(&self) -> ::std::option::Option<&str> {
13self.id.as_deref()
14 }
15}
16impl ReadPresetInput {
17/// Creates a new builder-style object to manufacture [`ReadPresetInput`](crate::operation::read_preset::ReadPresetInput).
18pub fn builder() -> crate::operation::read_preset::builders::ReadPresetInputBuilder {
19crate::operation::read_preset::builders::ReadPresetInputBuilder::default()
20 }
21}
2223/// A builder for [`ReadPresetInput`](crate::operation::read_preset::ReadPresetInput).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct ReadPresetInputBuilder {
27pub(crate) id: ::std::option::Option<::std::string::String>,
28}
29impl ReadPresetInputBuilder {
30/// <p>The identifier of the preset for which you want to get detailed information.</p>
31 /// This field is required.
32pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
33self.id = ::std::option::Option::Some(input.into());
34self
35}
36/// <p>The identifier of the preset for which you want to get detailed information.</p>
37pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
38self.id = input;
39self
40}
41/// <p>The identifier of the preset for which you want to get detailed information.</p>
42pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
43&self.id
44 }
45/// Consumes the builder and constructs a [`ReadPresetInput`](crate::operation::read_preset::ReadPresetInput).
46pub fn build(self) -> ::std::result::Result<crate::operation::read_preset::ReadPresetInput, ::aws_smithy_types::error::operation::BuildError> {
47 ::std::result::Result::Ok(crate::operation::read_preset::ReadPresetInput { id: self.id })
48 }
49}