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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes the destination file system in the replication configuration.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Destination {
/// <p>Describes the status of the destination Amazon EFS file system. If the status is <code>ERROR</code>, the destination file system in the replication configuration is in a failed state and is unrecoverable. To access the file system data, restore a backup of the failed file system to a new file system.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::types::ReplicationStatus>,
/// <p>The ID of the destination Amazon EFS file system.</p>
#[doc(hidden)]
pub file_system_id: std::option::Option<std::string::String>,
/// <p>The Amazon Web Services Region in which the destination file system is located.</p>
#[doc(hidden)]
pub region: std::option::Option<std::string::String>,
/// <p>The time when the most recent sync was successfully completed on the destination file system. Any changes to data on the source file system that occurred before this time have been successfully replicated to the destination file system. Any changes that occurred after this time might not be fully replicated.</p>
#[doc(hidden)]
pub last_replicated_timestamp: std::option::Option<aws_smithy_types::DateTime>,
}
impl Destination {
/// <p>Describes the status of the destination Amazon EFS file system. If the status is <code>ERROR</code>, the destination file system in the replication configuration is in a failed state and is unrecoverable. To access the file system data, restore a backup of the failed file system to a new file system.</p>
pub fn status(&self) -> std::option::Option<&crate::types::ReplicationStatus> {
self.status.as_ref()
}
/// <p>The ID of the destination Amazon EFS file system.</p>
pub fn file_system_id(&self) -> std::option::Option<&str> {
self.file_system_id.as_deref()
}
/// <p>The Amazon Web Services Region in which the destination file system is located.</p>
pub fn region(&self) -> std::option::Option<&str> {
self.region.as_deref()
}
/// <p>The time when the most recent sync was successfully completed on the destination file system. Any changes to data on the source file system that occurred before this time have been successfully replicated to the destination file system. Any changes that occurred after this time might not be fully replicated.</p>
pub fn last_replicated_timestamp(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_replicated_timestamp.as_ref()
}
}
impl Destination {
/// Creates a new builder-style object to manufacture [`Destination`](crate::types::Destination).
pub fn builder() -> crate::types::builders::DestinationBuilder {
crate::types::builders::DestinationBuilder::default()
}
}
/// A builder for [`Destination`](crate::types::Destination).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DestinationBuilder {
pub(crate) status: std::option::Option<crate::types::ReplicationStatus>,
pub(crate) file_system_id: std::option::Option<std::string::String>,
pub(crate) region: std::option::Option<std::string::String>,
pub(crate) last_replicated_timestamp: std::option::Option<aws_smithy_types::DateTime>,
}
impl DestinationBuilder {
/// <p>Describes the status of the destination Amazon EFS file system. If the status is <code>ERROR</code>, the destination file system in the replication configuration is in a failed state and is unrecoverable. To access the file system data, restore a backup of the failed file system to a new file system.</p>
pub fn status(mut self, input: crate::types::ReplicationStatus) -> Self {
self.status = Some(input);
self
}
/// <p>Describes the status of the destination Amazon EFS file system. If the status is <code>ERROR</code>, the destination file system in the replication configuration is in a failed state and is unrecoverable. To access the file system data, restore a backup of the failed file system to a new file system.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::types::ReplicationStatus>,
) -> Self {
self.status = input;
self
}
/// <p>The ID of the destination Amazon EFS file system.</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 destination Amazon EFS file system.</p>
pub fn set_file_system_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.file_system_id = input;
self
}
/// <p>The Amazon Web Services Region in which the destination file system is located.</p>
pub fn region(mut self, input: impl Into<std::string::String>) -> Self {
self.region = Some(input.into());
self
}
/// <p>The Amazon Web Services Region in which the destination file system is located.</p>
pub fn set_region(mut self, input: std::option::Option<std::string::String>) -> Self {
self.region = input;
self
}
/// <p>The time when the most recent sync was successfully completed on the destination file system. Any changes to data on the source file system that occurred before this time have been successfully replicated to the destination file system. Any changes that occurred after this time might not be fully replicated.</p>
pub fn last_replicated_timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_replicated_timestamp = Some(input);
self
}
/// <p>The time when the most recent sync was successfully completed on the destination file system. Any changes to data on the source file system that occurred before this time have been successfully replicated to the destination file system. Any changes that occurred after this time might not be fully replicated.</p>
pub fn set_last_replicated_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_replicated_timestamp = input;
self
}
/// Consumes the builder and constructs a [`Destination`](crate::types::Destination).
pub fn build(self) -> crate::types::Destination {
crate::types::Destination {
status: self.status,
file_system_id: self.file_system_id,
region: self.region,
last_replicated_timestamp: self.last_replicated_timestamp,
}
}
}