#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct SendInvitesInput {
pub space_id: ::std::option::Option<::std::string::String>,
pub accessor_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub title: ::std::option::Option<::std::string::String>,
pub body: ::std::option::Option<::std::string::String>,
}
impl SendInvitesInput {
pub fn space_id(&self) -> ::std::option::Option<&str> {
self.space_id.as_deref()
}
pub fn accessor_ids(&self) -> &[::std::string::String] {
self.accessor_ids.as_deref().unwrap_or_default()
}
pub fn title(&self) -> ::std::option::Option<&str> {
self.title.as_deref()
}
pub fn body(&self) -> ::std::option::Option<&str> {
self.body.as_deref()
}
}
impl ::std::fmt::Debug for SendInvitesInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("SendInvitesInput");
formatter.field("space_id", &self.space_id);
formatter.field("accessor_ids", &self.accessor_ids);
formatter.field("title", &"*** Sensitive Data Redacted ***");
formatter.field("body", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl SendInvitesInput {
pub fn builder() -> crate::operation::send_invites::builders::SendInvitesInputBuilder {
crate::operation::send_invites::builders::SendInvitesInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct SendInvitesInputBuilder {
pub(crate) space_id: ::std::option::Option<::std::string::String>,
pub(crate) accessor_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) title: ::std::option::Option<::std::string::String>,
pub(crate) body: ::std::option::Option<::std::string::String>,
}
impl SendInvitesInputBuilder {
pub fn space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.space_id = input;
self
}
pub fn get_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.space_id
}
pub fn accessor_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.accessor_ids.unwrap_or_default();
v.push(input.into());
self.accessor_ids = ::std::option::Option::Some(v);
self
}
pub fn set_accessor_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.accessor_ids = input;
self
}
pub fn get_accessor_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.accessor_ids
}
pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.title = ::std::option::Option::Some(input.into());
self
}
pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.title = input;
self
}
pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
&self.title
}
pub fn body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.body = ::std::option::Option::Some(input.into());
self
}
pub fn set_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.body = input;
self
}
pub fn get_body(&self) -> &::std::option::Option<::std::string::String> {
&self.body
}
pub fn build(self) -> ::std::result::Result<crate::operation::send_invites::SendInvitesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::send_invites::SendInvitesInput {
space_id: self.space_id,
accessor_ids: self.accessor_ids,
title: self.title,
body: self.body,
})
}
}
impl ::std::fmt::Debug for SendInvitesInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("SendInvitesInputBuilder");
formatter.field("space_id", &self.space_id);
formatter.field("accessor_ids", &self.accessor_ids);
formatter.field("title", &"*** Sensitive Data Redacted ***");
formatter.field("body", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}