#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeComponentOutput {
pub application_component: ::std::option::Option<crate::types::ApplicationComponent>,
pub resource_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
_request_id: Option<String>,
}
impl DescribeComponentOutput {
pub fn application_component(&self) -> ::std::option::Option<&crate::types::ApplicationComponent> {
self.application_component.as_ref()
}
pub fn resource_list(&self) -> &[::std::string::String] {
self.resource_list.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for DescribeComponentOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeComponentOutput {
pub fn builder() -> crate::operation::describe_component::builders::DescribeComponentOutputBuilder {
crate::operation::describe_component::builders::DescribeComponentOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeComponentOutputBuilder {
pub(crate) application_component: ::std::option::Option<crate::types::ApplicationComponent>,
pub(crate) resource_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
_request_id: Option<String>,
}
impl DescribeComponentOutputBuilder {
pub fn application_component(mut self, input: crate::types::ApplicationComponent) -> Self {
self.application_component = ::std::option::Option::Some(input);
self
}
pub fn set_application_component(mut self, input: ::std::option::Option<crate::types::ApplicationComponent>) -> Self {
self.application_component = input;
self
}
pub fn get_application_component(&self) -> &::std::option::Option<crate::types::ApplicationComponent> {
&self.application_component
}
pub fn resource_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.resource_list.unwrap_or_default();
v.push(input.into());
self.resource_list = ::std::option::Option::Some(v);
self
}
pub fn set_resource_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.resource_list = input;
self
}
pub fn get_resource_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.resource_list
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::describe_component::DescribeComponentOutput {
crate::operation::describe_component::DescribeComponentOutput {
application_component: self.application_component,
resource_list: self.resource_list,
_request_id: self._request_id,
}
}
}