public class MaxAge extends AbstractModel
header, skipSign| 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 |
|---|---|
MaxAgeCodeRule |
getMaxAgeCodeRule()
Get MaxAge status code
Note: This field may return `null`, indicating that no valid value can be obtained.
|
MaxAgeRule[] |
getMaxAgeRules()
Get MaxAge rule
Note: This field may return `null`, indicating that no valid value can be obtained.
|
String |
getSwitch()
Get Whether to enable browser caching.
|
void |
setMaxAgeCodeRule(MaxAgeCodeRule MaxAgeCodeRule)
Set MaxAge status code
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setMaxAgeRules(MaxAgeRule[] MaxAgeRules)
Set MaxAge rule
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setSwitch(String Switch)
Set Whether to enable browser caching.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic MaxAge()
public MaxAge(MaxAge source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable browser caching. Values:
`on`: Enable
`off`: Disable
Note: This field may return `null`, indicating that no valid values can be obtained.public MaxAgeRule[] getMaxAgeRules()
public void setMaxAgeRules(MaxAgeRule[] MaxAgeRules)
MaxAgeRules - MaxAge rule
Note: This field may return `null`, indicating that no valid value can be obtained.public MaxAgeCodeRule getMaxAgeCodeRule()
public void setMaxAgeCodeRule(MaxAgeCodeRule MaxAgeCodeRule)
MaxAgeCodeRule - MaxAge status code
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.