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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A summary of information about a fleet provision template version.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ProvisioningTemplateVersionSummary {
    /// <p>The ID of the fleet provisioning template version.</p>
    pub version_id: ::std::option::Option<i32>,
    /// <p>The date when the provisioning template version was created</p>
    pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>True if the provisioning template version is the default version, otherwise false.</p>
    pub is_default_version: bool,
}
impl ProvisioningTemplateVersionSummary {
    /// <p>The ID of the fleet provisioning template version.</p>
    pub fn version_id(&self) -> ::std::option::Option<i32> {
        self.version_id
    }
    /// <p>The date when the provisioning template version was created</p>
    pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.creation_date.as_ref()
    }
    /// <p>True if the provisioning template version is the default version, otherwise false.</p>
    pub fn is_default_version(&self) -> bool {
        self.is_default_version
    }
}
impl ProvisioningTemplateVersionSummary {
    /// Creates a new builder-style object to manufacture [`ProvisioningTemplateVersionSummary`](crate::types::ProvisioningTemplateVersionSummary).
    pub fn builder() -> crate::types::builders::ProvisioningTemplateVersionSummaryBuilder {
        crate::types::builders::ProvisioningTemplateVersionSummaryBuilder::default()
    }
}

/// A builder for [`ProvisioningTemplateVersionSummary`](crate::types::ProvisioningTemplateVersionSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ProvisioningTemplateVersionSummaryBuilder {
    pub(crate) version_id: ::std::option::Option<i32>,
    pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) is_default_version: ::std::option::Option<bool>,
}
impl ProvisioningTemplateVersionSummaryBuilder {
    /// <p>The ID of the fleet provisioning template version.</p>
    pub fn version_id(mut self, input: i32) -> Self {
        self.version_id = ::std::option::Option::Some(input);
        self
    }
    /// <p>The ID of the fleet provisioning template version.</p>
    pub fn set_version_id(mut self, input: ::std::option::Option<i32>) -> Self {
        self.version_id = input;
        self
    }
    /// <p>The ID of the fleet provisioning template version.</p>
    pub fn get_version_id(&self) -> &::std::option::Option<i32> {
        &self.version_id
    }
    /// <p>The date when the provisioning template version was created</p>
    pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.creation_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date when the provisioning template version was created</p>
    pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.creation_date = input;
        self
    }
    /// <p>The date when the provisioning template version was created</p>
    pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.creation_date
    }
    /// <p>True if the provisioning template version is the default version, otherwise false.</p>
    pub fn is_default_version(mut self, input: bool) -> Self {
        self.is_default_version = ::std::option::Option::Some(input);
        self
    }
    /// <p>True if the provisioning template version is the default version, otherwise false.</p>
    pub fn set_is_default_version(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_default_version = input;
        self
    }
    /// <p>True if the provisioning template version is the default version, otherwise false.</p>
    pub fn get_is_default_version(&self) -> &::std::option::Option<bool> {
        &self.is_default_version
    }
    /// Consumes the builder and constructs a [`ProvisioningTemplateVersionSummary`](crate::types::ProvisioningTemplateVersionSummary).
    pub fn build(self) -> crate::types::ProvisioningTemplateVersionSummary {
        crate::types::ProvisioningTemplateVersionSummary {
            version_id: self.version_id,
            creation_date: self.creation_date,
            is_default_version: self.is_default_version.unwrap_or_default(),
        }
    }
}