aws_sdk_devicefarm/operation/purchase_offering/
_purchase_offering_output.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PurchaseOfferingOutput {
pub offering_transaction: ::std::option::Option<crate::types::OfferingTransaction>,
_request_id: Option<String>,
}
impl PurchaseOfferingOutput {
pub fn offering_transaction(&self) -> ::std::option::Option<&crate::types::OfferingTransaction> {
self.offering_transaction.as_ref()
}
}
impl ::aws_types::request_id::RequestId for PurchaseOfferingOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl PurchaseOfferingOutput {
pub fn builder() -> crate::operation::purchase_offering::builders::PurchaseOfferingOutputBuilder {
crate::operation::purchase_offering::builders::PurchaseOfferingOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PurchaseOfferingOutputBuilder {
pub(crate) offering_transaction: ::std::option::Option<crate::types::OfferingTransaction>,
_request_id: Option<String>,
}
impl PurchaseOfferingOutputBuilder {
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::purchase_offering::PurchaseOfferingOutput {
crate::operation::purchase_offering::PurchaseOfferingOutput {
offering_transaction: self.offering_transaction,
_request_id: self._request_id,
}
}
}