1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateMailboxQuotaInput {
/// <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
pub organization_id: ::std::option::Option<::std::string::String>,
/// <p>The identifer for the user for whom to update the mailbox quota.</p>
/// <p>The identifier can be the <i>UserId</i>, <i>Username</i>, or <i>email</i>. The following identity formats are available:</p>
/// <ul>
/// <li>
/// <p>User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>
/// <li>
/// <p>Email address: user@domain.tld</p></li>
/// <li>
/// <p>User name: user</p></li>
/// </ul>
pub user_id: ::std::option::Option<::std::string::String>,
/// <p>The updated mailbox quota, in MB, for the specified user.</p>
pub mailbox_quota: ::std::option::Option<i32>,
}
impl UpdateMailboxQuotaInput {
/// <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
pub fn organization_id(&self) -> ::std::option::Option<&str> {
self.organization_id.as_deref()
}
/// <p>The identifer for the user for whom to update the mailbox quota.</p>
/// <p>The identifier can be the <i>UserId</i>, <i>Username</i>, or <i>email</i>. The following identity formats are available:</p>
/// <ul>
/// <li>
/// <p>User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>
/// <li>
/// <p>Email address: user@domain.tld</p></li>
/// <li>
/// <p>User name: user</p></li>
/// </ul>
pub fn user_id(&self) -> ::std::option::Option<&str> {
self.user_id.as_deref()
}
/// <p>The updated mailbox quota, in MB, for the specified user.</p>
pub fn mailbox_quota(&self) -> ::std::option::Option<i32> {
self.mailbox_quota
}
}
impl UpdateMailboxQuotaInput {
/// Creates a new builder-style object to manufacture [`UpdateMailboxQuotaInput`](crate::operation::update_mailbox_quota::UpdateMailboxQuotaInput).
pub fn builder() -> crate::operation::update_mailbox_quota::builders::UpdateMailboxQuotaInputBuilder {
crate::operation::update_mailbox_quota::builders::UpdateMailboxQuotaInputBuilder::default()
}
}
/// A builder for [`UpdateMailboxQuotaInput`](crate::operation::update_mailbox_quota::UpdateMailboxQuotaInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateMailboxQuotaInputBuilder {
pub(crate) organization_id: ::std::option::Option<::std::string::String>,
pub(crate) user_id: ::std::option::Option<::std::string::String>,
pub(crate) mailbox_quota: ::std::option::Option<i32>,
}
impl UpdateMailboxQuotaInputBuilder {
/// <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
/// This field is required.
pub fn organization_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.organization_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
pub fn set_organization_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.organization_id = input;
self
}
/// <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
pub fn get_organization_id(&self) -> &::std::option::Option<::std::string::String> {
&self.organization_id
}
/// <p>The identifer for the user for whom to update the mailbox quota.</p>
/// <p>The identifier can be the <i>UserId</i>, <i>Username</i>, or <i>email</i>. The following identity formats are available:</p>
/// <ul>
/// <li>
/// <p>User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>
/// <li>
/// <p>Email address: user@domain.tld</p></li>
/// <li>
/// <p>User name: user</p></li>
/// </ul>
/// This field is required.
pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifer for the user for whom to update the mailbox quota.</p>
/// <p>The identifier can be the <i>UserId</i>, <i>Username</i>, or <i>email</i>. The following identity formats are available:</p>
/// <ul>
/// <li>
/// <p>User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>
/// <li>
/// <p>Email address: user@domain.tld</p></li>
/// <li>
/// <p>User name: user</p></li>
/// </ul>
pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_id = input;
self
}
/// <p>The identifer for the user for whom to update the mailbox quota.</p>
/// <p>The identifier can be the <i>UserId</i>, <i>Username</i>, or <i>email</i>. The following identity formats are available:</p>
/// <ul>
/// <li>
/// <p>User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li>
/// <li>
/// <p>Email address: user@domain.tld</p></li>
/// <li>
/// <p>User name: user</p></li>
/// </ul>
pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
&self.user_id
}
/// <p>The updated mailbox quota, in MB, for the specified user.</p>
/// This field is required.
pub fn mailbox_quota(mut self, input: i32) -> Self {
self.mailbox_quota = ::std::option::Option::Some(input);
self
}
/// <p>The updated mailbox quota, in MB, for the specified user.</p>
pub fn set_mailbox_quota(mut self, input: ::std::option::Option<i32>) -> Self {
self.mailbox_quota = input;
self
}
/// <p>The updated mailbox quota, in MB, for the specified user.</p>
pub fn get_mailbox_quota(&self) -> &::std::option::Option<i32> {
&self.mailbox_quota
}
/// Consumes the builder and constructs a [`UpdateMailboxQuotaInput`](crate::operation::update_mailbox_quota::UpdateMailboxQuotaInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_mailbox_quota::UpdateMailboxQuotaInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_mailbox_quota::UpdateMailboxQuotaInput {
organization_id: self.organization_id,
user_id: self.user_id,
mailbox_quota: self.mailbox_quota,
})
}
}