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 StartConnectionInput {
    /// <p>The serial number of the dongle.</p>
    pub device_serial_number: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the Outpost server.</p>
    pub asset_id: ::std::option::Option<::std::string::String>,
    /// <p>The public key of the client.</p>
    pub client_public_key: ::std::option::Option<::std::string::String>,
    /// <p>The device index of the network interface on the Outpost server.</p>
    pub network_interface_device_index: ::std::option::Option<i32>,
}
impl StartConnectionInput {
    /// <p>The serial number of the dongle.</p>
    pub fn device_serial_number(&self) -> ::std::option::Option<&str> {
        self.device_serial_number.as_deref()
    }
    /// <p>The ID of the Outpost server.</p>
    pub fn asset_id(&self) -> ::std::option::Option<&str> {
        self.asset_id.as_deref()
    }
    /// <p>The public key of the client.</p>
    pub fn client_public_key(&self) -> ::std::option::Option<&str> {
        self.client_public_key.as_deref()
    }
    /// <p>The device index of the network interface on the Outpost server.</p>
    pub fn network_interface_device_index(&self) -> ::std::option::Option<i32> {
        self.network_interface_device_index
    }
}
impl StartConnectionInput {
    /// Creates a new builder-style object to manufacture [`StartConnectionInput`](crate::operation::start_connection::StartConnectionInput).
    pub fn builder() -> crate::operation::start_connection::builders::StartConnectionInputBuilder {
        crate::operation::start_connection::builders::StartConnectionInputBuilder::default()
    }
}

/// A builder for [`StartConnectionInput`](crate::operation::start_connection::StartConnectionInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StartConnectionInputBuilder {
    pub(crate) device_serial_number: ::std::option::Option<::std::string::String>,
    pub(crate) asset_id: ::std::option::Option<::std::string::String>,
    pub(crate) client_public_key: ::std::option::Option<::std::string::String>,
    pub(crate) network_interface_device_index: ::std::option::Option<i32>,
}
impl StartConnectionInputBuilder {
    /// <p>The serial number of the dongle.</p>
    pub fn device_serial_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.device_serial_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The serial number of the dongle.</p>
    pub fn set_device_serial_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.device_serial_number = input;
        self
    }
    /// <p>The serial number of the dongle.</p>
    pub fn get_device_serial_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.device_serial_number
    }
    /// <p>The ID of the Outpost server.</p>
    /// This field is required.
    pub fn asset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.asset_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Outpost server.</p>
    pub fn set_asset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.asset_id = input;
        self
    }
    /// <p>The ID of the Outpost server.</p>
    pub fn get_asset_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.asset_id
    }
    /// <p>The public key of the client.</p>
    /// This field is required.
    pub fn client_public_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_public_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The public key of the client.</p>
    pub fn set_client_public_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_public_key = input;
        self
    }
    /// <p>The public key of the client.</p>
    pub fn get_client_public_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_public_key
    }
    /// <p>The device index of the network interface on the Outpost server.</p>
    /// This field is required.
    pub fn network_interface_device_index(mut self, input: i32) -> Self {
        self.network_interface_device_index = ::std::option::Option::Some(input);
        self
    }
    /// <p>The device index of the network interface on the Outpost server.</p>
    pub fn set_network_interface_device_index(mut self, input: ::std::option::Option<i32>) -> Self {
        self.network_interface_device_index = input;
        self
    }
    /// <p>The device index of the network interface on the Outpost server.</p>
    pub fn get_network_interface_device_index(&self) -> &::std::option::Option<i32> {
        &self.network_interface_device_index
    }
    /// Consumes the builder and constructs a [`StartConnectionInput`](crate::operation::start_connection::StartConnectionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::start_connection::StartConnectionInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::start_connection::StartConnectionInput {
            device_serial_number: self.device_serial_number,
            asset_id: self.asset_id,
            client_public_key: self.client_public_key,
            network_interface_device_index: self.network_interface_device_index,
        })
    }
}