@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.
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.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.
seconds, minutes, hours, or days for
the value that you set in the AccessTokenValidity parameter. The default
AccessTokenValidity time unit is hours.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.
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.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.
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.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.
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.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.
seconds, minutes, hours, or days for
the value that you set in the IdTokenValidity parameter. The default
IdTokenValidity time unit is hours.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.
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.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.
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.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.
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.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.
seconds, minutes, hours, or days for
the value that you set in the RefreshTokenValidity parameter. The default
RefreshTokenValidity time unit is days.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.
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.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.
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.TimeUnitsTypepublic String toString()
toString in class ObjectObject.toString()public TokenValidityUnitsType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.