public class MaxAge extends AbstractModel
Constructor and Description |
---|
MaxAge() |
MaxAge(MaxAge source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getFollowOrigin()
Get Whether to follow the origin server.
|
Long |
getMaxAgeTime()
Get Specifies the maximum amount of time (in seconds).
|
void |
setFollowOrigin(String FollowOrigin)
Set Whether to follow the origin server.
|
void |
setMaxAgeTime(Long MaxAgeTime)
Set Specifies the maximum amount of time (in seconds).
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public MaxAge()
public MaxAge(MaxAge source)
public String getFollowOrigin()
public void setFollowOrigin(String FollowOrigin)
FollowOrigin
- Whether to follow the origin server. Values:
public Long getMaxAgeTime()
public void setMaxAgeTime(Long MaxAgeTime)
MaxAgeTime
- Specifies the maximum amount of time (in seconds). The maximum value is 365 days.
Note: The value `0` means not to cache.Copyright © 2023. All rights reserved.