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