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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p></p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetSatelliteOutput {
    /// <p>UUID of a satellite.</p>
    #[doc(hidden)]
    pub satellite_id: std::option::Option<std::string::String>,
    /// <p>ARN of a satellite.</p>
    #[doc(hidden)]
    pub satellite_arn: std::option::Option<std::string::String>,
    /// <p>NORAD satellite ID number.</p>
    #[doc(hidden)]
    pub norad_satellite_id: i32,
    /// <p>A list of ground stations to which the satellite is on-boarded.</p>
    #[doc(hidden)]
    pub ground_stations: std::option::Option<std::vec::Vec<std::string::String>>,
    /// <p>The current ephemeris being used to compute the trajectory of the satellite.</p>
    #[doc(hidden)]
    pub current_ephemeris: std::option::Option<crate::types::EphemerisMetaData>,
    _request_id: Option<String>,
}
impl GetSatelliteOutput {
    /// <p>UUID of a satellite.</p>
    pub fn satellite_id(&self) -> std::option::Option<&str> {
        self.satellite_id.as_deref()
    }
    /// <p>ARN of a satellite.</p>
    pub fn satellite_arn(&self) -> std::option::Option<&str> {
        self.satellite_arn.as_deref()
    }
    /// <p>NORAD satellite ID number.</p>
    pub fn norad_satellite_id(&self) -> i32 {
        self.norad_satellite_id
    }
    /// <p>A list of ground stations to which the satellite is on-boarded.</p>
    pub fn ground_stations(&self) -> std::option::Option<&[std::string::String]> {
        self.ground_stations.as_deref()
    }
    /// <p>The current ephemeris being used to compute the trajectory of the satellite.</p>
    pub fn current_ephemeris(&self) -> std::option::Option<&crate::types::EphemerisMetaData> {
        self.current_ephemeris.as_ref()
    }
}
impl aws_http::request_id::RequestId for GetSatelliteOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetSatelliteOutput {
    /// Creates a new builder-style object to manufacture [`GetSatelliteOutput`](crate::operation::get_satellite::GetSatelliteOutput).
    pub fn builder() -> crate::operation::get_satellite::builders::GetSatelliteOutputBuilder {
        crate::operation::get_satellite::builders::GetSatelliteOutputBuilder::default()
    }
}

/// A builder for [`GetSatelliteOutput`](crate::operation::get_satellite::GetSatelliteOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetSatelliteOutputBuilder {
    pub(crate) satellite_id: std::option::Option<std::string::String>,
    pub(crate) satellite_arn: std::option::Option<std::string::String>,
    pub(crate) norad_satellite_id: std::option::Option<i32>,
    pub(crate) ground_stations: std::option::Option<std::vec::Vec<std::string::String>>,
    pub(crate) current_ephemeris: std::option::Option<crate::types::EphemerisMetaData>,
    _request_id: Option<String>,
}
impl GetSatelliteOutputBuilder {
    /// <p>UUID of a satellite.</p>
    pub fn satellite_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.satellite_id = Some(input.into());
        self
    }
    /// <p>UUID of a satellite.</p>
    pub fn set_satellite_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.satellite_id = input;
        self
    }
    /// <p>ARN of a satellite.</p>
    pub fn satellite_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.satellite_arn = Some(input.into());
        self
    }
    /// <p>ARN of a satellite.</p>
    pub fn set_satellite_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.satellite_arn = input;
        self
    }
    /// <p>NORAD satellite ID number.</p>
    pub fn norad_satellite_id(mut self, input: i32) -> Self {
        self.norad_satellite_id = Some(input);
        self
    }
    /// <p>NORAD satellite ID number.</p>
    pub fn set_norad_satellite_id(mut self, input: std::option::Option<i32>) -> Self {
        self.norad_satellite_id = input;
        self
    }
    /// Appends an item to `ground_stations`.
    ///
    /// To override the contents of this collection use [`set_ground_stations`](Self::set_ground_stations).
    ///
    /// <p>A list of ground stations to which the satellite is on-boarded.</p>
    pub fn ground_stations(mut self, input: impl Into<std::string::String>) -> Self {
        let mut v = self.ground_stations.unwrap_or_default();
        v.push(input.into());
        self.ground_stations = Some(v);
        self
    }
    /// <p>A list of ground stations to which the satellite is on-boarded.</p>
    pub fn set_ground_stations(
        mut self,
        input: std::option::Option<std::vec::Vec<std::string::String>>,
    ) -> Self {
        self.ground_stations = input;
        self
    }
    /// <p>The current ephemeris being used to compute the trajectory of the satellite.</p>
    pub fn current_ephemeris(mut self, input: crate::types::EphemerisMetaData) -> Self {
        self.current_ephemeris = Some(input);
        self
    }
    /// <p>The current ephemeris being used to compute the trajectory of the satellite.</p>
    pub fn set_current_ephemeris(
        mut self,
        input: std::option::Option<crate::types::EphemerisMetaData>,
    ) -> Self {
        self.current_ephemeris = input;
        self
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetSatelliteOutput`](crate::operation::get_satellite::GetSatelliteOutput).
    pub fn build(self) -> crate::operation::get_satellite::GetSatelliteOutput {
        crate::operation::get_satellite::GetSatelliteOutput {
            satellite_id: self.satellite_id,
            satellite_arn: self.satellite_arn,
            norad_satellite_id: self.norad_satellite_id.unwrap_or_default(),
            ground_stations: self.ground_stations,
            current_ephemeris: self.current_ephemeris,
            _request_id: self._request_id,
        }
    }
}