aws_sdk_evs/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 /// <note>
7 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
8 /// </note>
9 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
10 pub client_token: ::std::option::Option<::std::string::String>,
11 /// <p>A unique ID associated with the environment to be deleted.</p>
12 pub environment_id: ::std::option::Option<::std::string::String>,
13}
14impl DeleteEnvironmentInput {
15 /// <note>
16 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
17 /// </note>
18 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
19 pub fn client_token(&self) -> ::std::option::Option<&str> {
20 self.client_token.as_deref()
21 }
22 /// <p>A unique ID associated with the environment to be deleted.</p>
23 pub fn environment_id(&self) -> ::std::option::Option<&str> {
24 self.environment_id.as_deref()
25 }
26}
27impl DeleteEnvironmentInput {
28 /// Creates a new builder-style object to manufacture [`DeleteEnvironmentInput`](crate::operation::delete_environment::DeleteEnvironmentInput).
29 pub fn builder() -> crate::operation::delete_environment::builders::DeleteEnvironmentInputBuilder {
30 crate::operation::delete_environment::builders::DeleteEnvironmentInputBuilder::default()
31 }
32}
33
34/// A builder for [`DeleteEnvironmentInput`](crate::operation::delete_environment::DeleteEnvironmentInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DeleteEnvironmentInputBuilder {
38 pub(crate) client_token: ::std::option::Option<::std::string::String>,
39 pub(crate) environment_id: ::std::option::Option<::std::string::String>,
40}
41impl DeleteEnvironmentInputBuilder {
42 /// <note>
43 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
44 /// </note>
45 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
46 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
47 self.client_token = ::std::option::Option::Some(input.into());
48 self
49 }
50 /// <note>
51 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
52 /// </note>
53 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
54 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
55 self.client_token = input;
56 self
57 }
58 /// <note>
59 /// <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p>
60 /// </note>
61 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p>
62 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
63 &self.client_token
64 }
65 /// <p>A unique ID associated with the environment to be deleted.</p>
66 /// This field is required.
67 pub fn environment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68 self.environment_id = ::std::option::Option::Some(input.into());
69 self
70 }
71 /// <p>A unique ID associated with the environment to be deleted.</p>
72 pub fn set_environment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73 self.environment_id = input;
74 self
75 }
76 /// <p>A unique ID associated with the environment to be deleted.</p>
77 pub fn get_environment_id(&self) -> &::std::option::Option<::std::string::String> {
78 &self.environment_id
79 }
80 /// Consumes the builder and constructs a [`DeleteEnvironmentInput`](crate::operation::delete_environment::DeleteEnvironmentInput).
81 pub fn build(
82 self,
83 ) -> ::std::result::Result<crate::operation::delete_environment::DeleteEnvironmentInput, ::aws_smithy_types::error::operation::BuildError> {
84 ::std::result::Result::Ok(crate::operation::delete_environment::DeleteEnvironmentInput {
85 client_token: self.client_token,
86 environment_id: self.environment_id,
87 })
88 }
89}