Class CookieExpiration
java.lang.Object
com.azure.resourcemanager.appservice.models.CookieExpiration
The configuration settings of the session cookie's expiration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the convention property: The convention used when determining the session cookie's expiration.Get the timeToExpiration property: The time after the request is made when the session cookie should expire.void
validate()
Validates the instance.withConvention
(CookieExpirationConvention convention) Set the convention property: The convention used when determining the session cookie's expiration.withTimeToExpiration
(String timeToExpiration) Set the timeToExpiration property: The time after the request is made when the session cookie should expire.
-
Constructor Details
-
CookieExpiration
public CookieExpiration()
-
-
Method Details
-
convention
Get the convention property: The convention used when determining the session cookie's expiration.- Returns:
- the convention value.
-
withConvention
Set the convention property: The convention used when determining the session cookie's expiration.- Parameters:
convention
- the convention value to set.- Returns:
- the CookieExpiration object itself.
-
timeToExpiration
Get the timeToExpiration property: The time after the request is made when the session cookie should expire.- Returns:
- the timeToExpiration value.
-
withTimeToExpiration
Set the timeToExpiration property: The time after the request is made when the session cookie should expire.- Parameters:
timeToExpiration
- the timeToExpiration value to set.- Returns:
- the CookieExpiration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-