#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetSatelliteOutput {
#[doc(hidden)]
pub satellite_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub satellite_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub norad_satellite_id: i32,
#[doc(hidden)]
pub ground_stations: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub current_ephemeris: std::option::Option<crate::types::EphemerisMetaData>,
_request_id: Option<String>,
}
impl GetSatelliteOutput {
pub fn satellite_id(&self) -> std::option::Option<&str> {
self.satellite_id.as_deref()
}
pub fn satellite_arn(&self) -> std::option::Option<&str> {
self.satellite_arn.as_deref()
}
pub fn norad_satellite_id(&self) -> i32 {
self.norad_satellite_id
}
pub fn ground_stations(&self) -> std::option::Option<&[std::string::String]> {
self.ground_stations.as_deref()
}
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 {
pub fn builder() -> crate::operation::get_satellite::builders::GetSatelliteOutputBuilder {
crate::operation::get_satellite::builders::GetSatelliteOutputBuilder::default()
}
}
#[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 {
pub fn satellite_id(mut self, input: impl Into<std::string::String>) -> Self {
self.satellite_id = Some(input.into());
self
}
pub fn set_satellite_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.satellite_id = input;
self
}
pub fn satellite_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.satellite_arn = Some(input.into());
self
}
pub fn set_satellite_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.satellite_arn = input;
self
}
pub fn norad_satellite_id(mut self, input: i32) -> Self {
self.norad_satellite_id = Some(input);
self
}
pub fn set_norad_satellite_id(mut self, input: std::option::Option<i32>) -> Self {
self.norad_satellite_id = input;
self
}
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
}
pub fn set_ground_stations(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.ground_stations = input;
self
}
pub fn current_ephemeris(mut self, input: crate::types::EphemerisMetaData) -> Self {
self.current_ephemeris = Some(input);
self
}
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
}
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,
}
}
}