#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateAuthorizerOutput {
pub authorizer_name: ::std::option::Option<::std::string::String>,
pub authorizer_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl CreateAuthorizerOutput {
pub fn authorizer_name(&self) -> ::std::option::Option<&str> {
self.authorizer_name.as_deref()
}
pub fn authorizer_arn(&self) -> ::std::option::Option<&str> {
self.authorizer_arn.as_deref()
}
}
impl ::aws_types::request_id::RequestId for CreateAuthorizerOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateAuthorizerOutput {
pub fn builder() -> crate::operation::create_authorizer::builders::CreateAuthorizerOutputBuilder {
crate::operation::create_authorizer::builders::CreateAuthorizerOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateAuthorizerOutputBuilder {
pub(crate) authorizer_name: ::std::option::Option<::std::string::String>,
pub(crate) authorizer_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl CreateAuthorizerOutputBuilder {
pub fn authorizer_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.authorizer_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_authorizer_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.authorizer_name = input;
self
}
pub fn get_authorizer_name(&self) -> &::std::option::Option<::std::string::String> {
&self.authorizer_name
}
pub fn authorizer_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.authorizer_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_authorizer_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.authorizer_arn = input;
self
}
pub fn get_authorizer_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.authorizer_arn
}
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_authorizer::CreateAuthorizerOutput {
crate::operation::create_authorizer::CreateAuthorizerOutput {
authorizer_name: self.authorizer_name,
authorizer_arn: self.authorizer_arn,
_request_id: self._request_id,
}
}
}