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
145
// 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 UpdateLocationNfsInput {
/// <p>Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.</p>
pub location_arn: ::std::option::Option<::std::string::String>,
/// <p>Specifies the export path in your NFS file server that you want DataSync to mount.</p>
/// <p>This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs">Accessing NFS file servers</a>.</p>
pub subdirectory: ::std::option::Option<::std::string::String>,
/// <p>Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.</p>
pub server_hostname: ::std::option::Option<::std::string::String>,
/// <p>The DataSync agents that can connect to your Network File System (NFS) file server.</p>
pub on_prem_config: ::std::option::Option<crate::types::OnPremConfig>,
/// <p>Specifies how DataSync can access a location using the NFS protocol.</p>
pub mount_options: ::std::option::Option<crate::types::NfsMountOptions>,
}
impl UpdateLocationNfsInput {
/// <p>Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.</p>
pub fn location_arn(&self) -> ::std::option::Option<&str> {
self.location_arn.as_deref()
}
/// <p>Specifies the export path in your NFS file server that you want DataSync to mount.</p>
/// <p>This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs">Accessing NFS file servers</a>.</p>
pub fn subdirectory(&self) -> ::std::option::Option<&str> {
self.subdirectory.as_deref()
}
/// <p>Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.</p>
pub fn server_hostname(&self) -> ::std::option::Option<&str> {
self.server_hostname.as_deref()
}
/// <p>The DataSync agents that can connect to your Network File System (NFS) file server.</p>
pub fn on_prem_config(&self) -> ::std::option::Option<&crate::types::OnPremConfig> {
self.on_prem_config.as_ref()
}
/// <p>Specifies how DataSync can access a location using the NFS protocol.</p>
pub fn mount_options(&self) -> ::std::option::Option<&crate::types::NfsMountOptions> {
self.mount_options.as_ref()
}
}
impl UpdateLocationNfsInput {
/// Creates a new builder-style object to manufacture [`UpdateLocationNfsInput`](crate::operation::update_location_nfs::UpdateLocationNfsInput).
pub fn builder() -> crate::operation::update_location_nfs::builders::UpdateLocationNfsInputBuilder {
crate::operation::update_location_nfs::builders::UpdateLocationNfsInputBuilder::default()
}
}
/// A builder for [`UpdateLocationNfsInput`](crate::operation::update_location_nfs::UpdateLocationNfsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateLocationNfsInputBuilder {
pub(crate) location_arn: ::std::option::Option<::std::string::String>,
pub(crate) subdirectory: ::std::option::Option<::std::string::String>,
pub(crate) server_hostname: ::std::option::Option<::std::string::String>,
pub(crate) on_prem_config: ::std::option::Option<crate::types::OnPremConfig>,
pub(crate) mount_options: ::std::option::Option<crate::types::NfsMountOptions>,
}
impl UpdateLocationNfsInputBuilder {
/// <p>Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.</p>
/// This field is required.
pub fn location_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.location_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.</p>
pub fn set_location_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.location_arn = input;
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.</p>
pub fn get_location_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.location_arn
}
/// <p>Specifies the export path in your NFS file server that you want DataSync to mount.</p>
/// <p>This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs">Accessing NFS file servers</a>.</p>
pub fn subdirectory(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.subdirectory = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the export path in your NFS file server that you want DataSync to mount.</p>
/// <p>This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs">Accessing NFS file servers</a>.</p>
pub fn set_subdirectory(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.subdirectory = input;
self
}
/// <p>Specifies the export path in your NFS file server that you want DataSync to mount.</p>
/// <p>This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs">Accessing NFS file servers</a>.</p>
pub fn get_subdirectory(&self) -> &::std::option::Option<::std::string::String> {
&self.subdirectory
}
/// <p>Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.</p>
pub fn server_hostname(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.server_hostname = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.</p>
pub fn set_server_hostname(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.server_hostname = input;
self
}
/// <p>Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.</p>
pub fn get_server_hostname(&self) -> &::std::option::Option<::std::string::String> {
&self.server_hostname
}
/// <p>The DataSync agents that can connect to your Network File System (NFS) file server.</p>
pub fn on_prem_config(mut self, input: crate::types::OnPremConfig) -> Self {
self.on_prem_config = ::std::option::Option::Some(input);
self
}
/// <p>The DataSync agents that can connect to your Network File System (NFS) file server.</p>
pub fn set_on_prem_config(mut self, input: ::std::option::Option<crate::types::OnPremConfig>) -> Self {
self.on_prem_config = input;
self
}
/// <p>The DataSync agents that can connect to your Network File System (NFS) file server.</p>
pub fn get_on_prem_config(&self) -> &::std::option::Option<crate::types::OnPremConfig> {
&self.on_prem_config
}
/// <p>Specifies how DataSync can access a location using the NFS protocol.</p>
pub fn mount_options(mut self, input: crate::types::NfsMountOptions) -> Self {
self.mount_options = ::std::option::Option::Some(input);
self
}
/// <p>Specifies how DataSync can access a location using the NFS protocol.</p>
pub fn set_mount_options(mut self, input: ::std::option::Option<crate::types::NfsMountOptions>) -> Self {
self.mount_options = input;
self
}
/// <p>Specifies how DataSync can access a location using the NFS protocol.</p>
pub fn get_mount_options(&self) -> &::std::option::Option<crate::types::NfsMountOptions> {
&self.mount_options
}
/// Consumes the builder and constructs a [`UpdateLocationNfsInput`](crate::operation::update_location_nfs::UpdateLocationNfsInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_location_nfs::UpdateLocationNfsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_location_nfs::UpdateLocationNfsInput {
location_arn: self.location_arn,
subdirectory: self.subdirectory,
server_hostname: self.server_hostname,
on_prem_config: self.on_prem_config,
mount_options: self.mount_options,
})
}
}