aws_sdk_devicefarm/operation/renew_offering/
_renew_offering_output.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RenewOfferingOutput {
pub offering_transaction: ::std::option::Option<crate::types::OfferingTransaction>,
_request_id: Option<String>,
}
impl RenewOfferingOutput {
pub fn offering_transaction(&self) -> ::std::option::Option<&crate::types::OfferingTransaction> {
self.offering_transaction.as_ref()
}
}
impl ::aws_types::request_id::RequestId for RenewOfferingOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl RenewOfferingOutput {
pub fn builder() -> crate::operation::renew_offering::builders::RenewOfferingOutputBuilder {
crate::operation::renew_offering::builders::RenewOfferingOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RenewOfferingOutputBuilder {
pub(crate) offering_transaction: ::std::option::Option<crate::types::OfferingTransaction>,
_request_id: Option<String>,
}
impl RenewOfferingOutputBuilder {
pub fn offering_transaction(mut self, input: crate::types::OfferingTransaction) -> Self {
self.offering_transaction = ::std::option::Option::Some(input);
self
}
pub fn set_offering_transaction(mut self, input: ::std::option::Option<crate::types::OfferingTransaction>) -> Self {
self.offering_transaction = input;
self
}
pub fn get_offering_transaction(&self) -> &::std::option::Option<crate::types::OfferingTransaction> {
&self.offering_transaction
}
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::renew_offering::RenewOfferingOutput {
crate::operation::renew_offering::RenewOfferingOutput {
offering_transaction: self.offering_transaction,
_request_id: self._request_id,
}
}
}