#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCellOutput {
pub cell_arn: ::std::option::Option<::std::string::String>,
pub cell_name: ::std::option::Option<::std::string::String>,
pub cells: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub parent_readiness_scopes: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
_request_id: Option<String>,
}
impl GetCellOutput {
pub fn cell_arn(&self) -> ::std::option::Option<&str> {
self.cell_arn.as_deref()
}
pub fn cell_name(&self) -> ::std::option::Option<&str> {
self.cell_name.as_deref()
}
pub fn cells(&self) -> ::std::option::Option<&[::std::string::String]> {
self.cells.as_deref()
}
pub fn parent_readiness_scopes(&self) -> ::std::option::Option<&[::std::string::String]> {
self.parent_readiness_scopes.as_deref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
}
impl ::aws_http::request_id::RequestId for GetCellOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetCellOutput {
pub fn builder() -> crate::operation::get_cell::builders::GetCellOutputBuilder {
crate::operation::get_cell::builders::GetCellOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetCellOutputBuilder {
pub(crate) cell_arn: ::std::option::Option<::std::string::String>,
pub(crate) cell_name: ::std::option::Option<::std::string::String>,
pub(crate) cells: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) parent_readiness_scopes: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
_request_id: Option<String>,
}
impl GetCellOutputBuilder {
pub fn cell_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cell_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_cell_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cell_arn = input;
self
}
pub fn get_cell_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.cell_arn
}
pub fn cell_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cell_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_cell_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cell_name = input;
self
}
pub fn get_cell_name(&self) -> &::std::option::Option<::std::string::String> {
&self.cell_name
}
pub fn cells(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.cells.unwrap_or_default();
v.push(input.into());
self.cells = ::std::option::Option::Some(v);
self
}
pub fn set_cells(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.cells = input;
self
}
pub fn get_cells(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.cells
}
pub fn parent_readiness_scopes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.parent_readiness_scopes.unwrap_or_default();
v.push(input.into());
self.parent_readiness_scopes = ::std::option::Option::Some(v);
self
}
pub fn set_parent_readiness_scopes(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.parent_readiness_scopes = input;
self
}
pub fn get_parent_readiness_scopes(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.parent_readiness_scopes
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
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::get_cell::GetCellOutput {
crate::operation::get_cell::GetCellOutput {
cell_arn: self.cell_arn,
cell_name: self.cell_name,
cells: self.cells,
parent_readiness_scopes: self.parent_readiness_scopes,
tags: self.tags,
_request_id: self._request_id,
}
}
}