#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateAccessorOutput {
pub accessor_id: ::std::option::Option<::std::string::String>,
pub billing_token: ::std::option::Option<::std::string::String>,
pub network_type: ::std::option::Option<crate::types::AccessorNetworkType>,
_request_id: Option<String>,
}
impl CreateAccessorOutput {
pub fn accessor_id(&self) -> ::std::option::Option<&str> {
self.accessor_id.as_deref()
}
pub fn billing_token(&self) -> ::std::option::Option<&str> {
self.billing_token.as_deref()
}
pub fn network_type(&self) -> ::std::option::Option<&crate::types::AccessorNetworkType> {
self.network_type.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateAccessorOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateAccessorOutput {
pub fn builder() -> crate::operation::create_accessor::builders::CreateAccessorOutputBuilder {
crate::operation::create_accessor::builders::CreateAccessorOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateAccessorOutputBuilder {
pub(crate) accessor_id: ::std::option::Option<::std::string::String>,
pub(crate) billing_token: ::std::option::Option<::std::string::String>,
pub(crate) network_type: ::std::option::Option<crate::types::AccessorNetworkType>,
_request_id: Option<String>,
}
impl CreateAccessorOutputBuilder {
pub fn accessor_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.accessor_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_accessor_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.accessor_id = input;
self
}
pub fn get_accessor_id(&self) -> &::std::option::Option<::std::string::String> {
&self.accessor_id
}
pub fn billing_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.billing_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_billing_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.billing_token = input;
self
}
pub fn get_billing_token(&self) -> &::std::option::Option<::std::string::String> {
&self.billing_token
}
pub fn network_type(mut self, input: crate::types::AccessorNetworkType) -> Self {
self.network_type = ::std::option::Option::Some(input);
self
}
pub fn set_network_type(mut self, input: ::std::option::Option<crate::types::AccessorNetworkType>) -> Self {
self.network_type = input;
self
}
pub fn get_network_type(&self) -> &::std::option::Option<crate::types::AccessorNetworkType> {
&self.network_type
}
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::create_accessor::CreateAccessorOutput {
crate::operation::create_accessor::CreateAccessorOutput {
accessor_id: self.accessor_id,
billing_token: self.billing_token,
network_type: self.network_type,
_request_id: self._request_id,
}
}
}