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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The storage capacity of an on-premises storage system resource (for example, a volume).</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Capacity {
/// <p>The amount of space that's being used in a storage system resource.</p>
pub used: ::std::option::Option<i64>,
/// <p>The total amount of space available in a storage system resource.</p>
pub provisioned: ::std::option::Option<i64>,
/// <p>The amount of space that's being used in a storage system resource without accounting for compression or deduplication.</p>
pub logical_used: ::std::option::Option<i64>,
/// <p>The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).</p>
pub cluster_cloud_storage_used: ::std::option::Option<i64>,
}
impl Capacity {
/// <p>The amount of space that's being used in a storage system resource.</p>
pub fn used(&self) -> ::std::option::Option<i64> {
self.used
}
/// <p>The total amount of space available in a storage system resource.</p>
pub fn provisioned(&self) -> ::std::option::Option<i64> {
self.provisioned
}
/// <p>The amount of space that's being used in a storage system resource without accounting for compression or deduplication.</p>
pub fn logical_used(&self) -> ::std::option::Option<i64> {
self.logical_used
}
/// <p>The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).</p>
pub fn cluster_cloud_storage_used(&self) -> ::std::option::Option<i64> {
self.cluster_cloud_storage_used
}
}
impl Capacity {
/// Creates a new builder-style object to manufacture [`Capacity`](crate::types::Capacity).
pub fn builder() -> crate::types::builders::CapacityBuilder {
crate::types::builders::CapacityBuilder::default()
}
}
/// A builder for [`Capacity`](crate::types::Capacity).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CapacityBuilder {
pub(crate) used: ::std::option::Option<i64>,
pub(crate) provisioned: ::std::option::Option<i64>,
pub(crate) logical_used: ::std::option::Option<i64>,
pub(crate) cluster_cloud_storage_used: ::std::option::Option<i64>,
}
impl CapacityBuilder {
/// <p>The amount of space that's being used in a storage system resource.</p>
pub fn used(mut self, input: i64) -> Self {
self.used = ::std::option::Option::Some(input);
self
}
/// <p>The amount of space that's being used in a storage system resource.</p>
pub fn set_used(mut self, input: ::std::option::Option<i64>) -> Self {
self.used = input;
self
}
/// <p>The amount of space that's being used in a storage system resource.</p>
pub fn get_used(&self) -> &::std::option::Option<i64> {
&self.used
}
/// <p>The total amount of space available in a storage system resource.</p>
pub fn provisioned(mut self, input: i64) -> Self {
self.provisioned = ::std::option::Option::Some(input);
self
}
/// <p>The total amount of space available in a storage system resource.</p>
pub fn set_provisioned(mut self, input: ::std::option::Option<i64>) -> Self {
self.provisioned = input;
self
}
/// <p>The total amount of space available in a storage system resource.</p>
pub fn get_provisioned(&self) -> &::std::option::Option<i64> {
&self.provisioned
}
/// <p>The amount of space that's being used in a storage system resource without accounting for compression or deduplication.</p>
pub fn logical_used(mut self, input: i64) -> Self {
self.logical_used = ::std::option::Option::Some(input);
self
}
/// <p>The amount of space that's being used in a storage system resource without accounting for compression or deduplication.</p>
pub fn set_logical_used(mut self, input: ::std::option::Option<i64>) -> Self {
self.logical_used = input;
self
}
/// <p>The amount of space that's being used in a storage system resource without accounting for compression or deduplication.</p>
pub fn get_logical_used(&self) -> &::std::option::Option<i64> {
&self.logical_used
}
/// <p>The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).</p>
pub fn cluster_cloud_storage_used(mut self, input: i64) -> Self {
self.cluster_cloud_storage_used = ::std::option::Option::Some(input);
self
}
/// <p>The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).</p>
pub fn set_cluster_cloud_storage_used(mut self, input: ::std::option::Option<i64>) -> Self {
self.cluster_cloud_storage_used = input;
self
}
/// <p>The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).</p>
pub fn get_cluster_cloud_storage_used(&self) -> &::std::option::Option<i64> {
&self.cluster_cloud_storage_used
}
/// Consumes the builder and constructs a [`Capacity`](crate::types::Capacity).
pub fn build(self) -> crate::types::Capacity {
crate::types::Capacity {
used: self.used,
provisioned: self.provisioned,
logical_used: self.logical_used,
cluster_cloud_storage_used: self.cluster_cloud_storage_used,
}
}
}