aws_sdk_deadline/operation/delete_fleet/
_delete_fleet_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteFleetInput {
6 pub client_token: ::std::option::Option<::std::string::String>,
8 pub farm_id: ::std::option::Option<::std::string::String>,
10 pub fleet_id: ::std::option::Option<::std::string::String>,
12}
13impl DeleteFleetInput {
14 pub fn client_token(&self) -> ::std::option::Option<&str> {
16 self.client_token.as_deref()
17 }
18 pub fn farm_id(&self) -> ::std::option::Option<&str> {
20 self.farm_id.as_deref()
21 }
22 pub fn fleet_id(&self) -> ::std::option::Option<&str> {
24 self.fleet_id.as_deref()
25 }
26}
27impl DeleteFleetInput {
28 pub fn builder() -> crate::operation::delete_fleet::builders::DeleteFleetInputBuilder {
30 crate::operation::delete_fleet::builders::DeleteFleetInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DeleteFleetInputBuilder {
38 pub(crate) client_token: ::std::option::Option<::std::string::String>,
39 pub(crate) farm_id: ::std::option::Option<::std::string::String>,
40 pub(crate) fleet_id: ::std::option::Option<::std::string::String>,
41}
42impl DeleteFleetInputBuilder {
43 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
45 self.client_token = ::std::option::Option::Some(input.into());
46 self
47 }
48 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
50 self.client_token = input;
51 self
52 }
53 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
55 &self.client_token
56 }
57 pub fn farm_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.farm_id = ::std::option::Option::Some(input.into());
61 self
62 }
63 pub fn set_farm_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.farm_id = input;
66 self
67 }
68 pub fn get_farm_id(&self) -> &::std::option::Option<::std::string::String> {
70 &self.farm_id
71 }
72 pub fn fleet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75 self.fleet_id = ::std::option::Option::Some(input.into());
76 self
77 }
78 pub fn set_fleet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80 self.fleet_id = input;
81 self
82 }
83 pub fn get_fleet_id(&self) -> &::std::option::Option<::std::string::String> {
85 &self.fleet_id
86 }
87 pub fn build(self) -> ::std::result::Result<crate::operation::delete_fleet::DeleteFleetInput, ::aws_smithy_types::error::operation::BuildError> {
89 ::std::result::Result::Ok(crate::operation::delete_fleet::DeleteFleetInput {
90 client_token: self.client_token,
91 farm_id: self.farm_id,
92 fleet_id: self.fleet_id,
93 })
94 }
95}