#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CancelServiceSoftwareUpdateOutput {
pub service_software_options: ::std::option::Option<crate::types::ServiceSoftwareOptions>,
_request_id: Option<String>,
}
impl CancelServiceSoftwareUpdateOutput {
pub fn service_software_options(&self) -> ::std::option::Option<&crate::types::ServiceSoftwareOptions> {
self.service_software_options.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CancelServiceSoftwareUpdateOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CancelServiceSoftwareUpdateOutput {
pub fn builder() -> crate::operation::cancel_service_software_update::builders::CancelServiceSoftwareUpdateOutputBuilder {
crate::operation::cancel_service_software_update::builders::CancelServiceSoftwareUpdateOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CancelServiceSoftwareUpdateOutputBuilder {
pub(crate) service_software_options: ::std::option::Option<crate::types::ServiceSoftwareOptions>,
_request_id: Option<String>,
}
impl CancelServiceSoftwareUpdateOutputBuilder {
pub fn service_software_options(mut self, input: crate::types::ServiceSoftwareOptions) -> Self {
self.service_software_options = ::std::option::Option::Some(input);
self
}
pub fn set_service_software_options(mut self, input: ::std::option::Option<crate::types::ServiceSoftwareOptions>) -> Self {
self.service_software_options = input;
self
}
pub fn get_service_software_options(&self) -> &::std::option::Option<crate::types::ServiceSoftwareOptions> {
&self.service_software_options
}
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::cancel_service_software_update::CancelServiceSoftwareUpdateOutput {
crate::operation::cancel_service_software_update::CancelServiceSoftwareUpdateOutput {
service_software_options: self.service_software_options,
_request_id: self._request_id,
}
}
}