#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAgentInput {
pub agent_id: ::std::option::Option<::std::string::String>,
pub skip_resource_in_use_check: ::std::option::Option<bool>,
}
impl DeleteAgentInput {
pub fn agent_id(&self) -> ::std::option::Option<&str> {
self.agent_id.as_deref()
}
pub fn skip_resource_in_use_check(&self) -> ::std::option::Option<bool> {
self.skip_resource_in_use_check
}
}
impl DeleteAgentInput {
pub fn builder() -> crate::operation::delete_agent::builders::DeleteAgentInputBuilder {
crate::operation::delete_agent::builders::DeleteAgentInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteAgentInputBuilder {
pub(crate) agent_id: ::std::option::Option<::std::string::String>,
pub(crate) skip_resource_in_use_check: ::std::option::Option<bool>,
}
impl DeleteAgentInputBuilder {
pub fn agent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_id = input;
self
}
pub fn get_agent_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_id
}
pub fn skip_resource_in_use_check(mut self, input: bool) -> Self {
self.skip_resource_in_use_check = ::std::option::Option::Some(input);
self
}
pub fn set_skip_resource_in_use_check(mut self, input: ::std::option::Option<bool>) -> Self {
self.skip_resource_in_use_check = input;
self
}
pub fn get_skip_resource_in_use_check(&self) -> &::std::option::Option<bool> {
&self.skip_resource_in_use_check
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_agent::DeleteAgentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_agent::DeleteAgentInput {
agent_id: self.agent_id,
skip_resource_in_use_check: self.skip_resource_in_use_check,
})
}
}