@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TokenValidityUnitsType extends Object implements Serializable, Cloneable, StructuredPojo
The data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.
| Constructor and Description |
|---|
TokenValidityUnitsType() |
| Modifier and Type | Method and Description |
|---|---|
TokenValidityUnitsType |
clone() |
boolean |
equals(Object obj) |
String |
getAccessToken()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. |
String |
getIdToken()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. |
String |
getRefreshToken()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAccessToken(String accessToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. |
void |
setIdToken(String idToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. |
void |
setRefreshToken(String refreshToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. |
String |
toString()
Returns a string representation of this object.
|
TokenValidityUnitsType |
withAccessToken(String accessToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. |
TokenValidityUnitsType |
withAccessToken(TimeUnitsType accessToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. |
TokenValidityUnitsType |
withIdToken(String idToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. |
TokenValidityUnitsType |
withIdToken(TimeUnitsType idToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. |
TokenValidityUnitsType |
withRefreshToken(String refreshToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. |
TokenValidityUnitsType |
withRefreshToken(TimeUnitsType refreshToken)
A time unit of
seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. |
public void setAccessToken(String accessToken)
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.
accessToken - 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.TimeUnitsTypepublic String getAccessToken()
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.
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.TimeUnitsTypepublic TokenValidityUnitsType withAccessToken(String accessToken)
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.
accessToken - 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.TimeUnitsTypepublic TokenValidityUnitsType withAccessToken(TimeUnitsType accessToken)
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.
accessToken - 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.TimeUnitsTypepublic void setIdToken(String idToken)
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.
idToken - 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.TimeUnitsTypepublic String getIdToken()
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.
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.TimeUnitsTypepublic TokenValidityUnitsType withIdToken(String idToken)
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.
idToken - 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.TimeUnitsTypepublic TokenValidityUnitsType withIdToken(TimeUnitsType idToken)
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.
idToken - 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.TimeUnitsTypepublic void setRefreshToken(String refreshToken)
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.
refreshToken - 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.TimeUnitsTypepublic String getRefreshToken()
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.
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.TimeUnitsTypepublic TokenValidityUnitsType withRefreshToken(String refreshToken)
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.
refreshToken - 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.TimeUnitsTypepublic TokenValidityUnitsType withRefreshToken(TimeUnitsType refreshToken)
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.
refreshToken - 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.TimeUnitsTypepublic String toString()
toString in class ObjectObject.toString()public TokenValidityUnitsType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.