#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateAuthCodeOutput {
pub auth_code: ::std::option::Option<::std::string::String>,
pub session_id: ::std::option::Option<::std::string::String>,
pub entity_type: ::std::option::Option<crate::types::AuthCodeEntityType>,
pub entity_id: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl CreateAuthCodeOutput {
pub fn auth_code(&self) -> ::std::option::Option<&str> {
self.auth_code.as_deref()
}
pub fn session_id(&self) -> ::std::option::Option<&str> {
self.session_id.as_deref()
}
pub fn entity_type(&self) -> ::std::option::Option<&crate::types::AuthCodeEntityType> {
self.entity_type.as_ref()
}
pub fn entity_id(&self) -> ::std::option::Option<&str> {
self.entity_id.as_deref()
}
}
impl ::std::fmt::Debug for CreateAuthCodeOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateAuthCodeOutput");
formatter.field("auth_code", &"*** Sensitive Data Redacted ***");
formatter.field("session_id", &self.session_id);
formatter.field("entity_type", &self.entity_type);
formatter.field("entity_id", &self.entity_id);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for CreateAuthCodeOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateAuthCodeOutput {
pub fn builder() -> crate::operation::create_auth_code::builders::CreateAuthCodeOutputBuilder {
crate::operation::create_auth_code::builders::CreateAuthCodeOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateAuthCodeOutputBuilder {
pub(crate) auth_code: ::std::option::Option<::std::string::String>,
pub(crate) session_id: ::std::option::Option<::std::string::String>,
pub(crate) entity_type: ::std::option::Option<crate::types::AuthCodeEntityType>,
pub(crate) entity_id: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl CreateAuthCodeOutputBuilder {
pub fn auth_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.auth_code = ::std::option::Option::Some(input.into());
self
}
pub fn set_auth_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.auth_code = input;
self
}
pub fn get_auth_code(&self) -> &::std::option::Option<::std::string::String> {
&self.auth_code
}
pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.session_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.session_id = input;
self
}
pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
&self.session_id
}
pub fn entity_type(mut self, input: crate::types::AuthCodeEntityType) -> Self {
self.entity_type = ::std::option::Option::Some(input);
self
}
pub fn set_entity_type(mut self, input: ::std::option::Option<crate::types::AuthCodeEntityType>) -> Self {
self.entity_type = input;
self
}
pub fn get_entity_type(&self) -> &::std::option::Option<crate::types::AuthCodeEntityType> {
&self.entity_type
}
pub fn entity_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.entity_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_entity_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.entity_id = input;
self
}
pub fn get_entity_id(&self) -> &::std::option::Option<::std::string::String> {
&self.entity_id
}
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_auth_code::CreateAuthCodeOutput {
crate::operation::create_auth_code::CreateAuthCodeOutput {
auth_code: self.auth_code,
session_id: self.session_id,
entity_type: self.entity_type,
entity_id: self.entity_id,
_request_id: self._request_id,
}
}
}
impl ::std::fmt::Debug for CreateAuthCodeOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateAuthCodeOutputBuilder");
formatter.field("auth_code", &"*** Sensitive Data Redacted ***");
formatter.field("session_id", &self.session_id);
formatter.field("entity_type", &self.entity_type);
formatter.field("entity_id", &self.entity_id);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}