-
Notifications
You must be signed in to change notification settings - Fork 244
/
_ebs_savings_estimation_mode.rs
51 lines (48 loc) · 2.49 KB
/
_ebs_savings_estimation_mode.rs
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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes the savings estimation mode used for calculating savings opportunity for Amazon EBS volumes.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EbsSavingsEstimationMode {
/// <p>Describes the source for calculating the savings opportunity for Amazon EBS volumes.</p>
pub source: ::std::option::Option<crate::types::EbsSavingsEstimationModeSource>,
}
impl EbsSavingsEstimationMode {
/// <p>Describes the source for calculating the savings opportunity for Amazon EBS volumes.</p>
pub fn source(&self) -> ::std::option::Option<& crate::types::EbsSavingsEstimationModeSource> {
self.source.as_ref()
}
}
impl EbsSavingsEstimationMode {
/// Creates a new builder-style object to manufacture [`EbsSavingsEstimationMode`](crate::types::EbsSavingsEstimationMode).
pub fn builder() -> crate::types::builders::EbsSavingsEstimationModeBuilder {
crate::types::builders::EbsSavingsEstimationModeBuilder::default()
}
}
/// A builder for [`EbsSavingsEstimationMode`](crate::types::EbsSavingsEstimationMode).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct EbsSavingsEstimationModeBuilder {
pub(crate) source: ::std::option::Option<crate::types::EbsSavingsEstimationModeSource>,
}
impl EbsSavingsEstimationModeBuilder {
/// <p>Describes the source for calculating the savings opportunity for Amazon EBS volumes.</p>
pub fn source(mut self, input: crate::types::EbsSavingsEstimationModeSource) -> Self {
self.source = ::std::option::Option::Some(input);
self
}
/// <p>Describes the source for calculating the savings opportunity for Amazon EBS volumes.</p>
pub fn set_source(mut self, input: ::std::option::Option<crate::types::EbsSavingsEstimationModeSource>) -> Self {
self.source = input; self
}
/// <p>Describes the source for calculating the savings opportunity for Amazon EBS volumes.</p>
pub fn get_source(&self) -> &::std::option::Option<crate::types::EbsSavingsEstimationModeSource> {
&self.source
}
/// Consumes the builder and constructs a [`EbsSavingsEstimationMode`](crate::types::EbsSavingsEstimationMode).
pub fn build(self) -> crate::types::EbsSavingsEstimationMode {
crate::types::EbsSavingsEstimationMode {
source: self.source
,
}
}
}