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