#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateFolderOutput {
#[doc(hidden)]
pub status: i32,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub folder_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub request_id: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl UpdateFolderOutput {
pub fn status(&self) -> i32 {
self.status
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn folder_id(&self) -> std::option::Option<&str> {
self.folder_id.as_deref()
}
pub fn request_id(&self) -> std::option::Option<&str> {
self.request_id.as_deref()
}
}
impl aws_http::request_id::RequestId for UpdateFolderOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateFolderOutput {
pub fn builder() -> crate::operation::update_folder::builders::UpdateFolderOutputBuilder {
crate::operation::update_folder::builders::UpdateFolderOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateFolderOutputBuilder {
pub(crate) status: std::option::Option<i32>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) folder_id: std::option::Option<std::string::String>,
pub(crate) request_id: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl UpdateFolderOutputBuilder {
pub fn status(mut self, input: i32) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<i32>) -> Self {
self.status = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn folder_id(mut self, input: impl Into<std::string::String>) -> Self {
self.folder_id = Some(input.into());
self
}
pub fn set_folder_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.folder_id = input;
self
}
pub fn request_id(mut self, input: impl Into<std::string::String>) -> Self {
self.request_id = Some(input.into());
self
}
pub fn set_request_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.request_id = input;
self
}
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::update_folder::UpdateFolderOutput {
crate::operation::update_folder::UpdateFolderOutput {
status: self.status.unwrap_or_default(),
arn: self.arn,
folder_id: self.folder_id,
request_id: self.request_id,
_request_id: self._request_id,
}
}
}