aws_sdk_kinesisanalyticsv2/operation/update_application/
_update_application_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 UpdateApplicationOutput {
6    /// <p>Describes application updates.</p>
7    pub application_detail: ::std::option::Option<crate::types::ApplicationDetail>,
8    /// <p>The operation ID that can be used to track the request.</p>
9    pub operation_id: ::std::option::Option<::std::string::String>,
10    _request_id: Option<String>,
11}
12impl UpdateApplicationOutput {
13    /// <p>Describes application updates.</p>
14    pub fn application_detail(&self) -> ::std::option::Option<&crate::types::ApplicationDetail> {
15        self.application_detail.as_ref()
16    }
17    /// <p>The operation ID that can be used to track the request.</p>
18    pub fn operation_id(&self) -> ::std::option::Option<&str> {
19        self.operation_id.as_deref()
20    }
21}
22impl ::aws_types::request_id::RequestId for UpdateApplicationOutput {
23    fn request_id(&self) -> Option<&str> {
24        self._request_id.as_deref()
25    }
26}
27impl UpdateApplicationOutput {
28    /// Creates a new builder-style object to manufacture [`UpdateApplicationOutput`](crate::operation::update_application::UpdateApplicationOutput).
29    pub fn builder() -> crate::operation::update_application::builders::UpdateApplicationOutputBuilder {
30        crate::operation::update_application::builders::UpdateApplicationOutputBuilder::default()
31    }
32}
33
34/// A builder for [`UpdateApplicationOutput`](crate::operation::update_application::UpdateApplicationOutput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct UpdateApplicationOutputBuilder {
38    pub(crate) application_detail: ::std::option::Option<crate::types::ApplicationDetail>,
39    pub(crate) operation_id: ::std::option::Option<::std::string::String>,
40    _request_id: Option<String>,
41}
42impl UpdateApplicationOutputBuilder {
43    /// <p>Describes application updates.</p>
44    /// This field is required.
45    pub fn application_detail(mut self, input: crate::types::ApplicationDetail) -> Self {
46        self.application_detail = ::std::option::Option::Some(input);
47        self
48    }
49    /// <p>Describes application updates.</p>
50    pub fn set_application_detail(mut self, input: ::std::option::Option<crate::types::ApplicationDetail>) -> Self {
51        self.application_detail = input;
52        self
53    }
54    /// <p>Describes application updates.</p>
55    pub fn get_application_detail(&self) -> &::std::option::Option<crate::types::ApplicationDetail> {
56        &self.application_detail
57    }
58    /// <p>The operation ID that can be used to track the request.</p>
59    pub fn operation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60        self.operation_id = ::std::option::Option::Some(input.into());
61        self
62    }
63    /// <p>The operation ID that can be used to track the request.</p>
64    pub fn set_operation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.operation_id = input;
66        self
67    }
68    /// <p>The operation ID that can be used to track the request.</p>
69    pub fn get_operation_id(&self) -> &::std::option::Option<::std::string::String> {
70        &self.operation_id
71    }
72    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
73        self._request_id = Some(request_id.into());
74        self
75    }
76
77    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
78        self._request_id = request_id;
79        self
80    }
81    /// Consumes the builder and constructs a [`UpdateApplicationOutput`](crate::operation::update_application::UpdateApplicationOutput).
82    pub fn build(self) -> crate::operation::update_application::UpdateApplicationOutput {
83        crate::operation::update_application::UpdateApplicationOutput {
84            application_detail: self.application_detail,
85            operation_id: self.operation_id,
86            _request_id: self._request_id,
87        }
88    }
89}