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