aws_sdk_datazone/operation/delete_environment/
_delete_environment_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 DeleteEnvironmentInput {
6    /// <p>The ID of the Amazon DataZone domain in which the environment is deleted.</p>
7    pub domain_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>The identifier of the environment that is to be deleted.</p>
9    pub identifier: ::std::option::Option<::std::string::String>,
10}
11impl DeleteEnvironmentInput {
12    /// <p>The ID of the Amazon DataZone domain in which the environment is deleted.</p>
13    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
14        self.domain_identifier.as_deref()
15    }
16    /// <p>The identifier of the environment that is to be deleted.</p>
17    pub fn identifier(&self) -> ::std::option::Option<&str> {
18        self.identifier.as_deref()
19    }
20}
21impl DeleteEnvironmentInput {
22    /// Creates a new builder-style object to manufacture [`DeleteEnvironmentInput`](crate::operation::delete_environment::DeleteEnvironmentInput).
23    pub fn builder() -> crate::operation::delete_environment::builders::DeleteEnvironmentInputBuilder {
24        crate::operation::delete_environment::builders::DeleteEnvironmentInputBuilder::default()
25    }
26}
27
28/// A builder for [`DeleteEnvironmentInput`](crate::operation::delete_environment::DeleteEnvironmentInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct DeleteEnvironmentInputBuilder {
32    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
33    pub(crate) identifier: ::std::option::Option<::std::string::String>,
34}
35impl DeleteEnvironmentInputBuilder {
36    /// <p>The ID of the Amazon DataZone domain in which the environment is deleted.</p>
37    /// This field is required.
38    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.domain_identifier = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The ID of the Amazon DataZone domain in which the environment is deleted.</p>
43    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.domain_identifier = input;
45        self
46    }
47    /// <p>The ID of the Amazon DataZone domain in which the environment is deleted.</p>
48    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
49        &self.domain_identifier
50    }
51    /// <p>The identifier of the environment that is to be deleted.</p>
52    /// This field is required.
53    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54        self.identifier = ::std::option::Option::Some(input.into());
55        self
56    }
57    /// <p>The identifier of the environment that is to be deleted.</p>
58    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59        self.identifier = input;
60        self
61    }
62    /// <p>The identifier of the environment that is to be deleted.</p>
63    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
64        &self.identifier
65    }
66    /// Consumes the builder and constructs a [`DeleteEnvironmentInput`](crate::operation::delete_environment::DeleteEnvironmentInput).
67    pub fn build(
68        self,
69    ) -> ::std::result::Result<crate::operation::delete_environment::DeleteEnvironmentInput, ::aws_smithy_types::error::operation::BuildError> {
70        ::std::result::Result::Ok(crate::operation::delete_environment::DeleteEnvironmentInput {
71            domain_identifier: self.domain_identifier,
72            identifier: self.identifier,
73        })
74    }
75}