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
// 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 CopyImageInput {
    /// <p>The name of the image to copy.</p>
    #[doc(hidden)]
    pub source_image_name: std::option::Option<std::string::String>,
    /// <p>The name that the image will have when it is copied to the destination.</p>
    #[doc(hidden)]
    pub destination_image_name: std::option::Option<std::string::String>,
    /// <p>The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.</p>
    #[doc(hidden)]
    pub destination_region: std::option::Option<std::string::String>,
    /// <p>The description that the image will have when it is copied to the destination.</p>
    #[doc(hidden)]
    pub destination_image_description: std::option::Option<std::string::String>,
}
impl CopyImageInput {
    /// <p>The name of the image to copy.</p>
    pub fn source_image_name(&self) -> std::option::Option<&str> {
        self.source_image_name.as_deref()
    }
    /// <p>The name that the image will have when it is copied to the destination.</p>
    pub fn destination_image_name(&self) -> std::option::Option<&str> {
        self.destination_image_name.as_deref()
    }
    /// <p>The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.</p>
    pub fn destination_region(&self) -> std::option::Option<&str> {
        self.destination_region.as_deref()
    }
    /// <p>The description that the image will have when it is copied to the destination.</p>
    pub fn destination_image_description(&self) -> std::option::Option<&str> {
        self.destination_image_description.as_deref()
    }
}
impl CopyImageInput {
    /// Creates a new builder-style object to manufacture [`CopyImageInput`](crate::operation::copy_image::CopyImageInput).
    pub fn builder() -> crate::operation::copy_image::builders::CopyImageInputBuilder {
        crate::operation::copy_image::builders::CopyImageInputBuilder::default()
    }
}

/// A builder for [`CopyImageInput`](crate::operation::copy_image::CopyImageInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CopyImageInputBuilder {
    pub(crate) source_image_name: std::option::Option<std::string::String>,
    pub(crate) destination_image_name: std::option::Option<std::string::String>,
    pub(crate) destination_region: std::option::Option<std::string::String>,
    pub(crate) destination_image_description: std::option::Option<std::string::String>,
}
impl CopyImageInputBuilder {
    /// <p>The name of the image to copy.</p>
    pub fn source_image_name(mut self, input: impl Into<std::string::String>) -> Self {
        self.source_image_name = Some(input.into());
        self
    }
    /// <p>The name of the image to copy.</p>
    pub fn set_source_image_name(
        mut self,
        input: std::option::Option<std::string::String>,
    ) -> Self {
        self.source_image_name = input;
        self
    }
    /// <p>The name that the image will have when it is copied to the destination.</p>
    pub fn destination_image_name(mut self, input: impl Into<std::string::String>) -> Self {
        self.destination_image_name = Some(input.into());
        self
    }
    /// <p>The name that the image will have when it is copied to the destination.</p>
    pub fn set_destination_image_name(
        mut self,
        input: std::option::Option<std::string::String>,
    ) -> Self {
        self.destination_image_name = input;
        self
    }
    /// <p>The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.</p>
    pub fn destination_region(mut self, input: impl Into<std::string::String>) -> Self {
        self.destination_region = Some(input.into());
        self
    }
    /// <p>The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.</p>
    pub fn set_destination_region(
        mut self,
        input: std::option::Option<std::string::String>,
    ) -> Self {
        self.destination_region = input;
        self
    }
    /// <p>The description that the image will have when it is copied to the destination.</p>
    pub fn destination_image_description(mut self, input: impl Into<std::string::String>) -> Self {
        self.destination_image_description = Some(input.into());
        self
    }
    /// <p>The description that the image will have when it is copied to the destination.</p>
    pub fn set_destination_image_description(
        mut self,
        input: std::option::Option<std::string::String>,
    ) -> Self {
        self.destination_image_description = input;
        self
    }
    /// Consumes the builder and constructs a [`CopyImageInput`](crate::operation::copy_image::CopyImageInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::copy_image::CopyImageInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::copy_image::CopyImageInput {
            source_image_name: self.source_image_name,
            destination_image_name: self.destination_image_name,
            destination_region: self.destination_region,
            destination_image_description: self.destination_image_description,
        })
    }
}