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
// 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 PutAccountPreferencesInput {
/// <p>Specifies the EFS resource ID preference to set for the user's Amazon Web Services account, in the current Amazon Web Services Region, either <code>LONG_ID</code> (17 characters), or <code>SHORT_ID</code> (8 characters).</p> <note>
/// <p>Starting in October, 2021, you will receive an error when setting the account preference to <code>SHORT_ID</code>. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.</p>
/// </note>
#[doc(hidden)]
pub resource_id_type: std::option::Option<crate::types::ResourceIdType>,
}
impl PutAccountPreferencesInput {
/// <p>Specifies the EFS resource ID preference to set for the user's Amazon Web Services account, in the current Amazon Web Services Region, either <code>LONG_ID</code> (17 characters), or <code>SHORT_ID</code> (8 characters).</p> <note>
/// <p>Starting in October, 2021, you will receive an error when setting the account preference to <code>SHORT_ID</code>. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.</p>
/// </note>
pub fn resource_id_type(&self) -> std::option::Option<&crate::types::ResourceIdType> {
self.resource_id_type.as_ref()
}
}
impl PutAccountPreferencesInput {
/// Creates a new builder-style object to manufacture [`PutAccountPreferencesInput`](crate::operation::put_account_preferences::PutAccountPreferencesInput).
pub fn builder(
) -> crate::operation::put_account_preferences::builders::PutAccountPreferencesInputBuilder
{
crate::operation::put_account_preferences::builders::PutAccountPreferencesInputBuilder::default()
}
}
/// A builder for [`PutAccountPreferencesInput`](crate::operation::put_account_preferences::PutAccountPreferencesInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct PutAccountPreferencesInputBuilder {
pub(crate) resource_id_type: std::option::Option<crate::types::ResourceIdType>,
}
impl PutAccountPreferencesInputBuilder {
/// <p>Specifies the EFS resource ID preference to set for the user's Amazon Web Services account, in the current Amazon Web Services Region, either <code>LONG_ID</code> (17 characters), or <code>SHORT_ID</code> (8 characters).</p> <note>
/// <p>Starting in October, 2021, you will receive an error when setting the account preference to <code>SHORT_ID</code>. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.</p>
/// </note>
pub fn resource_id_type(mut self, input: crate::types::ResourceIdType) -> Self {
self.resource_id_type = Some(input);
self
}
/// <p>Specifies the EFS resource ID preference to set for the user's Amazon Web Services account, in the current Amazon Web Services Region, either <code>LONG_ID</code> (17 characters), or <code>SHORT_ID</code> (8 characters).</p> <note>
/// <p>Starting in October, 2021, you will receive an error when setting the account preference to <code>SHORT_ID</code>. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.</p>
/// </note>
pub fn set_resource_id_type(
mut self,
input: std::option::Option<crate::types::ResourceIdType>,
) -> Self {
self.resource_id_type = input;
self
}
/// Consumes the builder and constructs a [`PutAccountPreferencesInput`](crate::operation::put_account_preferences::PutAccountPreferencesInput).
pub fn build(
self,
) -> Result<
crate::operation::put_account_preferences::PutAccountPreferencesInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::put_account_preferences::PutAccountPreferencesInput {
resource_id_type: self.resource_id_type,
},
)
}
}