@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)
Marshalls this structured data using the given
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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public 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.TimeUnitsType
public String toString()
toString
in class Object
Object.toString()
public TokenValidityUnitsType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.