#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetInfrastructureConfigurationInput {
pub infrastructure_configuration_arn: ::std::option::Option<::std::string::String>,
}
impl GetInfrastructureConfigurationInput {
pub fn infrastructure_configuration_arn(&self) -> ::std::option::Option<&str> {
self.infrastructure_configuration_arn.as_deref()
}
}
impl GetInfrastructureConfigurationInput {
pub fn builder() -> crate::operation::get_infrastructure_configuration::builders::GetInfrastructureConfigurationInputBuilder {
crate::operation::get_infrastructure_configuration::builders::GetInfrastructureConfigurationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetInfrastructureConfigurationInputBuilder {
pub(crate) infrastructure_configuration_arn: ::std::option::Option<::std::string::String>,
}
impl GetInfrastructureConfigurationInputBuilder {
pub fn infrastructure_configuration_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.infrastructure_configuration_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_infrastructure_configuration_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.infrastructure_configuration_arn = input;
self
}
pub fn get_infrastructure_configuration_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.infrastructure_configuration_arn
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::get_infrastructure_configuration::GetInfrastructureConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::get_infrastructure_configuration::GetInfrastructureConfigurationInput {
infrastructure_configuration_arn: self.infrastructure_configuration_arn,
})
}
}