#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetWorkerInput {
pub farm_id: ::std::option::Option<::std::string::String>,
pub fleet_id: ::std::option::Option<::std::string::String>,
pub worker_id: ::std::option::Option<::std::string::String>,
}
impl GetWorkerInput {
pub fn farm_id(&self) -> ::std::option::Option<&str> {
self.farm_id.as_deref()
}
pub fn fleet_id(&self) -> ::std::option::Option<&str> {
self.fleet_id.as_deref()
}
pub fn worker_id(&self) -> ::std::option::Option<&str> {
self.worker_id.as_deref()
}
}
impl GetWorkerInput {
pub fn builder() -> crate::operation::get_worker::builders::GetWorkerInputBuilder {
crate::operation::get_worker::builders::GetWorkerInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetWorkerInputBuilder {
pub(crate) farm_id: ::std::option::Option<::std::string::String>,
pub(crate) fleet_id: ::std::option::Option<::std::string::String>,
pub(crate) worker_id: ::std::option::Option<::std::string::String>,
}
impl GetWorkerInputBuilder {
pub fn farm_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.farm_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_farm_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.farm_id = input;
self
}
pub fn get_farm_id(&self) -> &::std::option::Option<::std::string::String> {
&self.farm_id
}
pub fn fleet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fleet_id = ::std::option::Option::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 get_fleet_id(&self) -> &::std::option::Option<::std::string::String> {
&self.fleet_id
}
pub fn worker_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.worker_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_worker_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.worker_id = input;
self
}
pub fn get_worker_id(&self) -> &::std::option::Option<::std::string::String> {
&self.worker_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_worker::GetWorkerInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_worker::GetWorkerInput {
farm_id: self.farm_id,
fleet_id: self.fleet_id,
worker_id: self.worker_id,
})
}
}