aws_sdk_outposts/operation/delete_outpost/
_delete_outpost_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#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteOutpostInput {
6    /// <p>The ID or ARN of the Outpost.</p>
7    pub outpost_id: ::std::option::Option<::std::string::String>,
8}
9impl DeleteOutpostInput {
10    /// <p>The ID or ARN of the Outpost.</p>
11    pub fn outpost_id(&self) -> ::std::option::Option<&str> {
12        self.outpost_id.as_deref()
13    }
14}
15impl DeleteOutpostInput {
16    /// Creates a new builder-style object to manufacture [`DeleteOutpostInput`](crate::operation::delete_outpost::DeleteOutpostInput).
17    pub fn builder() -> crate::operation::delete_outpost::builders::DeleteOutpostInputBuilder {
18        crate::operation::delete_outpost::builders::DeleteOutpostInputBuilder::default()
19    }
20}
21
22/// A builder for [`DeleteOutpostInput`](crate::operation::delete_outpost::DeleteOutpostInput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct DeleteOutpostInputBuilder {
26    pub(crate) outpost_id: ::std::option::Option<::std::string::String>,
27}
28impl DeleteOutpostInputBuilder {
29    /// <p>The ID or ARN of the Outpost.</p>
30    /// This field is required.
31    pub fn outpost_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32        self.outpost_id = ::std::option::Option::Some(input.into());
33        self
34    }
35    /// <p>The ID or ARN of the Outpost.</p>
36    pub fn set_outpost_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37        self.outpost_id = input;
38        self
39    }
40    /// <p>The ID or ARN of the Outpost.</p>
41    pub fn get_outpost_id(&self) -> &::std::option::Option<::std::string::String> {
42        &self.outpost_id
43    }
44    /// Consumes the builder and constructs a [`DeleteOutpostInput`](crate::operation::delete_outpost::DeleteOutpostInput).
45    pub fn build(
46        self,
47    ) -> ::std::result::Result<crate::operation::delete_outpost::DeleteOutpostInput, ::aws_smithy_types::error::operation::BuildError> {
48        ::std::result::Result::Ok(crate::operation::delete_outpost::DeleteOutpostInput { outpost_id: self.outpost_id })
49    }
50}