#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetControlInput {
#[doc(hidden)]
pub control_id: std::option::Option<std::string::String>,
}
impl GetControlInput {
pub fn control_id(&self) -> std::option::Option<&str> {
self.control_id.as_deref()
}
}
impl GetControlInput {
pub fn builder() -> crate::operation::get_control::builders::GetControlInputBuilder {
crate::operation::get_control::builders::GetControlInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetControlInputBuilder {
pub(crate) control_id: std::option::Option<std::string::String>,
}
impl GetControlInputBuilder {
pub fn control_id(mut self, input: impl Into<std::string::String>) -> Self {
self.control_id = Some(input.into());
self
}
pub fn set_control_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.control_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_control::GetControlInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_control::GetControlInput {
control_id: self.control_id,
})
}
}