aws_sdk_securityir/operation/close_case/
_close_case_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 CloseCaseOutput {
6    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case status following the action.</p>
7    pub case_status: ::std::option::Option<crate::types::CaseStatus>,
8    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case closure date following the action.</p>
9    pub closed_date: ::std::option::Option<::aws_smithy_types::DateTime>,
10    _request_id: Option<String>,
11}
12impl CloseCaseOutput {
13    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case status following the action.</p>
14    pub fn case_status(&self) -> ::std::option::Option<&crate::types::CaseStatus> {
15        self.case_status.as_ref()
16    }
17    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case closure date following the action.</p>
18    pub fn closed_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
19        self.closed_date.as_ref()
20    }
21}
22impl ::aws_types::request_id::RequestId for CloseCaseOutput {
23    fn request_id(&self) -> Option<&str> {
24        self._request_id.as_deref()
25    }
26}
27impl CloseCaseOutput {
28    /// Creates a new builder-style object to manufacture [`CloseCaseOutput`](crate::operation::close_case::CloseCaseOutput).
29    pub fn builder() -> crate::operation::close_case::builders::CloseCaseOutputBuilder {
30        crate::operation::close_case::builders::CloseCaseOutputBuilder::default()
31    }
32}
33
34/// A builder for [`CloseCaseOutput`](crate::operation::close_case::CloseCaseOutput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct CloseCaseOutputBuilder {
38    pub(crate) case_status: ::std::option::Option<crate::types::CaseStatus>,
39    pub(crate) closed_date: ::std::option::Option<::aws_smithy_types::DateTime>,
40    _request_id: Option<String>,
41}
42impl CloseCaseOutputBuilder {
43    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case status following the action.</p>
44    pub fn case_status(mut self, input: crate::types::CaseStatus) -> Self {
45        self.case_status = ::std::option::Option::Some(input);
46        self
47    }
48    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case status following the action.</p>
49    pub fn set_case_status(mut self, input: ::std::option::Option<crate::types::CaseStatus>) -> Self {
50        self.case_status = input;
51        self
52    }
53    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case status following the action.</p>
54    pub fn get_case_status(&self) -> &::std::option::Option<crate::types::CaseStatus> {
55        &self.case_status
56    }
57    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case closure date following the action.</p>
58    pub fn closed_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
59        self.closed_date = ::std::option::Option::Some(input);
60        self
61    }
62    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case closure date following the action.</p>
63    pub fn set_closed_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
64        self.closed_date = input;
65        self
66    }
67    /// <p>A response element providing responses for requests to CloseCase. This element responds with the case closure date following the action.</p>
68    pub fn get_closed_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
69        &self.closed_date
70    }
71    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
72        self._request_id = Some(request_id.into());
73        self
74    }
75
76    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
77        self._request_id = request_id;
78        self
79    }
80    /// Consumes the builder and constructs a [`CloseCaseOutput`](crate::operation::close_case::CloseCaseOutput).
81    pub fn build(self) -> crate::operation::close_case::CloseCaseOutput {
82        crate::operation::close_case::CloseCaseOutput {
83            case_status: self.case_status,
84            closed_date: self.closed_date,
85            _request_id: self._request_id,
86        }
87    }
88}