#[non_exhaustive]pub struct TokenValidityUnitsTypeBuilder { /* private fields */ }
Expand description
A builder for TokenValidityUnitsType
.
Implementations§
source§impl TokenValidityUnitsTypeBuilder
impl TokenValidityUnitsTypeBuilder
sourcepub fn access_token(self, input: TimeUnitsType) -> Self
pub fn access_token(self, input: TimeUnitsType) -> Self
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter. The default AccessTokenValidity
time unit is hours. AccessTokenValidity
duration can range from five minutes to one day.
sourcepub fn set_access_token(self, input: Option<TimeUnitsType>) -> Self
pub fn set_access_token(self, input: Option<TimeUnitsType>) -> Self
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter. The default AccessTokenValidity
time unit is hours. AccessTokenValidity
duration can range from five minutes to one day.
sourcepub fn get_access_token(&self) -> &Option<TimeUnitsType>
pub fn get_access_token(&self) -> &Option<TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter. The default AccessTokenValidity
time unit is hours. AccessTokenValidity
duration can range from five minutes to one day.
sourcepub fn id_token(self, input: TimeUnitsType) -> Self
pub fn id_token(self, input: TimeUnitsType) -> Self
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the IdTokenValidity
parameter. The default IdTokenValidity
time unit is hours. IdTokenValidity
duration can range from five minutes to one day.
sourcepub fn set_id_token(self, input: Option<TimeUnitsType>) -> Self
pub fn set_id_token(self, input: Option<TimeUnitsType>) -> Self
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the IdTokenValidity
parameter. The default IdTokenValidity
time unit is hours. IdTokenValidity
duration can range from five minutes to one day.
sourcepub fn get_id_token(&self) -> &Option<TimeUnitsType>
pub fn get_id_token(&self) -> &Option<TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the IdTokenValidity
parameter. The default IdTokenValidity
time unit is hours. IdTokenValidity
duration can range from five minutes to one day.
sourcepub fn refresh_token(self, input: TimeUnitsType) -> Self
pub fn refresh_token(self, input: TimeUnitsType) -> Self
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the RefreshTokenValidity
parameter. The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.
sourcepub fn set_refresh_token(self, input: Option<TimeUnitsType>) -> Self
pub fn set_refresh_token(self, input: Option<TimeUnitsType>) -> Self
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the RefreshTokenValidity
parameter. The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.
sourcepub fn get_refresh_token(&self) -> &Option<TimeUnitsType>
pub fn get_refresh_token(&self) -> &Option<TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the RefreshTokenValidity
parameter. The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.
sourcepub fn build(self) -> TokenValidityUnitsType
pub fn build(self) -> TokenValidityUnitsType
Consumes the builder and constructs a TokenValidityUnitsType
.
Trait Implementations§
source§impl Clone for TokenValidityUnitsTypeBuilder
impl Clone for TokenValidityUnitsTypeBuilder
source§fn clone(&self) -> TokenValidityUnitsTypeBuilder
fn clone(&self) -> TokenValidityUnitsTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TokenValidityUnitsTypeBuilder
impl Default for TokenValidityUnitsTypeBuilder
source§fn default() -> TokenValidityUnitsTypeBuilder
fn default() -> TokenValidityUnitsTypeBuilder
source§impl PartialEq for TokenValidityUnitsTypeBuilder
impl PartialEq for TokenValidityUnitsTypeBuilder
source§fn eq(&self, other: &TokenValidityUnitsTypeBuilder) -> bool
fn eq(&self, other: &TokenValidityUnitsTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TokenValidityUnitsTypeBuilder
Auto Trait Implementations§
impl Freeze for TokenValidityUnitsTypeBuilder
impl RefUnwindSafe for TokenValidityUnitsTypeBuilder
impl Send for TokenValidityUnitsTypeBuilder
impl Sync for TokenValidityUnitsTypeBuilder
impl Unpin for TokenValidityUnitsTypeBuilder
impl UnwindSafe for TokenValidityUnitsTypeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more