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
// 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 UpdateFileSystemInput {
/// <p>The ID of the file system that you want to update.</p>
#[doc(hidden)]
pub file_system_id: std::option::Option<std::string::String>,
/// <p>(Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need to provide this value in your request. If you are changing the <code>ThroughputMode</code> to <code>provisioned</code>, you must also set a value for <code>ProvisionedThroughputInMibps</code>.</p>
#[doc(hidden)]
pub throughput_mode: std::option::Option<crate::types::ThroughputMode>,
/// <p>(Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. Required if <code>ThroughputMode</code> is changed to <code>provisioned</code> on update.</p>
#[doc(hidden)]
pub provisioned_throughput_in_mibps: std::option::Option<f64>,
}
impl UpdateFileSystemInput {
/// <p>The ID of the file system that you want to update.</p>
pub fn file_system_id(&self) -> std::option::Option<&str> {
self.file_system_id.as_deref()
}
/// <p>(Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need to provide this value in your request. If you are changing the <code>ThroughputMode</code> to <code>provisioned</code>, you must also set a value for <code>ProvisionedThroughputInMibps</code>.</p>
pub fn throughput_mode(&self) -> std::option::Option<&crate::types::ThroughputMode> {
self.throughput_mode.as_ref()
}
/// <p>(Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. Required if <code>ThroughputMode</code> is changed to <code>provisioned</code> on update.</p>
pub fn provisioned_throughput_in_mibps(&self) -> std::option::Option<f64> {
self.provisioned_throughput_in_mibps
}
}
impl UpdateFileSystemInput {
/// Creates a new builder-style object to manufacture [`UpdateFileSystemInput`](crate::operation::update_file_system::UpdateFileSystemInput).
pub fn builder() -> crate::operation::update_file_system::builders::UpdateFileSystemInputBuilder
{
crate::operation::update_file_system::builders::UpdateFileSystemInputBuilder::default()
}
}
/// A builder for [`UpdateFileSystemInput`](crate::operation::update_file_system::UpdateFileSystemInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateFileSystemInputBuilder {
pub(crate) file_system_id: std::option::Option<std::string::String>,
pub(crate) throughput_mode: std::option::Option<crate::types::ThroughputMode>,
pub(crate) provisioned_throughput_in_mibps: std::option::Option<f64>,
}
impl UpdateFileSystemInputBuilder {
/// <p>The ID of the file system that you want to update.</p>
pub fn file_system_id(mut self, input: impl Into<std::string::String>) -> Self {
self.file_system_id = Some(input.into());
self
}
/// <p>The ID of the file system that you want to update.</p>
pub fn set_file_system_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.file_system_id = input;
self
}
/// <p>(Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need to provide this value in your request. If you are changing the <code>ThroughputMode</code> to <code>provisioned</code>, you must also set a value for <code>ProvisionedThroughputInMibps</code>.</p>
pub fn throughput_mode(mut self, input: crate::types::ThroughputMode) -> Self {
self.throughput_mode = Some(input);
self
}
/// <p>(Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need to provide this value in your request. If you are changing the <code>ThroughputMode</code> to <code>provisioned</code>, you must also set a value for <code>ProvisionedThroughputInMibps</code>.</p>
pub fn set_throughput_mode(
mut self,
input: std::option::Option<crate::types::ThroughputMode>,
) -> Self {
self.throughput_mode = input;
self
}
/// <p>(Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. Required if <code>ThroughputMode</code> is changed to <code>provisioned</code> on update.</p>
pub fn provisioned_throughput_in_mibps(mut self, input: f64) -> Self {
self.provisioned_throughput_in_mibps = Some(input);
self
}
/// <p>(Optional) Sets the amount of provisioned throughput, in MiB/s, for the file system. Valid values are 1-1024. If you are changing the throughput mode to provisioned, you must also provide the amount of provisioned throughput. Required if <code>ThroughputMode</code> is changed to <code>provisioned</code> on update.</p>
pub fn set_provisioned_throughput_in_mibps(mut self, input: std::option::Option<f64>) -> Self {
self.provisioned_throughput_in_mibps = input;
self
}
/// Consumes the builder and constructs a [`UpdateFileSystemInput`](crate::operation::update_file_system::UpdateFileSystemInput).
pub fn build(
self,
) -> Result<
crate::operation::update_file_system::UpdateFileSystemInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::update_file_system::UpdateFileSystemInput {
file_system_id: self.file_system_id,
throughput_mode: self.throughput_mode,
provisioned_throughput_in_mibps: self.provisioned_throughput_in_mibps,
},
)
}
}