aws_sdk_robomaker/operation/delete_fleet/
_delete_fleet_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[deprecated(
4    note = "Support for the AWS RoboMaker application deployment feature has ended. For additional information, see https://docs.aws.amazon.com/robomaker/latest/dg/fleets.html."
5)]
6#[non_exhaustive]
7#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
8pub struct DeleteFleetInput {
9    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
10    pub fleet: ::std::option::Option<::std::string::String>,
11}
12impl DeleteFleetInput {
13    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
14    pub fn fleet(&self) -> ::std::option::Option<&str> {
15        self.fleet.as_deref()
16    }
17}
18impl DeleteFleetInput {
19    /// Creates a new builder-style object to manufacture [`DeleteFleetInput`](crate::operation::delete_fleet::DeleteFleetInput).
20    pub fn builder() -> crate::operation::delete_fleet::builders::DeleteFleetInputBuilder {
21        crate::operation::delete_fleet::builders::DeleteFleetInputBuilder::default()
22    }
23}
24
25/// A builder for [`DeleteFleetInput`](crate::operation::delete_fleet::DeleteFleetInput).
26#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
27#[non_exhaustive]
28pub struct DeleteFleetInputBuilder {
29    pub(crate) fleet: ::std::option::Option<::std::string::String>,
30}
31impl DeleteFleetInputBuilder {
32    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
33    /// This field is required.
34    pub fn fleet(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
35        self.fleet = ::std::option::Option::Some(input.into());
36        self
37    }
38    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
39    pub fn set_fleet(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
40        self.fleet = input;
41        self
42    }
43    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
44    pub fn get_fleet(&self) -> &::std::option::Option<::std::string::String> {
45        &self.fleet
46    }
47    /// Consumes the builder and constructs a [`DeleteFleetInput`](crate::operation::delete_fleet::DeleteFleetInput).
48    pub fn build(self) -> ::std::result::Result<crate::operation::delete_fleet::DeleteFleetInput, ::aws_smithy_types::error::operation::BuildError> {
49        ::std::result::Result::Ok(crate::operation::delete_fleet::DeleteFleetInput { fleet: self.fleet })
50    }
51}