#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateWorkspaceInput {
pub workspace_id: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub role: ::std::option::Option<::std::string::String>,
pub s3_location: ::std::option::Option<::std::string::String>,
}
impl UpdateWorkspaceInput {
pub fn workspace_id(&self) -> ::std::option::Option<&str> {
self.workspace_id.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn role(&self) -> ::std::option::Option<&str> {
self.role.as_deref()
}
pub fn s3_location(&self) -> ::std::option::Option<&str> {
self.s3_location.as_deref()
}
}
impl UpdateWorkspaceInput {
pub fn builder() -> crate::operation::update_workspace::builders::UpdateWorkspaceInputBuilder {
crate::operation::update_workspace::builders::UpdateWorkspaceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateWorkspaceInputBuilder {
pub(crate) workspace_id: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) role: ::std::option::Option<::std::string::String>,
pub(crate) s3_location: ::std::option::Option<::std::string::String>,
}
impl UpdateWorkspaceInputBuilder {
pub fn workspace_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workspace_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_workspace_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workspace_id = input;
self
}
pub fn get_workspace_id(&self) -> &::std::option::Option<::std::string::String> {
&self.workspace_id
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.role = ::std::option::Option::Some(input.into());
self
}
pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.role = input;
self
}
pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
&self.role
}
pub fn s3_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_location = ::std::option::Option::Some(input.into());
self
}
pub fn set_s3_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_location = input;
self
}
pub fn get_s3_location(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_location
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_workspace::UpdateWorkspaceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_workspace::UpdateWorkspaceInput {
workspace_id: self.workspace_id,
description: self.description,
role: self.role,
s3_location: self.s3_location,
})
}
}