aws_sdk_redshiftserverless/operation/delete_snapshot_copy_configuration/
_delete_snapshot_copy_configuration_output.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 DeleteSnapshotCopyConfigurationOutput {
6    /// <p>The deleted snapshot copy configuration object.</p>
7    pub snapshot_copy_configuration: ::std::option::Option<crate::types::SnapshotCopyConfiguration>,
8    _request_id: Option<String>,
9}
10impl DeleteSnapshotCopyConfigurationOutput {
11    /// <p>The deleted snapshot copy configuration object.</p>
12    pub fn snapshot_copy_configuration(&self) -> ::std::option::Option<&crate::types::SnapshotCopyConfiguration> {
13        self.snapshot_copy_configuration.as_ref()
14    }
15}
16impl ::aws_types::request_id::RequestId for DeleteSnapshotCopyConfigurationOutput {
17    fn request_id(&self) -> Option<&str> {
18        self._request_id.as_deref()
19    }
20}
21impl DeleteSnapshotCopyConfigurationOutput {
22    /// Creates a new builder-style object to manufacture [`DeleteSnapshotCopyConfigurationOutput`](crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationOutput).
23    pub fn builder() -> crate::operation::delete_snapshot_copy_configuration::builders::DeleteSnapshotCopyConfigurationOutputBuilder {
24        crate::operation::delete_snapshot_copy_configuration::builders::DeleteSnapshotCopyConfigurationOutputBuilder::default()
25    }
26}
27
28/// A builder for [`DeleteSnapshotCopyConfigurationOutput`](crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationOutput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct DeleteSnapshotCopyConfigurationOutputBuilder {
32    pub(crate) snapshot_copy_configuration: ::std::option::Option<crate::types::SnapshotCopyConfiguration>,
33    _request_id: Option<String>,
34}
35impl DeleteSnapshotCopyConfigurationOutputBuilder {
36    /// <p>The deleted snapshot copy configuration object.</p>
37    /// This field is required.
38    pub fn snapshot_copy_configuration(mut self, input: crate::types::SnapshotCopyConfiguration) -> Self {
39        self.snapshot_copy_configuration = ::std::option::Option::Some(input);
40        self
41    }
42    /// <p>The deleted snapshot copy configuration object.</p>
43    pub fn set_snapshot_copy_configuration(mut self, input: ::std::option::Option<crate::types::SnapshotCopyConfiguration>) -> Self {
44        self.snapshot_copy_configuration = input;
45        self
46    }
47    /// <p>The deleted snapshot copy configuration object.</p>
48    pub fn get_snapshot_copy_configuration(&self) -> &::std::option::Option<crate::types::SnapshotCopyConfiguration> {
49        &self.snapshot_copy_configuration
50    }
51    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
52        self._request_id = Some(request_id.into());
53        self
54    }
55
56    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
57        self._request_id = request_id;
58        self
59    }
60    /// Consumes the builder and constructs a [`DeleteSnapshotCopyConfigurationOutput`](crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationOutput).
61    pub fn build(self) -> crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationOutput {
62        crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationOutput {
63            snapshot_copy_configuration: self.snapshot_copy_configuration,
64            _request_id: self._request_id,
65        }
66    }
67}