aws_sdk_ssm/operation/delete_parameter/_delete_parameter_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 DeleteParameterInput {
6 /// <p>The name of the parameter to delete.</p><note>
7 /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
8 /// </note>
9 pub name: ::std::option::Option<::std::string::String>,
10}
11impl DeleteParameterInput {
12 /// <p>The name of the parameter to delete.</p><note>
13 /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
14 /// </note>
15 pub fn name(&self) -> ::std::option::Option<&str> {
16 self.name.as_deref()
17 }
18}
19impl DeleteParameterInput {
20 /// Creates a new builder-style object to manufacture [`DeleteParameterInput`](crate::operation::delete_parameter::DeleteParameterInput).
21 pub fn builder() -> crate::operation::delete_parameter::builders::DeleteParameterInputBuilder {
22 crate::operation::delete_parameter::builders::DeleteParameterInputBuilder::default()
23 }
24}
25
26/// A builder for [`DeleteParameterInput`](crate::operation::delete_parameter::DeleteParameterInput).
27#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
28#[non_exhaustive]
29pub struct DeleteParameterInputBuilder {
30 pub(crate) name: ::std::option::Option<::std::string::String>,
31}
32impl DeleteParameterInputBuilder {
33 /// <p>The name of the parameter to delete.</p><note>
34 /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
35 /// </note>
36 /// This field is required.
37 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38 self.name = ::std::option::Option::Some(input.into());
39 self
40 }
41 /// <p>The name of the parameter to delete.</p><note>
42 /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
43 /// </note>
44 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.name = input;
46 self
47 }
48 /// <p>The name of the parameter to delete.</p><note>
49 /// <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p>
50 /// </note>
51 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
52 &self.name
53 }
54 /// Consumes the builder and constructs a [`DeleteParameterInput`](crate::operation::delete_parameter::DeleteParameterInput).
55 pub fn build(
56 self,
57 ) -> ::std::result::Result<crate::operation::delete_parameter::DeleteParameterInput, ::aws_smithy_types::error::operation::BuildError> {
58 ::std::result::Result::Ok(crate::operation::delete_parameter::DeleteParameterInput { name: self.name })
59 }
60}